armitage-rubocop 0.89.1 → 1.2.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: c28154435f7b4b3dce611b7eedca8497f6e5d6e53360459b7e9a9c8ac140bb99
4
- data.tar.gz: e0080568e776946dc84708b57ca704bdfbeb1fcde5d7a5d7777a41b701ed491e
3
+ metadata.gz: f224eff3263b19fd9dd64b5783d656806e0def874f3c708376baa3ea44ea9b73
4
+ data.tar.gz: 4e20193c21cb9f90e9e87569b6db63592ead287053c23468a3cd7a20c8a7554e
5
5
  SHA512:
6
- metadata.gz: 4bff4699b1f8920f5d72db839673d0b5e167d5607f929a782e6d9945182fe18f3b557bb6beb4136afff858bb10d181bab9006be715fe1c21e6bd7f38fbebafc3
7
- data.tar.gz: 4772b4ee3cf65a8f3abe93bd33dda81bb00f4ffddefc8f4bc281f0826c5d194d4132646b865a721792f16783dd08ef09e39dd728721ce867bd9ba68048b0b8d3
6
+ metadata.gz: e2c1e6486619014452d5150e85e4c2924bd245536309bb7a33235c8f3ac847c9a0c4509eb0e86ada8a16ddd91df56283fb10214bd2a23d15425e12e31084d6b9
7
+ data.tar.gz: b5f736c62c0f55de2841628ab21489e01b2938f68de3b25722ebc442f6c43983497f95fd5ce1bc8121ac4a232112d0619f086b4cb117ead908300217dd42810f
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.89.1'
7
+ spec.version = '1.2.0'
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.89.1'
26
- spec.add_dependency 'rubocop-performance', '= 1.7.1'
27
- spec.add_dependency 'rubocop-rails', '= 2.7.1'
28
- spec.add_dependency 'rubocop-rspec', '= 1.43.2'
25
+ spec.add_dependency 'rubocop', '= 1.2.0'
26
+ spec.add_dependency 'rubocop-performance', '= 1.8.1'
27
+ spec.add_dependency 'rubocop-rails', '= 2.8.1'
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'
@@ -24,6 +24,11 @@ Layout/ParameterAlignment:
24
24
  EnforcedStyle: with_first_parameter
25
25
  IndentationWidth: ~
26
26
 
27
+ Layout/BeginEndAlignment:
28
+ Enabled: true
29
+ EnforcedStyleAlignWith: start_of_line
30
+ Severity: warning
31
+
27
32
  Layout/BlockAlignment:
28
33
  Enabled: true
29
34
  EnforcedStyleAlignWith: either
@@ -90,6 +95,9 @@ Layout/EmptyLineAfterGuardClause:
90
95
  Layout/EmptyLineAfterMagicComment:
91
96
  Enabled: true
92
97
 
98
+ Layout/EmptyLineAfterMultilineCondition:
99
+ Enabled: false
100
+
93
101
  Layout/EmptyLinesAroundAttributeAccessor:
94
102
  Enabled: true
95
103
  AllowAliasSyntax: true
@@ -23,6 +23,9 @@ Lint/BooleanSymbol:
23
23
  Lint/CircularArgumentReference:
24
24
  Enabled: true
25
25
 
26
+ Lint/ConstantDefinitionInBlock:
27
+ Enabled: false
28
+
26
29
  Lint/ConstantResolution:
27
30
  Enabled: false
28
31
  Only: []
@@ -53,6 +56,12 @@ Lint/DuplicateHashKey:
53
56
  Lint/DuplicateElsifCondition:
54
57
  Enabled: true
55
58
 
59
+ Lint/DuplicateRequire:
60
+ Enabled: true
61
+
62
+ Lint/DuplicateRegexpCharacterClassElement:
63
+ Enabled: true
64
+
56
65
  Lint/EachWithObjectArgument:
57
66
  Enabled: true
58
67
 
@@ -61,6 +70,11 @@ Lint/DuplicateRescueException:
61
70
 
62
71
  Lint/ElseLayout:
63
72
  Enabled: true
73
+ AutoCorrect: true
74
+
75
+ Lint/EmptyBlock:
76
+ Enabled: true
77
+ AllowComments: true
64
78
 
65
79
  Lint/EmptyConditionalBody:
66
80
  Enabled: true
@@ -73,6 +87,10 @@ Lint/EmptyEnsure:
73
87
  Lint/EmptyExpression:
74
88
  Enabled: true
75
89
 
90
+ Lint/EmptyFile:
91
+ Enabled: true
92
+ AllowComments: true
93
+
76
94
  Lint/EmptyInterpolation:
77
95
  Enabled: true
78
96
 
@@ -108,9 +126,15 @@ Lint/StructNewOverride:
108
126
  Lint/SuppressedException:
109
127
  Enabled: false
110
128
 
129
+ Lint/HashCompareByIdentity:
130
+ Enabled: false
131
+
111
132
  Lint/HeredocMethodCallPosition:
112
133
  Enabled: true
113
134
 
135
+ Lint/IdentityComparison:
136
+ Enabled: false
137
+
114
138
  Lint/ImplicitStringConcatenation:
115
139
  Enabled: true
116
140
 
@@ -147,6 +171,7 @@ Lint/MissingSuper:
147
171
 
148
172
  Lint/MultipleComparison:
149
173
  Enabled: true
174
+ AllowMethodComparison: true
150
175
 
151
176
  Lint/NestedMethodDefinition:
152
177
  Enabled: true
@@ -191,6 +216,16 @@ Lint/RaiseException:
191
216
  Lint/RandOne:
192
217
  Enabled: true
193
218
 
219
+ Lint/RedundantSafeNavigation:
220
+ Enabled: true
221
+ AllowedMethods:
222
+ - instance_of?
223
+ - kind_of?
224
+ - is_a?
225
+ - eql?
226
+ - respond_to?
227
+ - equal?
228
+
194
229
  Lint/RedundantWithIndex:
195
230
  Enabled: true
196
231
 
@@ -245,15 +280,24 @@ Lint/RedundantStringCoercion:
245
280
  Lint/Syntax:
246
281
  Enabled: true
247
282
 
283
+ Lint/ToEnumArguments:
284
+ Enabled: false
285
+
248
286
  Lint/ToJSON:
249
287
  Enabled: true
250
288
 
251
289
  Lint/TopLevelReturnWithArgument:
252
290
  Enabled: true
253
291
 
292
+ Lint/TrailingCommaInAttributeDeclaration:
293
+ Enabled: true
294
+
254
295
  Lint/UnderscorePrefixedVariableName:
255
296
  Enabled: false
256
297
 
298
+ Lint/UnmodifiedReduceAccumulator:
299
+ Enabled: true
300
+
257
301
  Lint/UnifiedInteger:
258
302
  Enabled: true
259
303
 
@@ -307,8 +351,16 @@ Lint/UselessAssignment:
307
351
  Lint/UselessElseWithoutRescue:
308
352
  Enabled: true
309
353
 
354
+ Lint/UselessMethodDefinition:
355
+ Enabled: true
356
+ AllowComments: true
357
+
310
358
  Lint/UselessSetterCall:
311
359
  Enabled: true
360
+ AutoCorrect: true
361
+
362
+ Lint/UselessTimes:
363
+ Enabled: true
312
364
 
313
365
  Lint/Void:
314
366
  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
@@ -23,6 +23,10 @@ Performance/ChainArrayAllocation:
23
23
  Performance/CompareWithBlock:
24
24
  Enabled: true
25
25
 
26
+ Performance/CollectionLiteralInLoop:
27
+ Enabled: true
28
+ MinSize: 1
29
+
26
30
  Performance/Count:
27
31
  Enabled: true
28
32
  SafeAutoCorrect: false
@@ -108,6 +112,9 @@ Performance/StringInclude:
108
112
  Performance/StringReplacement:
109
113
  Enabled: true
110
114
 
115
+ Performance/Sum:
116
+ Enabled: true
117
+
111
118
  Performance/TimesMap:
112
119
  Enabled: true
113
120
  AutoCorrect: false
@@ -18,6 +18,9 @@ Rails/ActiveRecordOverride:
18
18
  Rails/ActiveSupportAliases:
19
19
  Enabled: true
20
20
 
21
+ Rails/AfterCommitOverride:
22
+ Enabled: true
23
+
21
24
  Rails/ApplicationJob:
22
25
  Enabled: true
23
26
 
@@ -148,6 +151,9 @@ Rails/NegateInclude:
148
151
  Rails/NotNullColumn:
149
152
  Enabled: true
150
153
 
154
+ Rails/OrderById:
155
+ Enabled: false
156
+
151
157
  Rails/Output:
152
158
  Enabled: true
153
159
 
@@ -165,6 +171,7 @@ Rails/PluckId:
165
171
 
166
172
  Rails/PluckInWhere:
167
173
  Enabled: true
174
+ EnforcedStyle: conservative
168
175
 
169
176
  Rails/PluralizationGrammar:
170
177
  Enabled: true
@@ -237,6 +244,9 @@ Rails/ShortI18n:
237
244
  Rails/SkipsModelValidations:
238
245
  Enabled: false
239
246
 
247
+ Rails/SquishedSQLHeredocs:
248
+ Enabled: true
249
+
240
250
  Rails/TimeZone:
241
251
  Enabled: true
242
252
  EnforcedStyle: flexible
@@ -263,3 +273,7 @@ Rails/Validation:
263
273
 
264
274
  Rails/WhereExists:
265
275
  Enabled: false
276
+ EnforcedStyle: exists
277
+
278
+ Rails/WhereNot:
279
+ Enabled: false
@@ -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,12 +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
 
86
+ Style/ClassMethodsDefinitions:
87
+ Enabled: false
88
+ EnforcedStyle: self_class
89
+
75
90
  Style/ClassVars:
76
91
  Enabled: true
77
92
 
93
+ Style/CollectionCompact:
94
+ Enabled: true
95
+
78
96
  Style/CollectionMethods:
79
97
  Enabled: false
80
98
 
@@ -84,6 +102,9 @@ Style/ColonMethodCall:
84
102
  Style/ColonMethodDefinition:
85
103
  Enabled: true
86
104
 
105
+ Style/CombinableLoops:
106
+ Enabled: false
107
+
87
108
  Style/CommandLiteral:
88
109
  Enabled: false
89
110
 
@@ -105,6 +126,7 @@ Style/Copyright:
105
126
  Style/DateTime:
106
127
  Enabled: false
107
128
  AllowCoercion: false
129
+ AutoCorrect: false
108
130
 
109
131
  Style/DefWithParentheses:
110
132
  Enabled: true
@@ -115,6 +137,9 @@ Style/Dir:
115
137
  Style/DisableCopsWithinSourceCodeDirective:
116
138
  Enabled: false
117
139
 
140
+ Style/DocumentDynamicEvalDefinition:
141
+ Enabled: false
142
+
118
143
  Style/Documentation:
119
144
  Enabled: false
120
145
 
@@ -123,6 +148,7 @@ Style/DocumentationMethod:
123
148
 
124
149
  Style/DoubleNegation:
125
150
  Enabled: false
151
+ AutoCorrect: true
126
152
  EnforcedStyle: allowed_in_returns
127
153
 
128
154
  Style/EachForSimpleLoop:
@@ -188,6 +214,7 @@ Style/FormatString:
188
214
 
189
215
  Style/FormatStringToken:
190
216
  Enabled: true
217
+ MaxUnannotatedPlaceholdersAllowed: 1
191
218
  EnforcedStyle: annotated
192
219
 
193
220
  Style/FrozenStringLiteralComment:
@@ -262,6 +289,9 @@ Style/InverseMethods:
262
289
  Style/IpAddresses:
263
290
  Enabled: false
264
291
 
292
+ Style/KeywordParametersOrder:
293
+ Enabled: false
294
+
265
295
  Style/Lambda:
266
296
  Enabled: true
267
297
  EnforcedStyle: line_count_dependent
@@ -329,7 +359,7 @@ Style/MultilineWhenThen:
329
359
  Enabled: true
330
360
 
331
361
  Style/MultipleComparison:
332
- Enabled: true
362
+ Enabled: false
333
363
 
334
364
  Style/MutableConstant:
335
365
  Enabled: true
@@ -338,6 +368,9 @@ Style/NegatedIf:
338
368
  Enabled: true
339
369
  EnforcedStyle: both
340
370
 
371
+ Style/NegatedIfElseCondition:
372
+ Enabled: false
373
+
341
374
  Style/NegatedUnless:
342
375
  Enabled: false
343
376
  EnforcedStyle: both
@@ -395,6 +428,8 @@ Style/OptionalArguments:
395
428
 
396
429
  Style/OptionalBooleanParameter:
397
430
  Enabled: false
431
+ AllowedMethods:
432
+ - respond_to_missing?
398
433
 
399
434
  Style/ParallelAssignment:
400
435
  Enabled: false
@@ -422,6 +457,7 @@ Style/Proc:
422
457
  Style/RaiseArgs:
423
458
  Enabled: true
424
459
  EnforcedStyle: exploded
460
+ AllowedCompactTypes: []
425
461
 
426
462
  Style/RandomWithOffset:
427
463
  Enabled: true
@@ -464,6 +500,9 @@ Style/RedundantReturn:
464
500
  Style/RedundantSelf:
465
501
  Enabled: true
466
502
 
503
+ Style/RedundantSelfAssignment:
504
+ Enabled: false
505
+
467
506
  Style/RedundantSortBy:
468
507
  Enabled: true
469
508
 
@@ -560,6 +599,9 @@ Style/SymbolLiteral:
560
599
  Style/SymbolProc:
561
600
  Enabled: true
562
601
 
602
+ Style/SwapValues:
603
+ Enabled: true
604
+
563
605
  Style/TernaryParentheses:
564
606
  Enabled: true
565
607
  EnforcedStyle: require_parentheses_when_complex
@@ -618,6 +660,10 @@ Style/RedundantPercentQ:
618
660
  Style/RedundantSort:
619
661
  Enabled: true
620
662
 
663
+ Style/SoleNestedConditional:
664
+ Enabled: true
665
+ AllowModifier: true
666
+
621
667
  Style/UnpackFirst:
622
668
  Enabled: true
623
669
 
@@ -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.89.1
4
+ version: 1.2.0
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-08-25 00:00:00.000000000 Z
11
+ date: 2020-11-08 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.89.1
19
+ version: 1.2.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.89.1
26
+ version: 1.2.0
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.7.1
33
+ version: 1.8.1
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.7.1
40
+ version: 1.8.1
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.7.1
47
+ version: 2.8.1
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.7.1
54
+ version: 2.8.1
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.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
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubygems_version: 3.1.2
183
- signing_key:
183
+ signing_key:
184
184
  specification_version: 4
185
185
  summary: A set of rubocop settings
186
186
  test_files: []