armitage-rubocop 1.36.0 → 1.51.0.4

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: b703a99fad9078f6ba20315883261f41413a7d7cf4bfed58f05ae666e624c844
4
- data.tar.gz: 7ab87e5d2197fe1a33fa2d8e37b5cebf7892c7b6a5f29104ae996552a0c7fd21
3
+ metadata.gz: 2153f1ce8cfe4e777b0acb0b7eecc893024bd3294613108b25ad6ac502b68e98
4
+ data.tar.gz: afd933cab780a39cefdfa5f55b9c467ed599b5956a36ee157a888d19db8e3ed9
5
5
  SHA512:
6
- metadata.gz: c6ecb4667b52a7d89ffdbd16fabaaf31e82d9d1838946f2e89cc190061db34fcf344c95bad50ea9111911fb1f5c82a63df023a10db4ea8b98508e8be3d1de0ca
7
- data.tar.gz: d07ce9c1b2fa61f64c79dd35eb778f25e701f6ba258871281845fb2ace604749022e2a73d6d4b0e7fc21c26c6bdd640a84d1bf2edbdd8a53279251b658e1a341
6
+ metadata.gz: dace268b9a584c6025e6fa052a19ccd86151729d80f7ba3c94e03e5ecbab534f4628df5ad137f9517aa261af167df7b86876fc72c05025a22170457c8bbf3a3a
7
+ data.tar.gz: bad586be3b076bc666e71e056d5c3e8f63554a6c9fb7b2d4a74067df57d87d35fe592b3ba7478f3e76402fc970b1ad2a207d85886a25add1e15070e66eac017d
data/Gemfile.lock CHANGED
@@ -1,71 +1,78 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- armitage-rubocop (1.36.0)
5
- rubocop (= 1.36.0)
6
- rubocop-performance (= 1.15.0)
7
- rubocop-rails (= 2.16.1)
4
+ armitage-rubocop (1.51.0.4)
5
+ rubocop (= 1.51.0)
6
+ rubocop-capybara (= 2.18.0)
7
+ rubocop-factory_bot (= 2.23.1)
8
+ rubocop-performance (= 1.18.0)
9
+ rubocop-rails (= 2.19.1)
8
10
  rubocop-rake (= 0.6.0)
9
- rubocop-rspec (= 2.13.2)
11
+ rubocop-rspec (= 2.22.0)
10
12
 
11
13
  GEM
12
14
  remote: https://rubygems.org/
13
15
  specs:
14
- activesupport (7.0.4)
16
+ activesupport (7.0.5)
15
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
18
  i18n (>= 1.6, < 2)
17
19
  minitest (>= 5.1)
18
20
  tzinfo (~> 2.0)
19
21
  ast (2.4.2)
20
22
  coderay (1.1.3)
21
- concurrent-ruby (1.1.10)
22
- i18n (1.12.0)
23
+ concurrent-ruby (1.2.2)
24
+ i18n (1.13.0)
23
25
  concurrent-ruby (~> 1.0)
24
- json (2.6.2)
26
+ json (2.6.3)
25
27
  method_source (1.0.0)
26
- minitest (5.16.3)
27
- parallel (1.22.1)
28
- parser (3.1.2.1)
28
+ minitest (5.18.0)
29
+ parallel (1.23.0)
30
+ parser (3.2.2.1)
29
31
  ast (~> 2.4.1)
30
- pry (0.14.1)
32
+ pry (0.14.2)
31
33
  coderay (~> 1.1)
32
34
  method_source (~> 1.0)
33
- rack (3.0.0)
35
+ rack (3.0.7)
34
36
  rainbow (3.1.1)
35
37
  rake (13.0.6)
36
- regexp_parser (2.6.0)
38
+ regexp_parser (2.8.0)
37
39
  rexml (3.2.5)
38
- rubocop (1.36.0)
40
+ rubocop (1.51.0)
39
41
  json (~> 2.3)
40
42
  parallel (~> 1.10)
41
- parser (>= 3.1.2.1)
43
+ parser (>= 3.2.0.0)
42
44
  rainbow (>= 2.2.2, < 4.0)
43
45
  regexp_parser (>= 1.8, < 3.0)
44
46
  rexml (>= 3.2.5, < 4.0)
45
- rubocop-ast (>= 1.20.1, < 2.0)
47
+ rubocop-ast (>= 1.28.0, < 2.0)
46
48
  ruby-progressbar (~> 1.7)
47
- unicode-display_width (>= 1.4.0, < 3.0)
48
- rubocop-ast (1.21.0)
49
- parser (>= 3.1.1.0)
50
- rubocop-performance (1.15.0)
49
+ unicode-display_width (>= 2.4.0, < 3.0)
50
+ rubocop-ast (1.28.1)
51
+ parser (>= 3.2.1.0)
52
+ rubocop-capybara (2.18.0)
53
+ rubocop (~> 1.41)
54
+ rubocop-factory_bot (2.23.1)
55
+ rubocop (~> 1.33)
56
+ rubocop-performance (1.18.0)
51
57
  rubocop (>= 1.7.0, < 2.0)
52
58
  rubocop-ast (>= 0.4.0)
53
- rubocop-rails (2.16.1)
59
+ rubocop-rails (2.19.1)
54
60
  activesupport (>= 4.2.0)
55
61
  rack (>= 1.1)
56
62
  rubocop (>= 1.33.0, < 2.0)
57
63
  rubocop-rake (0.6.0)
58
64
  rubocop (~> 1.0)
59
- rubocop-rspec (2.13.2)
65
+ rubocop-rspec (2.22.0)
60
66
  rubocop (~> 1.33)
61
- ruby-progressbar (1.11.0)
62
- tzinfo (2.0.5)
67
+ rubocop-capybara (~> 2.17)
68
+ rubocop-factory_bot (~> 2.22)
69
+ ruby-progressbar (1.13.0)
70
+ tzinfo (2.0.6)
63
71
  concurrent-ruby (~> 1.0)
64
- unicode-display_width (2.3.0)
72
+ unicode-display_width (2.4.2)
65
73
 
66
74
  PLATFORMS
67
- arm64-darwin-21
68
- x86_64-darwin-19
75
+ arm64-darwin-22
69
76
 
70
77
  DEPENDENCIES
71
78
  armitage-rubocop!
@@ -74,4 +81,4 @@ DEPENDENCIES
74
81
  rake (~> 13.0)
75
82
 
76
83
  BUNDLED WITH
77
- 2.3.23
84
+ 2.4.12
data/Rakefile CHANGED
@@ -9,6 +9,8 @@ require 'rubocop-performance'
9
9
  require 'rubocop-rspec'
10
10
  require 'rubocop-rails'
11
11
  require 'rubocop-rake'
12
+ require 'rubocop-capybara'
13
+ require 'rubocop-factory_bot'
12
14
 
13
15
  RuboCop::RakeTask.new(:rubocop) do |t|
14
16
  config_path = File.expand_path(File.join('.rubocop.yml'), __dir__)
@@ -17,6 +19,8 @@ RuboCop::RakeTask.new(:rubocop) do |t|
17
19
  t.requires << 'rubocop-rails'
18
20
  t.requires << 'rubocop-rspec'
19
21
  t.requires << 'rubocop-rake'
22
+ t.requires << 'rubocop-capybara'
23
+ t.requires << 'rubocop-factory_bot'
20
24
  end
21
25
 
22
26
  ARMITAGE_RUBOCOP_PATH = Pathname.new(__FILE__).join('../.rubocop.yml')
@@ -28,7 +32,7 @@ namespace :armitage_rubocop do
28
32
  task :build do
29
33
  build_processes = {
30
34
  code_style_check:
31
- Open3.popen3('bundle exec rake rubocop'),
35
+ Open3.popen3("bundle exec rake rubocop -c #{ARMITAGE_RUBOCOP_PATH}"),
32
36
  cops_validation:
33
37
  Open3.popen3('bundle exec rake armitage_rubocop:validation:recognizable_cops'),
34
38
  yaml_validation:
@@ -39,6 +43,8 @@ namespace :armitage_rubocop do
39
43
  results = {}.tap do |result_data|
40
44
  build_processes.each_pair do |build_type, build_process|
41
45
  # NOTE: build_process => [stdin, stdout, stderr, wtr]
46
+ puts build_process[1].read
47
+ puts build_process[2].read
42
48
  build_result = build_process[3].value.exitstatus
43
49
  result_data[build_type] = build_result
44
50
  end
@@ -4,8 +4,9 @@ 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 = '1.36.0'
7
+ spec.required_ruby_version = '>= 3.1'
8
8
 
9
+ spec.version = '1.51.0.4'
9
10
  spec.name = 'armitage-rubocop'
10
11
  spec.license = 'MIT'
11
12
  spec.authors = ['Rustam Ibragimov']
@@ -22,11 +23,13 @@ Gem::Specification.new do |spec|
22
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
24
  end
24
25
 
25
- spec.add_dependency 'rubocop', '= 1.36.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.15.0'
27
- spec.add_dependency 'rubocop-rails', '= 2.16.1'
28
- spec.add_dependency 'rubocop-rspec', '= 2.13.2'
26
+ spec.add_dependency 'rubocop', '= 1.51.0'
27
+ spec.add_dependency 'rubocop-performance', '= 1.18.0'
28
+ spec.add_dependency 'rubocop-rails', '= 2.19.1'
29
+ spec.add_dependency 'rubocop-rspec', '= 2.22.0'
29
30
  spec.add_dependency 'rubocop-rake', '= 0.6.0'
31
+ spec.add_dependency 'rubocop-capybara', '= 2.18.0'
32
+ spec.add_dependency 'rubocop-factory_bot', '= 2.23.1'
30
33
 
31
34
  spec.add_development_dependency 'bundler', '~> 2.3'
32
35
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -3,6 +3,10 @@ Gemspec/DeprecatedAttributeAssignment:
3
3
  Include:
4
4
  - '**/*.gemspec'
5
5
 
6
+ Gemspec/DevelopmentDependencies:
7
+ Enabled: true
8
+ EnforcedStyle: gemspec
9
+
6
10
  Gemspec/DependencyVersion:
7
11
  Enabled: true
8
12
  EnforcedStyle: required
@@ -18,7 +22,7 @@ Gemspec/OrderedDependencies:
18
22
  TreatCommentsAsGroupSeparators: true
19
23
 
20
24
  Gemspec/RequiredRubyVersion:
21
- Enabled: false
25
+ Enabled: true
22
26
 
23
27
  Gemspec/RubyVersionGlobalsUsage:
24
28
  Enabled: true
@@ -259,6 +259,7 @@ Layout/LineLength:
259
259
 
260
260
  Layout/MultilineMethodParameterLineBreaks:
261
261
  Enabled: true
262
+ AllowMultilineFinalElement: true
262
263
 
263
264
  Layout/MultilineArrayBraceLayout:
264
265
  Enabled: true
@@ -294,12 +295,15 @@ Layout/MultilineOperationIndentation:
294
295
 
295
296
  Layout/MultilineHashKeyLineBreaks:
296
297
  Enabled: false
298
+ AllowMultilineFinalElement: false
297
299
 
298
300
  Layout/MultilineMethodArgumentLineBreaks:
299
301
  Enabled: false
302
+ AllowMultilineFinalElement: true
300
303
 
301
304
  Layout/MultilineArrayLineBreaks:
302
305
  Enabled: false
306
+ AllowMultilineFinalElement: true
303
307
 
304
308
  Layout/RescueEnsureAlignment:
305
309
  Enabled: true
data/lib/common/lint.yml CHANGED
@@ -3,6 +3,7 @@ Lint/AmbiguousAssignment:
3
3
 
4
4
  Lint/AmbiguousBlockAssociation:
5
5
  AllowedMethods: []
6
+ AutoCorrect: true
6
7
  Enabled: true
7
8
 
8
9
  Lint/AmbiguousOperator:
@@ -20,6 +21,7 @@ Lint/AmbiguousOperatorPrecedence:
20
21
 
21
22
  Lint/AssignmentInCondition:
22
23
  Enabled: false
24
+ AutoCorrect: true
23
25
  AllowSafeAssignment: true
24
26
 
25
27
  Lint/BigDecimalNew:
@@ -63,6 +65,12 @@ Lint/DisjunctiveAssignmentInConstructor:
63
65
  Enabled: true
64
66
  AutoCorrect: false
65
67
 
68
+ Lint/DuplicateMatchPattern:
69
+ Enabled: true
70
+
71
+ Lint/DuplicateMagicComment:
72
+ Enabled: true
73
+
66
74
  Lint/DuplicateBranch:
67
75
  Enabled: true
68
76
  IgnoreLiteralBranches: false
@@ -270,6 +278,9 @@ Lint/UselessElseWithoutRescue:
270
278
  Lint/UselessRuby2Keywords:
271
279
  Enabled: true
272
280
 
281
+ Lint/UselessRescue:
282
+ Enabled: true
283
+
273
284
  Lint/RaiseException:
274
285
  Enabled: true
275
286
  AutoCorrect: false
@@ -359,6 +370,7 @@ Lint/ToJSON:
359
370
  Enabled: true
360
371
 
361
372
  Lint/TopLevelReturnWithArgument:
373
+ AutoCorrect: true
362
374
  Enabled: true
363
375
 
364
376
  Lint/TrailingCommaInAttributeDeclaration:
@@ -425,6 +437,7 @@ Lint/UselessAccessModifier:
425
437
  AutoCorrect: true
426
438
 
427
439
  Lint/UselessAssignment:
440
+ AutoCorrect: true
428
441
  Enabled: true
429
442
 
430
443
  Lint/UselessMethodDefinition:
@@ -438,5 +451,6 @@ Lint/UselessTimes:
438
451
  Enabled: true
439
452
 
440
453
  Lint/Void:
454
+ AutoCorrect: true
441
455
  Enabled: true
442
456
  CheckForMethodsWithNoSideEffects: false
@@ -21,6 +21,9 @@ Metrics/BlockNesting:
21
21
  CountBlocks: false
22
22
  Max: 3
23
23
 
24
+ Metrics/CollectionLiteralLength:
25
+ Enabled: false
26
+
24
27
  Metrics/ClassLength:
25
28
  Enabled: true
26
29
  CountComments: false
@@ -75,6 +75,10 @@ Naming/MethodParameterName:
75
75
  - 'db'
76
76
  - 'os'
77
77
  - 'as'
78
+ - 'if'
79
+ - 'cc'
80
+ - 'of'
81
+ - 'pp'
78
82
  ForbiddenNames: []
79
83
 
80
84
  Naming/VariableName:
data/lib/common/rails.yml CHANGED
@@ -8,6 +8,9 @@ Rails/ActionFilter:
8
8
  Enabled: true
9
9
  EnforcedStyle: action
10
10
 
11
+ Rails/ActionOrder:
12
+ Enabled: false
13
+
11
14
  Rails/ActiveRecordAliases:
12
15
  Enabled: true
13
16
 
@@ -54,6 +57,9 @@ Rails/AttributeDefaultBlockValue:
54
57
  Rails/ArelStar:
55
58
  Enabled: true
56
59
 
60
+ Rails/ResponseParsedBody:
61
+ Enabled: false
62
+
57
63
  Rails/RequireDependency:
58
64
  Enabled: true
59
65
  # NOTE: `require_dependency` is obsolete when you use `Zeitwerk`
@@ -183,6 +189,9 @@ Rails/MigrationClassName:
183
189
  Rails/I18nLocaleAssignment:
184
190
  Enabled: false
185
191
 
192
+ Rails/IgnoredColumnsAssignment:
193
+ Enabled: true
194
+
186
195
  Rails/IgnoredSkipActionFilterOption:
187
196
  Enabled: true
188
197
 
@@ -273,6 +282,7 @@ Rails/RedundantReceiverInWithOptions:
273
282
 
274
283
  Rails/ReflectionClassName:
275
284
  Enabled: true
285
+ AutoCorrect: true
276
286
 
277
287
  Rails/RefuteMethods:
278
288
  Enabled: true
@@ -330,6 +340,9 @@ Rails/StripHeredoc:
330
340
  Rails/RedundantTravelBack:
331
341
  Enabled: false # NOTE: can affect the readability
332
342
 
343
+ Rails/ThreeStateBooleanColumn:
344
+ Enabled: false
345
+
333
346
  Rails/TableNameAssignment:
334
347
  Enabled: false
335
348
 
@@ -366,6 +379,9 @@ Rails/UnknownEnv:
366
379
  Rails/Validation:
367
380
  Enabled: true
368
381
 
382
+ Rails/WhereNotWithMultipleConditions:
383
+ Enabled: false
384
+
369
385
  Rails/WhereEquals:
370
386
  Enabled: true
371
387
 
data/lib/common/style.yml CHANGED
@@ -15,6 +15,9 @@ Style/AndOr:
15
15
  Enabled: false
16
16
  EnforcedStyle: always
17
17
 
18
+ Style/ArrayIntersect:
19
+ Enabled: true
20
+
18
21
  Style/ArrayCoercion:
19
22
  Enabled: true
20
23
 
@@ -62,6 +65,7 @@ Style/CaseEquality:
62
65
 
63
66
  Style/CaseLikeIf:
64
67
  Enabled: true
68
+ MinBranchesCount: 3
65
69
  AutoCorrect: true
66
70
 
67
71
  Style/CharacterLiteral:
@@ -91,6 +95,9 @@ Style/ClassMethodsDefinitions:
91
95
  Style/ClassVars:
92
96
  Enabled: true
93
97
 
98
+ Style/ConcatArrayLiterals:
99
+ Enabled: false # NOTE: it is totally unsafe
100
+
94
101
  Style/CollectionCompact:
95
102
  Enabled: true
96
103
 
@@ -103,6 +110,9 @@ Style/ColonMethodCall:
103
110
  Style/ColonMethodDefinition:
104
111
  Enabled: true
105
112
 
113
+ Style/ComparableClamp:
114
+ Enabled: true
115
+
106
116
  Style/CombinableLoops:
107
117
  Enabled: false
108
118
 
@@ -125,6 +135,9 @@ Style/ConstantVisibility:
125
135
  Style/Copyright:
126
136
  Enabled: false
127
137
 
138
+ Style/DataInheritance:
139
+ Enabled: true
140
+
128
141
  Style/DateTime:
129
142
  Enabled: false
130
143
  AllowCoercion: false
@@ -136,6 +149,9 @@ Style/DefWithParentheses:
136
149
  Style/Dir:
137
150
  Enabled: true
138
151
 
152
+ Style/DirEmpty:
153
+ Enabled: true
154
+
139
155
  Style/DisableCopsWithinSourceCodeDirective:
140
156
  Enabled: false
141
157
 
@@ -204,6 +220,9 @@ Style/EvalWithLocation:
204
220
  Style/EvenOdd:
205
221
  Enabled: true
206
222
 
223
+ Style/ExactRegexpMatch:
224
+ Enabled: true
225
+
207
226
  Style/ExpandPathArguments:
208
227
  Enabled: true
209
228
 
@@ -217,6 +236,9 @@ Style/ExplicitBlockArgument:
217
236
  Style/FetchEnvVar:
218
237
  Enabled: true
219
238
 
239
+ Style/FileEmpty:
240
+ Enabled: true
241
+
220
242
  Style/FileRead:
221
243
  Enabled: false
222
244
 
@@ -254,6 +276,7 @@ Style/GlobalStdStream:
254
276
 
255
277
  Style/GuardClause:
256
278
  Enabled: false
279
+ AutoCorrect: true
257
280
  MinBodyLength: 1
258
281
  AllowConsecutiveConditionals: false
259
282
 
@@ -314,6 +337,9 @@ Style/IfWithSemicolon:
314
337
  Style/ImplicitRuntimeError:
315
338
  Enabled: false
316
339
 
340
+ Style/InvertibleUnlessCondition:
341
+ Enabled: false
342
+
317
343
  Style/InfiniteLoop:
318
344
  Enabled: true
319
345
 
@@ -345,6 +371,9 @@ Style/MagicCommentFormat:
345
371
  DirectiveCapitalization: lowercase
346
372
  ValueCapitalization: ~
347
373
 
374
+ Style/MapToSet:
375
+ Enabled: false # NOTE: it is totally unsafe
376
+
348
377
  Style/MapCompactWithConditionalBlock:
349
378
  Enabled: true
350
379
 
@@ -373,8 +402,12 @@ Style/MethodDefParentheses:
373
402
  Style/MinMax:
374
403
  Enabled: true
375
404
 
405
+ Style/MinMaxComparison:
406
+ Enabled: true
407
+
376
408
  Style/MissingElse:
377
409
  Enabled: false
410
+ AutoCorrect: true
378
411
 
379
412
  Style/MissingRespondToMissing:
380
413
  Enabled: true
@@ -493,7 +526,7 @@ Style/NumericPredicate:
493
526
 
494
527
  Style/ObjectThen:
495
528
  Enabled: true
496
- EnforcedStyle: then
529
+ EnforcedStyle: yield_self
497
530
 
498
531
  Style/OneLineConditional:
499
532
  Enabled: true
@@ -501,6 +534,9 @@ Style/OneLineConditional:
501
534
  Style/OpenStructUse:
502
535
  Enabled: true
503
536
 
537
+ Style/OperatorMethodCall:
538
+ Enabled: true
539
+
504
540
  Style/OptionHash:
505
541
  Enabled: false
506
542
 
@@ -543,6 +579,24 @@ Style/RaiseArgs:
543
579
  Style/RandomWithOffset:
544
580
  Enabled: true
545
581
 
582
+ Style/RedundantLineContinuation:
583
+ Enabled: true
584
+
585
+ Style/RedundantHeredocDelimiterQuotes:
586
+ Enabled: true
587
+
588
+ Style/RedundantConstantBase:
589
+ Enabled: true
590
+
591
+ Style/RequireOrder:
592
+ Enabled: false
593
+
594
+ Style/RedundantEach:
595
+ Enabled: true
596
+
597
+ Style/RedundantStringEscape:
598
+ Enabled: true
599
+
546
600
  Style/RedundantArgument:
547
601
  Enabled: false
548
602
 
@@ -656,6 +710,7 @@ Style/SpecialGlobalVars:
656
710
 
657
711
  Style/StaticClass:
658
712
  Enabled: true
713
+ AutoCorrect: true
659
714
 
660
715
  Style/StabbyLambdaParentheses:
661
716
  Enabled: true
@@ -705,8 +760,8 @@ Style/SymbolProc:
705
760
  AllowMethodsWithArguments: true
706
761
  AllowComments: false
707
762
  AllowedMethods:
708
- - respond_to
709
763
  - define_method
764
+ - mail
710
765
 
711
766
  Style/SwapValues:
712
767
  Enabled: true
@@ -761,6 +816,9 @@ Style/UnlessLogicalOperators:
761
816
  EnforcedStyle: forbid_mixed_logical_operators
762
817
  Enabled: false
763
818
 
819
+ Style/RedundantDoubleSplatHashBraces:
820
+ Enabled: true
821
+
764
822
  Style/RedundantCapitalW:
765
823
  Enabled: true
766
824
 
@@ -805,6 +863,9 @@ Style/YodaCondition:
805
863
  Enabled: false
806
864
  EnforcedStyle: forbid_for_all_comparison_operators
807
865
 
866
+ Style/YodaExpression:
867
+ Enabled: false
868
+
808
869
  Style/ZeroLengthPredicate:
809
870
  Enabled: true
810
871
 
@@ -1,14 +1,23 @@
1
- RSpec/Capybara/CurrentPathExpectation:
1
+ Capybara/CurrentPathExpectation:
2
2
  Enabled: true
3
3
 
4
- RSpec/Capybara/FeatureMethods:
4
+ Capybara/FeatureMethods:
5
5
  Enabled: false
6
6
 
7
- RSpec/Capybara/VisibilityMatcher:
7
+ Capybara/VisibilityMatcher:
8
8
  Enabled: true
9
9
 
10
- RSpec/Capybara/SpecificMatcher:
10
+ Capybara/SpecificMatcher:
11
11
  Enabled: false
12
12
 
13
- RSpec/Capybara/SpecificFinders:
13
+ Capybara/SpecificFinders:
14
14
  Enabled: false
15
+
16
+ Capybara/NegationMatcher:
17
+ Enabled: false
18
+
19
+ Capybara/SpecificActions:
20
+ Enabled: true
21
+
22
+ Capybara/MatchStyle:
23
+ Enabled: true
@@ -1,12 +1,31 @@
1
- RSpec/FactoryBot/AttributeDefinedStatically:
1
+ FactoryBot/AttributeDefinedStatically:
2
2
  Enabled: false
3
3
 
4
- RSpec/FactoryBot/CreateList:
4
+ FactoryBot/CreateList:
5
5
  Enabled: true
6
6
  EnforcedStyle: create_list
7
+ ExplicitOnly: false
7
8
 
8
- RSpec/FactoryBot/FactoryClassName:
9
+ FactoryBot/FactoryClassName:
9
10
  Enabled: true
10
11
 
11
- RSpec/FactoryBot/SyntaxMethods:
12
+ FactoryBot/SyntaxMethods:
12
13
  Enabled: true
14
+
15
+ FactoryBot/ConsistentParenthesesStyle:
16
+ Enabled: true
17
+ ExplicitOnly: false
18
+
19
+ FactoryBot/FactoryNameStyle:
20
+ Enabled: true
21
+ EnforcedStyle: symbol
22
+ ExplicitOnly: false
23
+
24
+ FactoryAssociationWithStrategy:
25
+ Enabled: false
26
+
27
+ FactoryBot/RedundantFactoryOption:
28
+ Enabled: false
29
+
30
+ FactoryBot/AssociationStyle:
31
+ Enabled: false
data/lib/rspec/rails.yml CHANGED
@@ -6,3 +6,12 @@ RSpec/Rails/AvoidSetupHook:
6
6
 
7
7
  RSpec/Rails/HaveHttpStatus:
8
8
  Enabled: false
9
+
10
+ RSpec/Rails/InferredSpecType:
11
+ Enabled: false
12
+
13
+ RSpec/Rails/MinitestAssertions:
14
+ Enabled: true
15
+
16
+ RSpec/Rails/TravelAround:
17
+ Enabled: false
data/lib/rspec/rspec.yml CHANGED
@@ -17,6 +17,9 @@ RSpec/BeNil:
17
17
  Enabled: false
18
18
  EnforcedStyle: be
19
19
 
20
+ RSpec/BeEmpty:
21
+ Enabled: false
22
+
20
23
  RSpec/BeEql:
21
24
  Enabled: false
22
25
 
@@ -25,7 +28,10 @@ RSpec/BeforeAfterAll:
25
28
 
26
29
  RSpec/ChangeByZero:
27
30
  Enabled: true
28
- NegatedMatcher: nil
31
+ NegatedMatcher: ~
32
+
33
+ RSpec/ContainExactly:
34
+ Enabled: false
29
35
 
30
36
  RSpec/ContextMethod:
31
37
  Enabled: false
@@ -33,6 +39,9 @@ RSpec/ContextMethod:
33
39
  RSpec/ContextWording:
34
40
  Enabled: false
35
41
 
42
+ RSpec/DuplicatedMetadata:
43
+ Enabled: true
44
+
36
45
  RSpec/DescribeClass:
37
46
  Enabled: false
38
47
 
@@ -136,6 +145,9 @@ RSpec/ImplicitSubject:
136
145
  RSpec/InstanceSpy:
137
146
  Enabled: true
138
147
 
148
+ RSpec/IndexedLet:
149
+ Enabled: false
150
+
139
151
  RSpec/InstanceVariable:
140
152
  Enabled: true
141
153
  AssignmentOnly: false
@@ -159,6 +171,9 @@ RSpec/LetBeforeExamples:
159
171
  RSpec/LetSetup:
160
172
  Enabled: false
161
173
 
174
+ RSpec/MatchArray:
175
+ Enabled: false
176
+
162
177
  RSpec/MessageChain:
163
178
  Enabled: false
164
179
 
@@ -186,6 +201,7 @@ RSpec/MultipleSubjects:
186
201
  RSpec/NamedSubject:
187
202
  Enabled: true
188
203
  IgnoreSharedExamples: true
204
+ EnforcedStyle: always
189
205
 
190
206
  RSpec/NestedGroups:
191
207
  Enabled: false
@@ -200,6 +216,9 @@ RSpec/OverwritingSetup:
200
216
  RSpec/Pending:
201
217
  Enabled: false
202
218
 
219
+ RSpec/PendingWithoutReason:
220
+ Enabled: false
221
+
203
222
  RSpec/PredicateMatcher:
204
223
  Enabled: true
205
224
  Strict: true
@@ -210,6 +229,9 @@ RSpec/PredicateMatcher:
210
229
  - have_http_status
211
230
  - have_been_made
212
231
 
232
+ RSpec/RedundantAround:
233
+ Enabled: true
234
+
213
235
  RSpec/ReceiveCounts:
214
236
  Enabled: false
215
237
 
@@ -239,11 +261,18 @@ RSpec/ClassCheck:
239
261
  Enabled: true
240
262
  EnforcedStyle: be_a
241
263
 
264
+ RSpec/SkipBlockInsideExample:
265
+ Enabled: true
266
+
267
+ RSpec/SortMetadata:
268
+ Enabled: false
269
+
242
270
  RSpec/ScatteredLet:
243
271
  Enabled: true
244
272
 
245
273
  RSpec/ScatteredSetup:
246
274
  Enabled: false
275
+ AutoCorrect: true
247
276
 
248
277
  RSpec/SharedContext:
249
278
  Enabled: true
@@ -18,4 +18,5 @@ AllCops:
18
18
  DisplayStyleGuide: false
19
19
  ExtraDetails: true
20
20
  UseCache: false
21
+ ActiveSupportExtensionsEnabled: false
21
22
  TargetRubyVersion: ~
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: 1.36.0
4
+ version: 1.51.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2023-05-27 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: 1.36.0
19
+ version: 1.51.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: 1.36.0
26
+ version: 1.51.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.15.0
33
+ version: 1.18.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.15.0
40
+ version: 1.18.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.16.1
47
+ version: 2.19.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.16.1
54
+ version: 2.19.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: 2.13.2
61
+ version: 2.22.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: 2.13.2
68
+ version: 2.22.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.6.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-capybara
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 2.18.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 2.18.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-factory_bot
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.23.1
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.23.1
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: bundler
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -173,14 +201,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
201
  requirements:
174
202
  - - ">="
175
203
  - !ruby/object:Gem::Version
176
- version: '0'
204
+ version: '3.1'
177
205
  required_rubygems_version: !ruby/object:Gem::Requirement
178
206
  requirements:
179
207
  - - ">="
180
208
  - !ruby/object:Gem::Version
181
209
  version: '0'
182
210
  requirements: []
183
- rubygems_version: 3.1.2
211
+ rubygems_version: 3.4.12
184
212
  signing_key:
185
213
  specification_version: 4
186
214
  summary: A set of rubocop settings