rubocop-rails_config 1.1.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- 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: d79ab8f66b74861f30dd222eaadc3cf17a95752b0d97228f79eb3f2a3a59b565
|
4
|
+
data.tar.gz: 928456f81f2b1242d304c4c90814a05ed54c6c4dbcef56b877546f2efadf4652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2abe83fa6d2554f5ba53d81d932c9747a1ee3b745a0dc99410a90be1d3429f1e888171970de601e55f4d7b93d3ca981738e411ce6aaa9e76ae8e0866d7061b2f
|
7
|
+
data.tar.gz: a8f2675cd03706590eb60aac9545e87b3eb5e2f683625c91fcd4d98ab9667788bdaab44c92baa1042da0746e8a4431dc431950901c5fa94a0467933c47466007
|
data/README.md
CHANGED
@@ -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
|
|
@@ -60,7 +60,7 @@ class AssertNotTest < ActiveSupport::TestCase
|
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
63
|
-
See also. [ActiveSupport::
|
63
|
+
See also. [ActiveSupport::Testing::Assertions](https://api.rubyonrails.org/classes/ActiveSupport/Testing/Assertions.html)
|
64
64
|
|
65
65
|
## Customization
|
66
66
|
|
@@ -76,10 +76,10 @@ inherit_gem:
|
|
76
76
|
|
77
77
|
# Override Setting
|
78
78
|
AllCops:
|
79
|
-
TargetRubyVersion: 2.
|
79
|
+
TargetRubyVersion: 2.7
|
80
80
|
```
|
81
81
|
|
82
|
-
This overrides `config/rails.yml` setting with `TargetRubyVersion: 2.
|
82
|
+
This overrides `config/rails.yml` setting with `TargetRubyVersion: 2.7`.
|
83
83
|
|
84
84
|
## License
|
85
85
|
|
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.
|
4
|
+
version: 1.3.0
|
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-10 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
|