armitage-rubocop 0.91.0 → 1.3.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: 723ccba176c674a8509ad111fa3c094874c8b934665716cd0580c7d687548055
4
- data.tar.gz: ce5930d7bc8bee0567d54a1a04663ba07f67efd9b35ce0620bd7a73ca79d7ccc
3
+ metadata.gz: fea71e911b6cc9479c86d2437befcf1e73c435da8faac6925aea6fd42bea49a0
4
+ data.tar.gz: b3668511d94edc22244f8103914722cc960ebf0a1e8d7af1358d3639aa32dbba
5
5
  SHA512:
6
- metadata.gz: 2c20f74575db7185331158a3b796744131879b00ffc73ee4599a7f9768cc9fc4d82ca27122b39f8b54779ee8ecbb873f03f9dc4a96b618e67d1de119b82dc363
7
- data.tar.gz: 61a3b2973c1518fb8a38e07814cc7bbbff4ec942e6fccda5cf262ae1694c4b2c1cd08addc9aa38f272dabe4a7bd65ea47cf222ee2899c53116625a7d0149da47
6
+ metadata.gz: e1c96bcac6f1bb54b0a040a6639c1577b2cf3409b099fa1c459fb70121906cef3ae9bb864eafb1ad5f621079f6229baffc415746921ace1765f776b1d2749cd1
7
+ data.tar.gz: e1114919a49bb3da37243776be9d65120d55597c9def152a25cb1da8d593282ec20d9bb3f0e807b51d0a1c5ce14fb4ab9945bb97d72c3f53cd08b24898375a70
data/Rakefile CHANGED
@@ -5,9 +5,9 @@ require 'rubocop/rake_task'
5
5
  require 'open3'
6
6
  require 'yaml'
7
7
  require 'rubocop'
8
+ require 'rubocop-rspec'
8
9
  require 'rubocop-rails'
9
10
  require 'rubocop-performance'
10
- require 'rubocop-rspec'
11
11
  require 'rubocop-rake'
12
12
 
13
13
  RuboCop::RakeTask.new(:rubocop) do |t|
@@ -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.91.0'
7
+ spec.version = '1.3.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.91.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.8.1'
25
+ spec.add_dependency 'rubocop', '= 1.3.1'
26
+ spec.add_dependency 'rubocop-performance', '= 1.9.0'
27
27
  spec.add_dependency 'rubocop-rails', '= 2.8.1'
28
- spec.add_dependency 'rubocop-rspec', '= 1.43.2'
28
+ spec.add_dependency 'rubocop-rspec', '= 2.0.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
@@ -25,6 +25,8 @@ Lint/CircularArgumentReference:
25
25
 
26
26
  Lint/ConstantDefinitionInBlock:
27
27
  Enabled: false
28
+ AllowedMethods:
29
+ - enums
28
30
 
29
31
  Lint/ConstantResolution:
30
32
  Enabled: false
@@ -44,6 +46,9 @@ Lint/DisjunctiveAssignmentInConstructor:
44
46
  Enabled: true
45
47
  AutoCorrect: false
46
48
 
49
+ Lint/DuplicateBranch:
50
+ Enabled: true
51
+
47
52
  Lint/DuplicateCaseCondition:
48
53
  Enabled: true
49
54
 
@@ -59,6 +64,9 @@ Lint/DuplicateElsifCondition:
59
64
  Lint/DuplicateRequire:
60
65
  Enabled: true
61
66
 
67
+ Lint/DuplicateRegexpCharacterClassElement:
68
+ Enabled: true
69
+
62
70
  Lint/EachWithObjectArgument:
63
71
  Enabled: true
64
72
 
@@ -67,6 +75,15 @@ Lint/DuplicateRescueException:
67
75
 
68
76
  Lint/ElseLayout:
69
77
  Enabled: true
78
+ AutoCorrect: true
79
+
80
+ Lint/EmptyBlock:
81
+ Enabled: true
82
+ AllowComments: true
83
+
84
+ Lint/EmptyClass:
85
+ Enabled: false
86
+ AllowComments: true
70
87
 
71
88
  Lint/EmptyConditionalBody:
72
89
  Enabled: true
@@ -118,6 +135,9 @@ Lint/StructNewOverride:
118
135
  Lint/SuppressedException:
119
136
  Enabled: false
120
137
 
138
+ Lint/HashCompareByIdentity:
139
+ Enabled: false
140
+
121
141
  Lint/HeredocMethodCallPosition:
122
142
  Enabled: true
123
143
 
@@ -160,6 +180,7 @@ Lint/MissingSuper:
160
180
 
161
181
  Lint/MultipleComparison:
162
182
  Enabled: true
183
+ AllowMethodComparison: true
163
184
 
164
185
  Lint/NestedMethodDefinition:
165
186
  Enabled: true
@@ -204,6 +225,16 @@ Lint/RaiseException:
204
225
  Lint/RandOne:
205
226
  Enabled: true
206
227
 
228
+ Lint/RedundantSafeNavigation:
229
+ Enabled: true
230
+ AllowedMethods:
231
+ - instance_of?
232
+ - kind_of?
233
+ - is_a?
234
+ - eql?
235
+ - respond_to?
236
+ - equal?
237
+
207
238
  Lint/RedundantWithIndex:
208
239
  Enabled: true
209
240
 
@@ -258,6 +289,9 @@ Lint/RedundantStringCoercion:
258
289
  Lint/Syntax:
259
290
  Enabled: true
260
291
 
292
+ Lint/ToEnumArguments:
293
+ Enabled: false
294
+
261
295
  Lint/ToJSON:
262
296
  Enabled: true
263
297
 
@@ -270,6 +304,9 @@ Lint/TrailingCommaInAttributeDeclaration:
270
304
  Lint/UnderscorePrefixedVariableName:
271
305
  Enabled: false
272
306
 
307
+ Lint/UnmodifiedReduceAccumulator:
308
+ Enabled: true
309
+
273
310
  Lint/UnifiedInteger:
274
311
  Enabled: true
275
312
 
@@ -329,6 +366,7 @@ Lint/UselessMethodDefinition:
329
366
 
330
367
  Lint/UselessSetterCall:
331
368
  Enabled: true
369
+ AutoCorrect: true
332
370
 
333
371
  Lint/UselessTimes:
334
372
  Enabled: true
@@ -7,6 +7,7 @@ Naming/AsciiIdentifiers:
7
7
 
8
8
  Naming/BinaryOperatorParameterName:
9
9
  Enabled: false
10
+ AutoCorrect: true
10
11
 
11
12
  Naming/ClassAndModuleCamelCase:
12
13
  Enabled: true
@@ -24,6 +25,7 @@ Naming/FileName:
24
25
  Naming/HeredocDelimiterCase:
25
26
  Enabled: true
26
27
  EnforcedStyle: uppercase
28
+ AutoCorrect: true
27
29
 
28
30
  Naming/HeredocDelimiterNaming:
29
31
  Enabled: false
@@ -73,3 +75,6 @@ Naming/VariableName:
73
75
  Naming/VariableNumber:
74
76
  Enabled: true
75
77
  EnforcedStyle: snake_case
78
+ CheckMethodNames: true
79
+ CheckSymbols: true
80
+ AllowedIdentifiers: []
@@ -1,3 +1,6 @@
1
+ Performance/ArraySemiInfiniteRangeSlice:
2
+ Enabled: true
3
+
1
4
  Performance/AncestorsInclude:
2
5
  Enabled: true
3
6
 
@@ -7,8 +10,13 @@ Performance/BindCall:
7
10
  Performance/BigDecimalWithNumericArgument:
8
11
  Enabled: true
9
12
 
13
+ Performance/BlockGivenWithExplicitBlock:
14
+ Enabled: false
15
+ AutoCorrect: true
16
+
10
17
  Performance/Caller:
11
18
  Enabled: true
19
+ AutoCorrect: true
12
20
 
13
21
  Performance/CaseWhenSplat:
14
22
  Enabled: true
@@ -27,6 +35,9 @@ Performance/CollectionLiteralInLoop:
27
35
  Enabled: true
28
36
  MinSize: 1
29
37
 
38
+ Performance/ConstantRegexp:
39
+ Enabled: true
40
+
30
41
  Performance/Count:
31
42
  Enabled: true
32
43
  SafeAutoCorrect: false
@@ -62,6 +73,9 @@ Performance/InefficientHashSearch:
62
73
  Performance/IoReadlines:
63
74
  Enabled: true
64
75
 
76
+ Performance/MethodObjectAsBlock:
77
+ Enabled: true
78
+
65
79
  Performance/OpenStruct:
66
80
  Enabled: true
67
81
 
@@ -114,6 +128,7 @@ Performance/StringReplacement:
114
128
 
115
129
  Performance/Sum:
116
130
  Enabled: true
131
+ AutoCorrect: true
117
132
 
118
133
  Performance/TimesMap:
119
134
  Enabled: true
@@ -121,6 +136,7 @@ Performance/TimesMap:
121
136
 
122
137
  Performance/UnfreezeString:
123
138
  Enabled: true
139
+ AutoCorrect: true
124
140
 
125
141
  Performance/UriDefaultParser:
126
142
  Enabled: true
@@ -11,12 +11,16 @@ Style/Alias:
11
11
  Enabled: true
12
12
  EnforcedStyle: prefer_alias_method
13
13
 
14
+ Style/AndOr:
15
+ Enabled: false
16
+ EnforcedStyle: always
17
+
14
18
  Style/ArrayCoercion:
15
19
  Enabled: true
16
20
 
17
- Style/AndOr:
21
+ Style/ArgumentsForwarding:
18
22
  Enabled: false
19
- EnforcedStyle: always
23
+ AllowOnlyRestArgument: true
20
24
 
21
25
  Style/ArrayJoin:
22
26
  Enabled: true
@@ -69,16 +73,26 @@ Style/ClassCheck:
69
73
  Enabled: true
70
74
  EnforcedStyle: is_a?
71
75
 
76
+ Style/ClassEqualityComparison:
77
+ Enabled: true
78
+ IgnoredMethods:
79
+ - ==
80
+ - equal?
81
+ - eql?
82
+
72
83
  Style/ClassMethods:
73
84
  Enabled: true
74
85
 
75
86
  Style/ClassMethodsDefinitions:
76
- Enabled: true
87
+ Enabled: false
77
88
  EnforcedStyle: self_class
78
89
 
79
90
  Style/ClassVars:
80
91
  Enabled: true
81
92
 
93
+ Style/CollectionCompact:
94
+ Enabled: true
95
+
82
96
  Style/CollectionMethods:
83
97
  Enabled: false
84
98
 
@@ -112,6 +126,7 @@ Style/Copyright:
112
126
  Style/DateTime:
113
127
  Enabled: false
114
128
  AllowCoercion: false
129
+ AutoCorrect: false
115
130
 
116
131
  Style/DefWithParentheses:
117
132
  Enabled: true
@@ -122,6 +137,9 @@ Style/Dir:
122
137
  Style/DisableCopsWithinSourceCodeDirective:
123
138
  Enabled: false
124
139
 
140
+ Style/DocumentDynamicEvalDefinition:
141
+ Enabled: false
142
+
125
143
  Style/Documentation:
126
144
  Enabled: false
127
145
 
@@ -130,6 +148,7 @@ Style/DocumentationMethod:
130
148
 
131
149
  Style/DoubleNegation:
132
150
  Enabled: false
151
+ AutoCorrect: true
133
152
  EnforcedStyle: allowed_in_returns
134
153
 
135
154
  Style/EachForSimpleLoop:
@@ -195,6 +214,7 @@ Style/FormatString:
195
214
 
196
215
  Style/FormatStringToken:
197
216
  Enabled: true
217
+ MaxUnannotatedPlaceholdersAllowed: 1
198
218
  EnforcedStyle: annotated
199
219
 
200
220
  Style/FrozenStringLiteralComment:
@@ -242,6 +262,7 @@ Style/IdenticalConditionalBranches:
242
262
  Style/IfInsideElse:
243
263
  Enabled: true
244
264
  AllowIfModifier: true
265
+ AutoCorrect: true
245
266
 
246
267
  Style/IfUnlessModifier:
247
268
  Enabled: false
@@ -339,7 +360,7 @@ Style/MultilineWhenThen:
339
360
  Enabled: true
340
361
 
341
362
  Style/MultipleComparison:
342
- Enabled: true
363
+ Enabled: false
343
364
 
344
365
  Style/MutableConstant:
345
366
  Enabled: true
@@ -348,6 +369,9 @@ Style/NegatedIf:
348
369
  Enabled: true
349
370
  EnforcedStyle: both
350
371
 
372
+ Style/NegatedIfElseCondition:
373
+ Enabled: false
374
+
351
375
  Style/NegatedUnless:
352
376
  Enabled: false
353
377
  EnforcedStyle: both
@@ -374,6 +398,9 @@ Style/NilComparison:
374
398
  Enabled: true
375
399
  EnforcedStyle: comparison
376
400
 
401
+ Style/NilLambda:
402
+ Enabled: false
403
+
377
404
  Style/NonNilCheck:
378
405
  Enabled: true
379
406
  IncludeSemanticChanges: false
@@ -405,6 +432,8 @@ Style/OptionalArguments:
405
432
 
406
433
  Style/OptionalBooleanParameter:
407
434
  Enabled: false
435
+ AllowedMethods:
436
+ - respond_to_missing?
408
437
 
409
438
  Style/ParallelAssignment:
410
439
  Enabled: false
@@ -432,6 +461,7 @@ Style/Proc:
432
461
  Style/RaiseArgs:
433
462
  Enabled: true
434
463
  EnforcedStyle: exploded
464
+ AllowedCompactTypes: []
435
465
 
436
466
  Style/RandomWithOffset:
437
467
  Enabled: true
@@ -531,6 +561,9 @@ Style/SlicingWithRange:
531
561
  Style/SpecialGlobalVars:
532
562
  Enabled: true
533
563
 
564
+ Style/StaticClass:
565
+ Enabled: true
566
+
534
567
  Style/StabbyLambdaParentheses:
535
568
  Enabled: true
536
569
  EnforcedStyle: require_parentheses
@@ -573,6 +606,9 @@ Style/SymbolLiteral:
573
606
  Style/SymbolProc:
574
607
  Enabled: true
575
608
 
609
+ Style/SwapValues:
610
+ Enabled: true
611
+
576
612
  Style/TernaryParentheses:
577
613
  Enabled: true
578
614
  EnforcedStyle: require_parentheses_when_complex
@@ -1,8 +1,8 @@
1
- Capybara/CurrentPathExpectation:
1
+ RSpec/Capybara/CurrentPathExpectation:
2
2
  Enabled: true
3
3
 
4
- Capybara/FeatureMethods:
4
+ RSpec/Capybara/FeatureMethods:
5
5
  Enabled: false
6
6
 
7
- Capybara/VisibilityMatcher:
7
+ RSpec/Capybara/VisibilityMatcher:
8
8
  Enabled: true
@@ -1,9 +1,9 @@
1
- FactoryBot/AttributeDefinedStatically:
1
+ RSpec/FactoryBot/AttributeDefinedStatically:
2
2
  Enabled: false
3
3
 
4
- FactoryBot/CreateList:
4
+ RSpec/FactoryBot/CreateList:
5
5
  Enabled: true
6
6
  EnforcedStyle: create_list
7
7
 
8
- FactoryBot/FactoryClassName:
8
+ RSpec/FactoryBot/FactoryClassName:
9
9
  Enabled: true
@@ -1,2 +1,2 @@
1
- Rails/HttpStatus:
1
+ RSpec/Rails/HttpStatus:
2
2
  Enabled: false
@@ -120,9 +120,6 @@ RSpec/InstanceVariable:
120
120
  Enabled: true
121
121
  AssignmentOnly: false
122
122
 
123
- RSpec/InvalidPredicateMatcher:
124
- Enabled: true
125
-
126
123
  RSpec/ItBehavesLike:
127
124
  Enabled: true
128
125
  EnforcedStyle: it_behaves_like
@@ -211,6 +208,9 @@ RSpec/RepeatedExampleGroupBody:
211
208
  RSpec/RepeatedExampleGroupDescription:
212
209
  Enabled: true
213
210
 
211
+ RSpec/RepeatedIncludeExample:
212
+ Enabled: true
213
+
214
214
  RSpec/ReturnFromStub:
215
215
  Enabled: true
216
216
  EnforcedStyle: and_return
@@ -233,6 +233,9 @@ RSpec/SingleArgumentMessageChain:
233
233
  RSpec/SubjectStub:
234
234
  Enabled: true
235
235
 
236
+ RSpec/StubbedMock:
237
+ Enabled: true
238
+
236
239
  RSpec/UnspecifiedException:
237
240
  Enabled: true
238
241
 
@@ -6,16 +6,16 @@ inherit_from:
6
6
  - ./rspec/rails.yml
7
7
  - ./rspec/rspec.yml
8
8
 
9
- AllCops:
10
- RSpec:
11
- Patterns:
12
- - _spec.rb
13
- - "(?:^|/)spec/"
14
- RSpec/FactoryBot:
15
- Patterns:
16
- - spec/factories.rb
17
- - spec/factories/**/*.rb
18
- - spec/support/factories.rb
19
- - spec/support/factories/**/*.rb
20
- - features/support/factires.rb
21
- - features/support/factories/**/*.rb
9
+ RSpec:
10
+ Include:
11
+ - _spec.rb
12
+ - "(?:^|/)spec/"
13
+
14
+ RSpec/FactoryBot:
15
+ Include:
16
+ - spec/factories.rb
17
+ - spec/factories/**/*.rb
18
+ - spec/support/factories.rb
19
+ - spec/support/factories/**/*.rb
20
+ - features/support/factires.rb
21
+ - features/support/factories/**/*.rb
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.91.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-21 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.91.0
19
+ version: 1.3.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.91.0
26
+ version: 1.3.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.8.1
33
+ version: 1.9.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.8.1
40
+ version: 1.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.43.2
61
+ version: 2.0.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.43.2
68
+ version: 2.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +164,7 @@ homepage: https://github.com/0exp/armitage
164
164
  licenses:
165
165
  - MIT
166
166
  metadata: {}
167
- post_install_message:
167
+ post_install_message:
168
168
  rdoc_options: []
169
169
  require_paths:
170
170
  - lib
@@ -179,8 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.1.2
183
- signing_key:
182
+ rubygems_version: 3.2.0.rc.1
183
+ signing_key:
184
184
  specification_version: 4
185
185
  summary: A set of rubocop settings
186
186
  test_files: []