armitage-rubocop 0.93.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: 78e11ada119f145b98a39b8d45bd500f817ba503ffc7f30d6389b727742a476a
4
- data.tar.gz: 5d7ea304c8de4e190a2acaa9c11a5974251da4a21525fb19dc3f5d4c4a5744c0
3
+ metadata.gz: f224eff3263b19fd9dd64b5783d656806e0def874f3c708376baa3ea44ea9b73
4
+ data.tar.gz: 4e20193c21cb9f90e9e87569b6db63592ead287053c23468a3cd7a20c8a7554e
5
5
  SHA512:
6
- metadata.gz: 02bd62021abbde7aa28af11c8aecfb1eed5fe6e46db86c04bf832755335c2fcf4d13df6fa6511e5e14c296cfa0f83190fce614eaf61cf7caf19c9de44e3e7582
7
- data.tar.gz: 5824ad439f1f9a2ebfacef4448d5dae006c3baa3a10cbda59e44b590de39af11befcfef28d93551db3c306b9e6dab9baa3f32eb6a2c6d16900d4825c553b1602
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.93.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.93.1'
25
+ spec.add_dependency 'rubocop', '= 1.2.0'
26
26
  spec.add_dependency 'rubocop-performance', '= 1.8.1'
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'
@@ -59,6 +59,9 @@ Lint/DuplicateElsifCondition:
59
59
  Lint/DuplicateRequire:
60
60
  Enabled: true
61
61
 
62
+ Lint/DuplicateRegexpCharacterClassElement:
63
+ Enabled: true
64
+
62
65
  Lint/EachWithObjectArgument:
63
66
  Enabled: true
64
67
 
@@ -67,6 +70,11 @@ Lint/DuplicateRescueException:
67
70
 
68
71
  Lint/ElseLayout:
69
72
  Enabled: true
73
+ AutoCorrect: true
74
+
75
+ Lint/EmptyBlock:
76
+ Enabled: true
77
+ AllowComments: true
70
78
 
71
79
  Lint/EmptyConditionalBody:
72
80
  Enabled: true
@@ -163,6 +171,7 @@ Lint/MissingSuper:
163
171
 
164
172
  Lint/MultipleComparison:
165
173
  Enabled: true
174
+ AllowMethodComparison: true
166
175
 
167
176
  Lint/NestedMethodDefinition:
168
177
  Enabled: true
@@ -271,6 +280,9 @@ Lint/RedundantStringCoercion:
271
280
  Lint/Syntax:
272
281
  Enabled: true
273
282
 
283
+ Lint/ToEnumArguments:
284
+ Enabled: false
285
+
274
286
  Lint/ToJSON:
275
287
  Enabled: true
276
288
 
@@ -283,6 +295,9 @@ Lint/TrailingCommaInAttributeDeclaration:
283
295
  Lint/UnderscorePrefixedVariableName:
284
296
  Enabled: false
285
297
 
298
+ Lint/UnmodifiedReduceAccumulator:
299
+ Enabled: true
300
+
286
301
  Lint/UnifiedInteger:
287
302
  Enabled: true
288
303
 
@@ -342,6 +357,7 @@ Lint/UselessMethodDefinition:
342
357
 
343
358
  Lint/UselessSetterCall:
344
359
  Enabled: true
360
+ AutoCorrect: true
345
361
 
346
362
  Lint/UselessTimes:
347
363
  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
@@ -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
@@ -86,6 +90,9 @@ Style/ClassMethodsDefinitions:
86
90
  Style/ClassVars:
87
91
  Enabled: true
88
92
 
93
+ Style/CollectionCompact:
94
+ Enabled: true
95
+
89
96
  Style/CollectionMethods:
90
97
  Enabled: false
91
98
 
@@ -130,6 +137,9 @@ Style/Dir:
130
137
  Style/DisableCopsWithinSourceCodeDirective:
131
138
  Enabled: false
132
139
 
140
+ Style/DocumentDynamicEvalDefinition:
141
+ Enabled: false
142
+
133
143
  Style/Documentation:
134
144
  Enabled: false
135
145
 
@@ -138,6 +148,7 @@ Style/DocumentationMethod:
138
148
 
139
149
  Style/DoubleNegation:
140
150
  Enabled: false
151
+ AutoCorrect: true
141
152
  EnforcedStyle: allowed_in_returns
142
153
 
143
154
  Style/EachForSimpleLoop:
@@ -203,6 +214,7 @@ Style/FormatString:
203
214
 
204
215
  Style/FormatStringToken:
205
216
  Enabled: true
217
+ MaxUnannotatedPlaceholdersAllowed: 1
206
218
  EnforcedStyle: annotated
207
219
 
208
220
  Style/FrozenStringLiteralComment:
@@ -347,7 +359,7 @@ Style/MultilineWhenThen:
347
359
  Enabled: true
348
360
 
349
361
  Style/MultipleComparison:
350
- Enabled: true
362
+ Enabled: false
351
363
 
352
364
  Style/MutableConstant:
353
365
  Enabled: true
@@ -356,6 +368,9 @@ Style/NegatedIf:
356
368
  Enabled: true
357
369
  EnforcedStyle: both
358
370
 
371
+ Style/NegatedIfElseCondition:
372
+ Enabled: false
373
+
359
374
  Style/NegatedUnless:
360
375
  Enabled: false
361
376
  EnforcedStyle: both
@@ -442,6 +457,7 @@ Style/Proc:
442
457
  Style/RaiseArgs:
443
458
  Enabled: true
444
459
  EnforcedStyle: exploded
460
+ AllowedCompactTypes: []
445
461
 
446
462
  Style/RandomWithOffset:
447
463
  Enabled: true
@@ -583,6 +599,9 @@ Style/SymbolLiteral:
583
599
  Style/SymbolProc:
584
600
  Enabled: true
585
601
 
602
+ Style/SwapValues:
603
+ Enabled: true
604
+
586
605
  Style/TernaryParentheses:
587
606
  Enabled: true
588
607
  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.93.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-10-17 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,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.93.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.93.1
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  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
@@ -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: []