armitage-rubocop 0.80.1 → 0.81.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e52539935650d719e8189723a4ff5d8ad6ff0259c6a11da1cc5f9207391f7edd
4
- data.tar.gz: 8e5509d395819812149d4bd97ce121087448bb24ff4d8aaff60e4ad4994b9237
3
+ metadata.gz: 8159110d29b67352668a4d9aa15db0d1651efd61d49c8ede9a2050b32a1b0922
4
+ data.tar.gz: 8da3c51426956bb78ad96c0315f88a4e6668df00a07ce64655c33f1ffa619514
5
5
  SHA512:
6
- metadata.gz: '078c6296e82f74d04a1d0fc512f3cc54338ba13565ee5f7fea0d56e0dc37b10ec487a006ef5dd625e32163ff425347b3c79ed22b42cf0cd74782ac702a13e9dc'
7
- data.tar.gz: 0b6c53e0325ab156f1da468001b209a9af6c216f5b4f20d4132cee9f56e8bfe636e5e7e06426b3838c741e6e8e162bf877dd87f382ae82587990701a9f648423
6
+ metadata.gz: ec0ee4d455607db8b24d841cf499c50123b23aa002dd6c43018340c4eda8ae1714a41f9a50b5a9a9918b3cc5732087b61bea01be58fad52b07110bd6df574e46
7
+ data.tar.gz: a11bd641444e22f2e06592ef8d3bfab81b1efa042e7742e80c2058b09fbe7f684b02a5b6afc5b058c0727adbf78adf0b7cf91e966bb5749a1f8989b380d88c28
@@ -3,4 +3,4 @@ inherit_from:
3
3
  - ./lib/rubocop.rake.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.7.0
6
+ TargetRubyVersion: 2.7.1
data/README.md CHANGED
@@ -15,6 +15,7 @@ Configured rules:
15
15
  - Layout
16
16
  - Lint
17
17
  - Metrics
18
+ - Migration
18
19
  - Naming
19
20
  - Performance
20
21
  - Rails (isn't included in `.rubocop.general.yml`)
@@ -4,7 +4,7 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.version = '0.80.1'
7
+ spec.version = '0.81.0'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
23
  end
24
24
 
25
- spec.add_dependency 'rubocop', '= 0.80.1'
25
+ spec.add_dependency 'rubocop', '= 0.81.0'
26
26
  spec.add_dependency 'rubocop-performance', '= 1.5.2'
27
- spec.add_dependency 'rubocop-rails', '= 2.4.2'
27
+ spec.add_dependency 'rubocop-rails', '= 2.5.2'
28
28
  spec.add_dependency 'rubocop-rspec', '= 1.38.1'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
@@ -9,6 +9,8 @@ Layout/ArgumentAlignment:
9
9
 
10
10
  Layout/ArrayAlignment:
11
11
  Enabled: true
12
+ EnforcedStyle: with_first_element
13
+ IndentationWidth: ~
12
14
 
13
15
  # NOTE: sometimes - good, sometimes - bad. readability depends on case by case.
14
16
  Layout/HashAlignment:
@@ -54,9 +54,6 @@ Lint/EmptyInterpolation:
54
54
  Lint/EmptyWhen:
55
55
  Enabled: false
56
56
 
57
- Lint/EndInMethod:
58
- Enabled: true
59
-
60
57
  Lint/EnsureReturn:
61
58
  Enabled: true
62
59
 
@@ -73,6 +70,9 @@ Lint/FloatOutOfRange:
73
70
  Lint/FormatParameterMismatch:
74
71
  Enabled: true
75
72
 
73
+ Lint/StructNewOverride:
74
+ Enabled: true
75
+
76
76
  Lint/SuppressedException:
77
77
  Enabled: false
78
78
 
@@ -139,6 +139,9 @@ Lint/PercentStringArray:
139
139
  Lint/PercentSymbolArray:
140
140
  Enabled: true
141
141
 
142
+ Lint/RaiseException:
143
+ Enabled: true
144
+
142
145
  Lint/RandOne:
143
146
  Enabled: true
144
147
 
@@ -227,6 +230,7 @@ Lint/UnusedMethodArgument:
227
230
  Enabled: false
228
231
  AllowUnusedKeywordArguments: false
229
232
  IgnoreEmptyMethods: true
233
+ IgnoreNotImplementedMethods: true
230
234
 
231
235
  Lint/UriEscapeUnescape:
232
236
  Enabled: false
@@ -1,6 +1,7 @@
1
1
  Metrics/AbcSize:
2
2
  Enabled: true
3
3
  Max: 19
4
+ IgnoredMethods: []
4
5
 
5
6
  Metrics/BlockLength:
6
7
  Enabled: true
@@ -25,6 +26,7 @@ Metrics/ClassLength:
25
26
  Metrics/CyclomaticComplexity:
26
27
  Enabled: true
27
28
  Max: 10
29
+ IgnoredMethods: []
28
30
 
29
31
  Metrics/MethodLength:
30
32
  Enabled: true
@@ -44,3 +46,4 @@ Metrics/ParameterLists:
44
46
  Metrics/PerceivedComplexity:
45
47
  Enabled: true
46
48
  Max: 10
49
+ IgnoredMethods: []
@@ -96,6 +96,12 @@ Rails/HttpStatus:
96
96
  Rails/IgnoredSkipActionFilterOption:
97
97
  Enabled: true
98
98
 
99
+ Rails/IndexBy:
100
+ Enabled: true
101
+
102
+ Rails/IndexWith:
103
+ Enabled: true
104
+
99
105
  Rails/InverseOf:
100
106
  Enabled: true
101
107
 
@@ -139,6 +145,10 @@ Rails/ReflectionClassName:
139
145
 
140
146
  Rails/RefuteMethods:
141
147
  Enabled: true
148
+ EnforcedStyle: assert_not
149
+ Include:
150
+ - 'test/**/*'
151
+ - 'spec/**/*'
142
152
 
143
153
  Rails/RelativeDateConstant:
144
154
  Enabled: true
@@ -175,6 +185,11 @@ Rails/UniqBeforePluck:
175
185
  Enabled: true
176
186
  EnforcedStyle: conservative
177
187
 
188
+ Rails/UniqueValidationWithoutIndex:
189
+ Enabled: true
190
+ Include:
191
+ - app/models/**/*.rb
192
+
178
193
  Rails/UnknownEnv:
179
194
  Enabled: true
180
195
  Environments:
@@ -1,6 +1,7 @@
1
1
  Style/AccessModifierDeclarations:
2
2
  Enabled: true
3
3
  EnforcedStyle: group
4
+ AllowModifiersOnSymbols: true
4
5
 
5
6
  Style/Alias:
6
7
  Enabled: true
@@ -95,6 +96,10 @@ Style/DefWithParentheses:
95
96
  Style/Dir:
96
97
  Enabled: true
97
98
 
99
+ # NOTE: Broken in 0.81.0
100
+ # Style/DisableCopsWithinSourceCodeDirective:
101
+ # Enabled: false
102
+
98
103
  Style/Documentation:
99
104
  Enabled: false
100
105
 
@@ -135,6 +140,7 @@ Style/Encoding:
135
140
 
136
141
  Style/EndBlock:
137
142
  Enabled: true
143
+ AutoCorrect: true
138
144
 
139
145
  Style/EvalWithLocation:
140
146
  Enabled: true
@@ -511,6 +517,9 @@ Style/TrailingCommaInArrayLiteral:
511
517
  Enabled: true
512
518
  EnforcedStyleForMultiline: no_comma
513
519
 
520
+ Style/TrailingCommaInBlockArgs:
521
+ Enabled: false
522
+
514
523
  Style/TrailingCommaInHashLiteral:
515
524
  Enabled: true
516
525
  EnforcedStyleForMultiline: no_comma
@@ -181,7 +181,11 @@ RSpec/PredicateMatcher:
181
181
  Enabled: true
182
182
  Strict: true
183
183
  EnforcedStyle: explicit
184
- AllowedExplicitMatchers: [be_a]
184
+ AllowedExplicitMatchers:
185
+ - be_a
186
+ - be_empty
187
+ - have_http_status
188
+ - have_been_made
185
189
 
186
190
  RSpec/ReceiveCounts:
187
191
  Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armitage-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.80.1
4
+ version: 0.81.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-08 00:00:00.000000000 Z
11
+ date: 2020-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.80.1
19
+ version: 0.81.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.80.1
26
+ version: 0.81.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.4.2
47
+ version: 2.5.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.4.2
54
+ version: 2.5.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement