rubocop-rails_config 1.1.3 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/config/rails.yml +7 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ae9c4ff5cec5f0217a6bebb1a41777306e9f08286c37309cf12efaf2ab5fb80
|
4
|
+
data.tar.gz: e56e643377db91b5068a0df977924588daa6aa75e71b302e81667447789410d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e98b9407c67bebeb8aba7d8cd5283701c02d30da2531f936aac0d423d94901ec0c69b68bf308c8bad41adf1b5b0caaec087dda8159e1f0e5be813e994838d27
|
7
|
+
data.tar.gz: dd9fd02132a431f8a663856212663747d918a9df1f226cd9a0c250b8002c217a6df28eff4405d16bf225421f50f51f47f7577c44b1f25b2cd9168112b6e9907a
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
RuboCop configuration which has the same code style checking as official Ruby on Rails.
|
7
7
|
|
8
|
-
[Official RoR RuboCop Configuration](https://github.com/rails/rails/blob/
|
8
|
+
[Official RoR RuboCop Configuration](https://github.com/rails/rails/blob/main/.rubocop.yml)
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -35,7 +35,7 @@ $ rails generate rubocop_rails_config:install
|
|
35
35
|
|
36
36
|
### TargetRubyVersion
|
37
37
|
|
38
|
-
Although Rails
|
38
|
+
Although Rails 7 (edge) only supports Ruby 2.7 or more, rubocop-rails_config still supports Ruby 2.4 or more to support as many Ruby versions as possible.
|
39
39
|
|
40
40
|
If you'd like to change `TargetRubyVersion`, see [Customization](#customization).
|
41
41
|
|
data/config/rails.yml
CHANGED
@@ -9,6 +9,7 @@ AllCops:
|
|
9
9
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
10
10
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
11
11
|
DisabledByDefault: true
|
12
|
+
SuggestExtensions: false
|
12
13
|
Exclude:
|
13
14
|
- '**/tmp/**/*'
|
14
15
|
- '**/templates/**/*'
|
@@ -202,6 +203,9 @@ Lint/AmbiguousOperator:
|
|
202
203
|
Lint/AmbiguousRegexpLiteral:
|
203
204
|
Enabled: true
|
204
205
|
|
206
|
+
Lint/DuplicateRequire:
|
207
|
+
Enabled: true
|
208
|
+
|
205
209
|
Lint/ErbNewArguments:
|
206
210
|
Enabled: true
|
207
211
|
|
@@ -209,9 +213,6 @@ Lint/ErbNewArguments:
|
|
209
213
|
Lint/RequireParentheses:
|
210
214
|
Enabled: true
|
211
215
|
|
212
|
-
Lint/ShadowingOuterLocalVariable:
|
213
|
-
Enabled: true
|
214
|
-
|
215
216
|
Lint/RedundantStringCoercion:
|
216
217
|
Enabled: true
|
217
218
|
|
@@ -254,6 +255,9 @@ Style/ColonMethodCall:
|
|
254
255
|
Style/TrivialAccessors:
|
255
256
|
Enabled: true
|
256
257
|
|
258
|
+
Performance/BindCall:
|
259
|
+
Enabled: true
|
260
|
+
|
257
261
|
Performance/FlatMap:
|
258
262
|
Enabled: true
|
259
263
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rails_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimaru
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.8'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.8'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rubocop-ast
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.
|
129
|
+
rubygems_version: 3.2.3
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: RuboCop configuration which has the same code style checking as official
|