rubocop-rails_config 1.2.1 → 1.3.3
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 +4 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c383835e3bc6433cf83b3657f9852b7c08be072e5e70efc40f9afebca65b72e3
|
4
|
+
data.tar.gz: a83e1539d68e3e65e3de33fb40ac66c5320af00163aedae67946c4ad94fffef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e08020f27b8a28234b52403f1d369b36ea77c2783c65d8966f043ee24e6291cee0ac616391cbd9a28e833116dadd0094be944f95c48c6d45ac57adbed468c7a
|
7
|
+
data.tar.gz: 5ac4e76df43f0b81bf18d94d40d48d6b5a6ea98192821c4a8bbb436718cd5bc09171c20bf946298cf9e4d7a307c6f08eaad18f462446e4d079432dd15edc8a93
|
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/**/*'
|
@@ -93,9 +94,6 @@ Layout/EmptyLinesAroundModuleBody:
|
|
93
94
|
Style/HashSyntax:
|
94
95
|
Enabled: true
|
95
96
|
|
96
|
-
Layout/FirstArgumentIndentation:
|
97
|
-
Enabled: true
|
98
|
-
|
99
97
|
# Method definitions after `private` or `protected` isolated calls need one
|
100
98
|
# extra level of indentation.
|
101
99
|
Layout/IndentationConsistency:
|
@@ -212,9 +210,6 @@ Lint/ErbNewArguments:
|
|
212
210
|
Lint/RequireParentheses:
|
213
211
|
Enabled: true
|
214
212
|
|
215
|
-
Lint/ShadowingOuterLocalVariable:
|
216
|
-
Enabled: true
|
217
|
-
|
218
213
|
Lint/RedundantStringCoercion:
|
219
214
|
Enabled: true
|
220
215
|
|
@@ -257,6 +252,9 @@ Style/ColonMethodCall:
|
|
257
252
|
Style/TrivialAccessors:
|
258
253
|
Enabled: true
|
259
254
|
|
255
|
+
Performance/BindCall:
|
256
|
+
Enabled: true
|
257
|
+
|
260
258
|
Performance/FlatMap:
|
261
259
|
Enabled: true
|
262
260
|
|
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.3
|
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: 2021-
|
12
|
+
date: 2021-03-02 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
|