armitage-rubocop 0.88.0 → 0.89.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: 140748b670a47306e4446b79a9c61665e5dcef9f9264af29e3d353d6acdbb0a3
4
- data.tar.gz: 3f4d1be7db4045eef7b5315ffbe33666be78226d65b3a88f847b54aa3c6e7f2c
3
+ metadata.gz: c28154435f7b4b3dce611b7eedca8497f6e5d6e53360459b7e9a9c8ac140bb99
4
+ data.tar.gz: e0080568e776946dc84708b57ca704bdfbeb1fcde5d7a5d7777a41b701ed491e
5
5
  SHA512:
6
- metadata.gz: 25f30f612097f816d8e3c47fee8fc6d28bd59c9cd07255d4294582a7b86328ea28b0e2e3520b0587469bbe55cef357de12393ad0139931736e5d50e3f4b6fcad
7
- data.tar.gz: c241318e983d388bbe248be699b8968ffd1cbe487d637074ce93e4be3fdc3688a057be58ce8f4671eb5dea6d9ec45d507bf0aafebda4699d6d4178d3bfaa7037
6
+ metadata.gz: 4bff4699b1f8920f5d72db839673d0b5e167d5607f929a782e6d9945182fe18f3b557bb6beb4136afff858bb10d181bab9006be715fe1c21e6bd7f38fbebafc3
7
+ data.tar.gz: 4772b4ee3cf65a8f3abe93bd33dda81bb00f4ffddefc8f4bc281f0826c5d194d4132646b865a721792f16783dd08ef09e39dd728721ce867bd9ba68048b0b8d3
@@ -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.88.0'
7
+ spec.version = '0.89.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.88.0'
25
+ spec.add_dependency 'rubocop', '= 0.89.1'
26
26
  spec.add_dependency 'rubocop-performance', '= 1.7.1'
27
- spec.add_dependency 'rubocop-rails', '= 2.6.0'
28
- spec.add_dependency 'rubocop-rspec', '= 1.42.0'
27
+ spec.add_dependency 'rubocop-rails', '= 2.7.1'
28
+ spec.add_dependency 'rubocop-rspec', '= 1.43.2'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
@@ -367,6 +367,9 @@ Layout/IndentationStyle:
367
367
  EnforcedStyle: spaces
368
368
  IndentationWidth: 2
369
369
 
370
+ Layout/SpaceAroundMethodCallOperator:
371
+ Enabled: true
372
+
370
373
  Layout/TrailingEmptyLines:
371
374
  Enabled: true
372
375
  EnforcedStyle: final_newline
@@ -14,6 +14,9 @@ Lint/AssignmentInCondition:
14
14
  Lint/BigDecimalNew:
15
15
  Enabled: true
16
16
 
17
+ Lint/BinaryOperatorWithIdenticalOperands:
18
+ Enabled: true
19
+
17
20
  Lint/BooleanSymbol:
18
21
  Enabled: false
19
22
 
@@ -53,9 +56,16 @@ Lint/DuplicateElsifCondition:
53
56
  Lint/EachWithObjectArgument:
54
57
  Enabled: true
55
58
 
59
+ Lint/DuplicateRescueException:
60
+ Enabled: true
61
+
56
62
  Lint/ElseLayout:
57
63
  Enabled: true
58
64
 
65
+ Lint/EmptyConditionalBody:
66
+ Enabled: true
67
+ AllowComments: true
68
+
59
69
  Lint/EmptyEnsure:
60
70
  Enabled: true
61
71
  AutoCorrect: true
@@ -72,7 +82,6 @@ Lint/EmptyWhen:
72
82
 
73
83
  Lint/EnsureReturn:
74
84
  Enabled: true
75
- AutoCorrect: false
76
85
 
77
86
  Lint/ErbNewArguments:
78
87
  Enabled: true
@@ -84,10 +93,13 @@ Lint/FlipFlop:
84
93
  Lint/FloatOutOfRange:
85
94
  Enabled: true
86
95
 
96
+ Lint/FloatComparison:
97
+ Enabled: false
98
+
87
99
  Lint/FormatParameterMismatch:
88
100
  Enabled: true
89
101
 
90
- Layout/SpaceAroundMethodCallOperator:
102
+ Lint/SelfAssignment:
91
103
  Enabled: true
92
104
 
93
105
  Lint/StructNewOverride:
@@ -121,6 +133,7 @@ Lint/LiteralInInterpolation:
121
133
 
122
134
  Lint/Loop:
123
135
  Enabled: true
136
+ AutoCorrect: true
124
137
 
125
138
  Lint/MissingCopEnableDirective:
126
139
  Enabled: true
@@ -129,6 +142,9 @@ Lint/MixedRegexpCaptureTypes:
129
142
  Enabled: true
130
143
  # NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
131
144
 
145
+ Lint/MissingSuper:
146
+ Enabled: false
147
+
132
148
  Lint/MultipleComparison:
133
149
  Enabled: true
134
150
 
@@ -153,6 +169,9 @@ Lint/NumberConversion:
153
169
  Lint/OrderedMagicComments:
154
170
  Enabled: true
155
171
 
172
+ Lint/OutOfRangeRegexpRef:
173
+ Enabled: true
174
+
156
175
  Lint/ParenthesesAsGroupedExpression:
157
176
  Enabled: true
158
177
  AutoCorrect: true
@@ -229,12 +248,18 @@ Lint/Syntax:
229
248
  Lint/ToJSON:
230
249
  Enabled: true
231
250
 
251
+ Lint/TopLevelReturnWithArgument:
252
+ Enabled: true
253
+
232
254
  Lint/UnderscorePrefixedVariableName:
233
255
  Enabled: false
234
256
 
235
257
  Lint/UnifiedInteger:
236
258
  Enabled: true
237
259
 
260
+ Lint/UnreachableLoop:
261
+ Enabled: true
262
+
238
263
  Lint/RedundantCopDisableDirective:
239
264
  Enabled: true
240
265
 
@@ -279,9 +304,6 @@ Lint/UselessAccessModifier:
279
304
  Lint/UselessAssignment:
280
305
  Enabled: true
281
306
 
282
- Lint/UselessComparison:
283
- Enabled: true
284
-
285
307
  Lint/UselessElseWithoutRescue:
286
308
  Enabled: true
287
309
 
@@ -5,6 +5,11 @@ Rails/ActionFilter:
5
5
  Rails/ActiveRecordAliases:
6
6
  Enabled: true
7
7
 
8
+ Rails/ActiveRecordCallbacksOrder:
9
+ Enabled: true
10
+ Include:
11
+ - app/models/**/*.rb
12
+
8
13
  Rails/ActiveRecordOverride:
9
14
  Enabled: true
10
15
  Include:
@@ -52,6 +57,9 @@ Rails/Date:
52
57
  Enabled: true
53
58
  EnforcedStyle: flexible
54
59
 
60
+ Rails/DefaultScope:
61
+ Enabled: false
62
+
55
63
  Rails/Delegate:
56
64
  Enabled: false
57
65
 
@@ -88,6 +96,9 @@ Rails/FilePath:
88
96
  Rails/FindBy:
89
97
  Enabled: true
90
98
 
99
+ Rails/FindById:
100
+ Enabled: true
101
+
91
102
  Rails/FindEach:
92
103
  Enabled: true
93
104
 
@@ -112,6 +123,9 @@ Rails/IndexBy:
112
123
  Rails/IndexWith:
113
124
  Enabled: true
114
125
 
126
+ Rails/Inquiry:
127
+ Enabled: false
128
+
115
129
  Rails/InverseOf:
116
130
  Enabled: true
117
131
 
@@ -121,6 +135,16 @@ Rails/LexicallyScopedActionFilter:
121
135
  Rails/LinkToBlank:
122
136
  Enabled: true
123
137
 
138
+ Rails/MailerName:
139
+ Enabled: true
140
+ # mailer views are mapped to the mailer class with Mailer postfix in the name of a class
141
+
142
+ Rails/MatchRoute:
143
+ Enabled: true
144
+
145
+ Rails/NegateInclude:
146
+ Enabled: true
147
+
124
148
  Rails/NotNullColumn:
125
149
  Enabled: true
126
150
 
@@ -133,6 +157,15 @@ Rails/OutputSafety:
133
157
  Rails/Pick:
134
158
  Enabled: true
135
159
 
160
+ Rails/Pluck:
161
+ Enabled: true
162
+
163
+ Rails/PluckId:
164
+ Enabled: false
165
+
166
+ Rails/PluckInWhere:
167
+ Enabled: true
168
+
136
169
  Rails/PluralizationGrammar:
137
170
  Enabled: true
138
171
 
@@ -170,6 +203,13 @@ Rails/RelativeDateConstant:
170
203
  Enabled: true
171
204
  AutoCorrect: false
172
205
 
206
+ Rails/RenderInline:
207
+ Enabled: false
208
+
209
+ Rails/RenderPlainText:
210
+ Enabled: true
211
+ ContentTypeCompatibility: true
212
+
173
213
  Rails/RequestReferer:
174
214
  Enabled: true
175
215
  EnforcedStyle: referer
@@ -190,6 +230,10 @@ Rails/SaveBang:
190
230
  Rails/ScopeArgs:
191
231
  Enabled: true
192
232
 
233
+ Rails/ShortI18n:
234
+ Enabled: true
235
+ EnforcedStyle: conservative
236
+
193
237
  Rails/SkipsModelValidations:
194
238
  Enabled: false
195
239
 
@@ -216,3 +260,6 @@ Rails/UnknownEnv:
216
260
 
217
261
  Rails/Validation:
218
262
  Enabled: true
263
+
264
+ Rails/WhereExists:
265
+ Enabled: false
@@ -52,6 +52,8 @@ Style/BlockDelimiters:
52
52
 
53
53
  Style/CaseEquality:
54
54
  Enabled: true
55
+ AllowOnConstant: false
56
+ AutoCorrect: true
55
57
 
56
58
  Style/CaseLikeIf:
57
59
  Enabled: true
@@ -169,6 +171,9 @@ Style/ExponentialNotation:
169
171
  Enabled: true
170
172
  EnforcedStyle: scientific
171
173
 
174
+ Style/ExplicitBlockArgument:
175
+ Enabled: true
176
+
172
177
  Style/FloatDivision:
173
178
  Enabled: false
174
179
 
@@ -193,6 +198,9 @@ Style/GlobalVars:
193
198
  Enabled: true
194
199
  AllowedVariables: []
195
200
 
201
+ Style/GlobalStdStream:
202
+ Enabled: false
203
+
196
204
  Style/GuardClause:
197
205
  Enabled: false
198
206
  MinBodyLength: 1
@@ -278,9 +286,6 @@ Style/MethodDefParentheses:
278
286
  Enabled: true
279
287
  EnforcedStyle: require_parentheses
280
288
 
281
- Style/MethodMissingSuper:
282
- Enabled: false
283
-
284
289
  Style/MinMax:
285
290
  Enabled: true
286
291
 
@@ -357,7 +362,7 @@ Style/Next:
357
362
 
358
363
  Style/NilComparison:
359
364
  Enabled: true
360
- EnforcedStyle: predicate
365
+ EnforcedStyle: comparison
361
366
 
362
367
  Style/NonNilCheck:
363
368
  Enabled: true
@@ -374,9 +379,9 @@ Style/NumericLiterals:
374
379
  Enabled: false
375
380
 
376
381
  Style/NumericPredicate:
377
- Enabled: true
378
- EnforcedStyle: predicate
379
- AutoCorrect: false
382
+ Enabled: false # strongly situative cop
383
+ EnforcedStyle: comparison
384
+ AutoCorrect: true
380
385
  IgnoredMethods: []
381
386
 
382
387
  Style/OneLineConditional:
@@ -388,6 +393,9 @@ Style/OptionHash:
388
393
  Style/OptionalArguments:
389
394
  Enabled: true
390
395
 
396
+ Style/OptionalBooleanParameter:
397
+ Enabled: false
398
+
391
399
  Style/ParallelAssignment:
392
400
  Enabled: false
393
401
 
@@ -492,6 +500,9 @@ Style/SignalException:
492
500
  Enabled: true
493
501
  EnforcedStyle: only_raise
494
502
 
503
+ Style/SingleArgumentDig:
504
+ Enabled: true
505
+
495
506
  Style/SingleLineBlockParams:
496
507
  Enabled: false
497
508
 
@@ -514,6 +525,9 @@ Style/StabbyLambdaParentheses:
514
525
  Style/StderrPuts:
515
526
  Enabled: true
516
527
 
528
+ Style/StringConcatenation:
529
+ Enabled: true
530
+
517
531
  Style/StringHashKeys:
518
532
  Enabled: false
519
533
 
@@ -160,6 +160,9 @@ RSpec/MultipleDescribes:
160
160
  RSpec/MultipleExpectations:
161
161
  Enabled: false
162
162
 
163
+ RSpec/MultipleMemoizedHelpers:
164
+ Enabled: false
165
+
163
166
  RSpec/MultipleSubjects:
164
167
  Enabled: true
165
168
 
@@ -240,6 +243,7 @@ RSpec/VariableDefinition:
240
243
  RSpec/VariableName:
241
244
  Enabled: true
242
245
  EnforcedStyle: snake_case
246
+ IgnoredPatterns: []
243
247
 
244
248
  RSpec/VerifiedDoubles:
245
249
  Enabled: false
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.88.0
4
+ version: 0.89.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-07-19 00:00:00.000000000 Z
11
+ date: 2020-08-25 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.88.0
19
+ version: 0.89.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.88.0
26
+ version: 0.89.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.6.0
47
+ version: 2.7.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.6.0
54
+ version: 2.7.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.42.0
61
+ version: 1.43.2
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.42.0
68
+ version: 1.43.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement