armitage-rubocop 0.89.1 → 0.91.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: 723ccba176c674a8509ad111fa3c094874c8b934665716cd0580c7d687548055
4
+ data.tar.gz: ce5930d7bc8bee0567d54a1a04663ba07f67efd9b35ce0620bd7a73ca79d7ccc
5
5
  SHA512:
6
- metadata.gz: 4bff4699b1f8920f5d72db839673d0b5e167d5607f929a782e6d9945182fe18f3b557bb6beb4136afff858bb10d181bab9006be715fe1c21e6bd7f38fbebafc3
7
- data.tar.gz: 4772b4ee3cf65a8f3abe93bd33dda81bb00f4ffddefc8f4bc281f0826c5d194d4132646b865a721792f16783dd08ef09e39dd728721ce867bd9ba68048b0b8d3
6
+ metadata.gz: 2c20f74575db7185331158a3b796744131879b00ffc73ee4599a7f9768cc9fc4d82ca27122b39f8b54779ee8ecbb873f03f9dc4a96b618e67d1de119b82dc363
7
+ data.tar.gz: 61a3b2973c1518fb8a38e07814cc7bbbff4ec942e6fccda5cf262ae1694c4b2c1cd08addc9aa38f272dabe4a7bd65ea47cf222ee2899c53116625a7d0149da47
@@ -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 = '0.91.0'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,9 +22,9 @@ 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'
25
+ spec.add_dependency 'rubocop', '= 0.91.0'
26
+ spec.add_dependency 'rubocop-performance', '= 1.8.1'
27
+ spec.add_dependency 'rubocop-rails', '= 2.8.1'
28
28
  spec.add_dependency 'rubocop-rspec', '= 1.43.2'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
@@ -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,9 @@ Lint/DuplicateHashKey:
53
56
  Lint/DuplicateElsifCondition:
54
57
  Enabled: true
55
58
 
59
+ Lint/DuplicateRequire:
60
+ Enabled: true
61
+
56
62
  Lint/EachWithObjectArgument:
57
63
  Enabled: true
58
64
 
@@ -73,6 +79,10 @@ Lint/EmptyEnsure:
73
79
  Lint/EmptyExpression:
74
80
  Enabled: true
75
81
 
82
+ Lint/EmptyFile:
83
+ Enabled: true
84
+ AllowComments: true
85
+
76
86
  Lint/EmptyInterpolation:
77
87
  Enabled: true
78
88
 
@@ -111,6 +121,9 @@ Lint/SuppressedException:
111
121
  Lint/HeredocMethodCallPosition:
112
122
  Enabled: true
113
123
 
124
+ Lint/IdentityComparison:
125
+ Enabled: false
126
+
114
127
  Lint/ImplicitStringConcatenation:
115
128
  Enabled: true
116
129
 
@@ -251,6 +264,9 @@ Lint/ToJSON:
251
264
  Lint/TopLevelReturnWithArgument:
252
265
  Enabled: true
253
266
 
267
+ Lint/TrailingCommaInAttributeDeclaration:
268
+ Enabled: true
269
+
254
270
  Lint/UnderscorePrefixedVariableName:
255
271
  Enabled: false
256
272
 
@@ -307,9 +323,16 @@ Lint/UselessAssignment:
307
323
  Lint/UselessElseWithoutRescue:
308
324
  Enabled: true
309
325
 
326
+ Lint/UselessMethodDefinition:
327
+ Enabled: true
328
+ AllowComments: true
329
+
310
330
  Lint/UselessSetterCall:
311
331
  Enabled: true
312
332
 
333
+ Lint/UselessTimes:
334
+ Enabled: true
335
+
313
336
  Lint/Void:
314
337
  Enabled: true
315
338
  CheckForMethodsWithNoSideEffects: 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
@@ -72,6 +72,10 @@ Style/ClassCheck:
72
72
  Style/ClassMethods:
73
73
  Enabled: true
74
74
 
75
+ Style/ClassMethodsDefinitions:
76
+ Enabled: true
77
+ EnforcedStyle: self_class
78
+
75
79
  Style/ClassVars:
76
80
  Enabled: true
77
81
 
@@ -84,6 +88,9 @@ Style/ColonMethodCall:
84
88
  Style/ColonMethodDefinition:
85
89
  Enabled: true
86
90
 
91
+ Style/CombinableLoops:
92
+ Enabled: false
93
+
87
94
  Style/CommandLiteral:
88
95
  Enabled: false
89
96
 
@@ -262,6 +269,9 @@ Style/InverseMethods:
262
269
  Style/IpAddresses:
263
270
  Enabled: false
264
271
 
272
+ Style/KeywordParametersOrder:
273
+ Enabled: false
274
+
265
275
  Style/Lambda:
266
276
  Enabled: true
267
277
  EnforcedStyle: line_count_dependent
@@ -464,6 +474,9 @@ Style/RedundantReturn:
464
474
  Style/RedundantSelf:
465
475
  Enabled: true
466
476
 
477
+ Style/RedundantSelfAssignment:
478
+ Enabled: false
479
+
467
480
  Style/RedundantSortBy:
468
481
  Enabled: true
469
482
 
@@ -618,6 +631,10 @@ Style/RedundantPercentQ:
618
631
  Style/RedundantSort:
619
632
  Enabled: true
620
633
 
634
+ Style/SoleNestedConditional:
635
+ Enabled: true
636
+ AllowModifier: true
637
+
621
638
  Style/UnpackFirst:
622
639
  Enabled: true
623
640
 
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: 0.91.0
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-08-25 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.89.1
19
+ version: 0.91.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: 0.91.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