rubocop-rails_config 1.2.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/config/rails.yml +4 -6
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 761ced1f78a4b8a374e50b35bf9691190f20565a3324177eb197e5c05dc713e8
4
- data.tar.gz: ceb1eaf037c588e1415198c75faa1a228834d92ab842601d551f77a51d7e81c1
3
+ metadata.gz: c383835e3bc6433cf83b3657f9852b7c08be072e5e70efc40f9afebca65b72e3
4
+ data.tar.gz: a83e1539d68e3e65e3de33fb40ac66c5320af00163aedae67946c4ad94fffef3
5
5
  SHA512:
6
- metadata.gz: 8348fe1c4fc6670f6fdc3063b9b9c0c471081a897f16fa5f4c25464d783e9035bcd68c2c9611b472a0fadf6a0eccad6c56d41c6ff1aab773afa5828f67be0cee
7
- data.tar.gz: 3522df627f2048252dc99eee029aa0dc4288c6b2f80a5b050c13332e5d8ce7677076cf9e0b08fd5b5e19293c8877929f778c98f0bf82db86c0a7058c4bcae985
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/master/.rubocop.yml)
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 6 only supports Ruby 2.5 or more, rubocop-rails_config still supports Ruby 2.4 or more to support as many Ruby versions as possible.
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.2.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-01-10 00:00:00.000000000 Z
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.0'
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.0'
27
+ version: '1.8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-ast
30
30
  requirement: !ruby/object:Gem::Requirement