armitage-rubocop 0.83.0 → 0.87.1

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: '079a5cd3b52832506fb37b97fe3f548e8d5e993502c30936d06e9c9c9d50cb8b'
4
- data.tar.gz: 27377dcf4675b9b611ef0834c284843d946e5d260595b381fe79c0a98fad193d
3
+ metadata.gz: 493f5291c89baad7d9a9026748facfaf3ed2c55d5647b48dba493cf96faddc07
4
+ data.tar.gz: b8eac86e6a5aa70299828d5830c2f17bda6950441186419290c8c86924b4aa0e
5
5
  SHA512:
6
- metadata.gz: 966d1e9845d6065260ab3e6f425a8b38b12f57104b10ce71bd661eb3857bd51e57b815850903f9f27a68b2f873130b341b126cbb9beda4622f78b42bcc672fce
7
- data.tar.gz: 13ac3c3269bd87875f11f7cf97b0fb356ddaa6c30a79e87506f056abcbb8719a303345112c12e64567b3ebe393a13a0dddd338725ca31ece093faa898d2a07d7
6
+ metadata.gz: 0dac5e57caa33ac60acdee5b9c8bb2d9fe9b1058d31e60feb6eb9193793f71ea331550eb6f6bee4a778b1fb114a54b1daa3100278f5b77039615c151253d61aa
7
+ data.tar.gz: e93d8c930f8fa0a9596155190e30713635b60d6dfc78dccb55bc2e7b518f3749c1e184008cb18d31a1b7778ad2bc75a277025d9482104784f98241f6c0d0aa70
@@ -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.83.0'
7
+ spec.version = '0.87.1'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,10 +22,10 @@ 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.83.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.5.2'
27
- spec.add_dependency 'rubocop-rails', '= 2.5.2'
28
- spec.add_dependency 'rubocop-rspec', '= 1.39.0'
25
+ spec.add_dependency 'rubocop', '= 0.87.1'
26
+ spec.add_dependency 'rubocop-performance', '= 1.7.0'
27
+ spec.add_dependency 'rubocop-rails', '= 2.6.0'
28
+ spec.add_dependency 'rubocop-rspec', '= 1.41.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
@@ -90,9 +90,14 @@ Layout/EmptyLineAfterGuardClause:
90
90
  Layout/EmptyLineAfterMagicComment:
91
91
  Enabled: true
92
92
 
93
- # NOTE: coming soon
94
- # Layout/EmptyLineAroundAttributeAccessor:
95
- # Enabled: true
93
+ Layout/EmptyLinesAroundAttributeAccessor:
94
+ Enabled: true
95
+ AllowAliasSyntax: true
96
+ AllowedMethods:
97
+ - alias_method
98
+ - public
99
+ - protected
100
+ - private
96
101
 
97
102
  Layout/EmptyLineBetweenDefs:
98
103
  Enabled: true
@@ -187,7 +192,6 @@ Layout/FirstHashElementIndentation:
187
192
 
188
193
  Layout/HeredocIndentation:
189
194
  Enabled: true
190
- EnforcedStyle: squiggly
191
195
 
192
196
  Layout/IndentationConsistency:
193
197
  Enabled: true
@@ -20,12 +20,20 @@ Lint/BooleanSymbol:
20
20
  Lint/CircularArgumentReference:
21
21
  Enabled: true
22
22
 
23
+ Lint/ConstantResolution:
24
+ Enabled: false
25
+ Only: []
26
+ Ignore: []
27
+
23
28
  Lint/Debugger:
24
29
  Enabled: true
25
30
 
26
31
  Lint/DeprecatedClassMethods:
27
32
  Enabled: true
28
33
 
34
+ Lint/DeprecatedOpenSSLConstant:
35
+ Enabled: true
36
+
29
37
  Lint/DuplicateCaseCondition:
30
38
  Enabled: true
31
39
 
@@ -96,6 +104,7 @@ Lint/InheritException:
96
104
 
97
105
  Lint/InterpolationCheck:
98
106
  Enabled: true
107
+ AutoCorrect: true
99
108
 
100
109
  Lint/LiteralAsCondition:
101
110
  Enabled: true
@@ -109,6 +118,10 @@ Lint/Loop:
109
118
  Lint/MissingCopEnableDirective:
110
119
  Enabled: true
111
120
 
121
+ Lint/MixedRegexpCaptureTypes:
122
+ Enabled: true
123
+ # NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
124
+
112
125
  Lint/MultipleComparison:
113
126
  Enabled: true
114
127
 
@@ -145,6 +158,9 @@ Lint/PercentSymbolArray:
145
158
 
146
159
  Lint/RaiseException:
147
160
  Enabled: true
161
+ AutoCorrect: false
162
+ AllowedImplicitNamespaces:
163
+ - Gem
148
164
 
149
165
  Lint/RandOne:
150
166
  Enabled: true
@@ -157,6 +173,7 @@ Lint/RedundantWithObject:
157
173
 
158
174
  Lint/RegexpAsCondition:
159
175
  Enabled: true
176
+ AutoCorrect: true
160
177
 
161
178
  Lint/RequireParentheses:
162
179
  Enabled: true
@@ -178,6 +195,7 @@ Lint/SafeNavigationConsistency:
178
195
 
179
196
  Lint/SafeNavigationWithEmpty:
180
197
  Enabled: true
198
+ AutoCorrect: true
181
199
 
182
200
  Lint/ScriptPermission:
183
201
  Enabled: true
@@ -3,12 +3,14 @@ Naming/AccessorMethodName:
3
3
 
4
4
  Naming/AsciiIdentifiers:
5
5
  Enabled: true
6
+ AsciiConstants: true
6
7
 
7
8
  Naming/BinaryOperatorParameterName:
8
9
  Enabled: false
9
10
 
10
11
  Naming/ClassAndModuleCamelCase:
11
12
  Enabled: true
13
+ AllowedNames: []
12
14
 
13
15
  Naming/ConstantName:
14
16
  Enabled: true
@@ -17,6 +19,7 @@ Naming/FileName:
17
19
  Enabled: true
18
20
  ExpectMatchingDefinition: false
19
21
  IgnoreExecutableScripts: true
22
+ CheckDefinitionPathHierarchy: false
20
23
 
21
24
  Naming/HeredocDelimiterCase:
22
25
  Enabled: true
@@ -1,3 +1,9 @@
1
+ Performance/AncestorsInclude:
2
+ Enabled: true
3
+
4
+ Performance/BindCall:
5
+ Enabled: true
6
+
1
7
  Performance/Caller:
2
8
  Enabled: true
3
9
 
@@ -18,6 +24,12 @@ Performance/Count:
18
24
  Enabled: true
19
25
  SafeAutoCorrect: false
20
26
 
27
+ Performance/DeletePrefix:
28
+ Enabled: true
29
+
30
+ Performance/DeleteSuffix:
31
+ Enabled: true
32
+
21
33
  Performance/Detect:
22
34
  Enabled: true
23
35
  SafeAutoCorrect: false
@@ -40,15 +52,24 @@ Performance/FlatMap:
40
52
  Performance/InefficientHashSearch:
41
53
  Enabled: true
42
54
 
55
+ Performance/IoReadlines:
56
+ Enabled: true
57
+
43
58
  Performance/OpenStruct:
44
59
  Enabled: true
45
60
 
46
61
  Performance/RangeInclude:
47
62
  Enabled: true
48
63
 
64
+ Performance/RedundantSortBlock:
65
+ Enabled: true
66
+
49
67
  Performance/RedundantBlockCall:
50
68
  Enabled: true
51
69
 
70
+ Performance/RedundantStringChars:
71
+ Enabled: true
72
+
52
73
  Performance/RedundantMatch:
53
74
  Enabled: true
54
75
 
@@ -62,13 +83,25 @@ Performance/RegexpMatch:
62
83
  Performance/ReverseEach:
63
84
  Enabled: true
64
85
 
86
+ Performance/ReverseFirst:
87
+ Enabled: true
88
+
65
89
  Performance/Size:
66
90
  Enabled: true
67
91
 
92
+ Performance/SortReverse:
93
+ Enabled: true
94
+
95
+ Performance/Squeeze:
96
+ Enabled: true
97
+
68
98
  Performance/StartWith:
69
99
  Enabled: true
70
100
  AutoCorrect: false
71
101
 
102
+ Performance/StringInclude:
103
+ Enabled: true
104
+
72
105
  Performance/StringReplacement:
73
106
  Enabled: true
74
107
 
@@ -27,6 +27,7 @@ Rails/ApplicationMailer:
27
27
 
28
28
  Rails/RakeEnvironment:
29
29
  Enabled: true
30
+ AutoCorrect: true
30
31
 
31
32
  Rails/AssertNot:
32
33
  Enabled: true
@@ -44,6 +45,9 @@ Rails/BulkChangeTable:
44
45
  Rails/CreateTableWithTimestamps:
45
46
  Enabled: false
46
47
 
48
+ Rails/ContentTag:
49
+ Enabled: true
50
+
47
51
  Rails/Date:
48
52
  Enabled: true
49
53
  EnforcedStyle: flexible
@@ -56,6 +60,12 @@ Rails/DelegateAllowBlank:
56
60
 
57
61
  Rails/DynamicFindBy:
58
62
  Enabled: true
63
+ Whitelist:
64
+ - find_by_sql
65
+ AllowedMethods:
66
+ - find_by_sql
67
+ AllowedReceivers:
68
+ - Gem::Specification
59
69
 
60
70
  Rails/EnumHash:
61
71
  Enabled: true
@@ -120,6 +130,9 @@ Rails/Output:
120
130
  Rails/OutputSafety:
121
131
  Enabled: false
122
132
 
133
+ Rails/Pick:
134
+ Enabled: true
135
+
123
136
  Rails/PluralizationGrammar:
124
137
  Enabled: true
125
138
 
@@ -137,6 +150,9 @@ Rails/RedundantAllowNil:
137
150
  Include:
138
151
  - app/models/**/*.rb
139
152
 
153
+ Rails/RedundantForeignKey:
154
+ Enabled: false
155
+
140
156
  Rails/RedundantReceiverInWithOptions:
141
157
  Enabled: true
142
158
 
@@ -1,3 +1,7 @@
1
+ Style/AccessorGrouping:
2
+ Enabled: true
3
+ EnforcedStyle: separated
4
+
1
5
  Style/AccessModifierDeclarations:
2
6
  Enabled: true
3
7
  EnforcedStyle: group
@@ -31,6 +35,9 @@ Style/BarePercentLiterals:
31
35
  Style/BeginBlock:
32
36
  Enabled: true
33
37
 
38
+ Style/BisectedAttrAccessor:
39
+ Enabled: true
40
+
34
41
  Style/BlockComments:
35
42
  Enabled: true
36
43
 
@@ -107,6 +114,7 @@ Style/DocumentationMethod:
107
114
 
108
115
  Style/DoubleNegation:
109
116
  Enabled: false
117
+ EnforcedStyle: allowed_in_returns
110
118
 
111
119
  Style/EachForSimpleLoop:
112
120
  Enabled: false
@@ -209,6 +217,7 @@ Style/IfUnlessModifier:
209
217
 
210
218
  Style/IfUnlessModifierOfIfUnless:
211
219
  Enabled: true
220
+ AutoCorrect: true
212
221
 
213
222
  Style/IfWithSemicolon:
214
223
  Enabled: true
@@ -293,6 +302,7 @@ Style/MultilineMethodSignature:
293
302
 
294
303
  Style/MultilineTernaryOperator:
295
304
  Enabled: false
305
+ AutoCorrect: true
296
306
 
297
307
  Style/MultilineWhenThen:
298
308
  Enabled: true
@@ -322,6 +332,7 @@ Style/NestedParenthesizedCalls:
322
332
 
323
333
  Style/NestedTernaryOperator:
324
334
  Enabled: true
335
+ AutoCorrect: true
325
336
 
326
337
  Style/Next:
327
338
  Enabled: true
@@ -391,12 +402,25 @@ Style/RaiseArgs:
391
402
  Style/RandomWithOffset:
392
403
  Enabled: true
393
404
 
405
+ Style/RedundantAssignment:
406
+ Enabled: true
407
+
394
408
  Style/RedundantBegin:
395
409
  Enabled: true
396
410
 
397
411
  Style/RedundantConditional:
398
412
  Enabled: true
399
413
 
414
+ Style/RedundantFetchBlock:
415
+ Enabled: true
416
+ SafeForConstants: true
417
+
418
+ Style/RedundantRegexpCharacterClass:
419
+ Enabled: true
420
+
421
+ Style/RedundantRegexpEscape:
422
+ Enabled: true
423
+
400
424
  Style/RedundantException:
401
425
  Enabled: false
402
426
 
@@ -491,6 +515,7 @@ Style/Strip:
491
515
 
492
516
  Style/StructInheritance:
493
517
  Enabled: true
518
+ AutoCorrect: true
494
519
 
495
520
  Style/SymbolArray:
496
521
  Enabled: true
@@ -233,6 +233,14 @@ RSpec/SubjectStub:
233
233
  RSpec/UnspecifiedException:
234
234
  Enabled: true
235
235
 
236
+ RSpec/VariableDefinition:
237
+ Enabled: true
238
+ EnforcedStyle: symbols
239
+
240
+ RSpec/VariableName:
241
+ Enabled: true
242
+ EnforcedStyle: snake_case
243
+
236
244
  RSpec/VerifiedDoubles:
237
245
  Enabled: false
238
246
  IgnoreNameless: true
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.83.0
4
+ version: 0.87.1
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-05-16 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.83.0
19
+ version: 0.87.1
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.83.0
26
+ version: 0.87.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.2
33
+ version: 1.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.5.2
40
+ version: 1.7.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.2
47
+ version: 2.6.0
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.5.2
54
+ version: 2.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.39.0
61
+ version: 1.41.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.39.0
68
+ version: 1.41.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement