armitage-rubocop 1.10.0 → 1.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +29 -31
- data/armitage-rubocop.gemspec +6 -6
- data/lib/common/bundler.yml +7 -0
- data/lib/common/gemspec.yml +3 -0
- data/lib/common/layout.yml +9 -1
- data/lib/common/lint.yml +25 -2
- data/lib/common/naming.yml +3 -0
- data/lib/common/performance.yml +15 -0
- data/lib/common/rails.yml +35 -0
- data/lib/common/security.yml +3 -0
- data/lib/common/style.yml +46 -2
- data/lib/rspec/rails.yml +3 -0
- data/lib/rspec/rspec.yml +9 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55bed071bbf70dccdff35074b5a97ab60a3cf71d639def4d9db4f8c13130f508
|
4
|
+
data.tar.gz: 6ca102e44ec17a96852e1ec8d65a325d9f5a502c0b0c1239706e246e17f4f5fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bb7405b53235b06fedc9685094b9468b45eb7d2b7d9b08e42ca81e7f846e5fd349ee6e648189abdb4a35df08b8accfff1d8b6253efe09b51518d68d382adda8
|
7
|
+
data.tar.gz: 7a00d9eb867fa8cb747997d38c547bed288a694735cc34d7779af1476c13baf992856d41cb98b8a809608a1bf866e1abaa9c40d040bf6734b3b0f4f3eb56ed50
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
armitage-rubocop (1.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-performance (= 1.
|
7
|
-
rubocop-rails (= 2.
|
8
|
-
rubocop-rake (= 0.
|
9
|
-
rubocop-rspec (= 2.
|
4
|
+
armitage-rubocop (1.23.0)
|
5
|
+
rubocop (= 1.23.0)
|
6
|
+
rubocop-performance (= 1.12.0)
|
7
|
+
rubocop-rails (= 2.12.4)
|
8
|
+
rubocop-rake (= 0.6.0)
|
9
|
+
rubocop-rspec (= 2.6.0)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (6.1.
|
14
|
+
activesupport (6.1.4.1)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
@@ -19,54 +19,52 @@ GEM
|
|
19
19
|
zeitwerk (~> 2.3)
|
20
20
|
ast (2.4.2)
|
21
21
|
coderay (1.1.3)
|
22
|
-
concurrent-ruby (1.1.
|
23
|
-
i18n (1.8.
|
22
|
+
concurrent-ruby (1.1.9)
|
23
|
+
i18n (1.8.11)
|
24
24
|
concurrent-ruby (~> 1.0)
|
25
25
|
method_source (1.0.0)
|
26
26
|
minitest (5.14.4)
|
27
|
-
parallel (1.
|
28
|
-
parser (3.0.
|
27
|
+
parallel (1.21.0)
|
28
|
+
parser (3.0.3.1)
|
29
29
|
ast (~> 2.4.1)
|
30
|
-
pry (0.14.
|
30
|
+
pry (0.14.1)
|
31
31
|
coderay (~> 1.1)
|
32
32
|
method_source (~> 1.0)
|
33
33
|
rack (2.2.3)
|
34
34
|
rainbow (3.0.0)
|
35
|
-
rake (13.0.
|
35
|
+
rake (13.0.6)
|
36
36
|
regexp_parser (2.1.1)
|
37
|
-
rexml (3.2.
|
38
|
-
rubocop (1.
|
37
|
+
rexml (3.2.5)
|
38
|
+
rubocop (1.23.0)
|
39
39
|
parallel (~> 1.10)
|
40
40
|
parser (>= 3.0.0.0)
|
41
41
|
rainbow (>= 2.2.2, < 4.0)
|
42
42
|
regexp_parser (>= 1.8, < 3.0)
|
43
43
|
rexml
|
44
|
-
rubocop-ast (>= 1.
|
44
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
45
45
|
ruby-progressbar (~> 1.7)
|
46
46
|
unicode-display_width (>= 1.4.0, < 3.0)
|
47
|
-
rubocop-ast (1.
|
48
|
-
parser (>=
|
49
|
-
rubocop-performance (1.
|
50
|
-
rubocop (>=
|
47
|
+
rubocop-ast (1.13.0)
|
48
|
+
parser (>= 3.0.1.1)
|
49
|
+
rubocop-performance (1.12.0)
|
50
|
+
rubocop (>= 1.7.0, < 2.0)
|
51
51
|
rubocop-ast (>= 0.4.0)
|
52
|
-
rubocop-rails (2.
|
52
|
+
rubocop-rails (2.12.4)
|
53
53
|
activesupport (>= 4.2.0)
|
54
54
|
rack (>= 1.1)
|
55
|
-
rubocop (>=
|
56
|
-
rubocop-rake (0.
|
57
|
-
rubocop
|
58
|
-
rubocop-rspec (2.2.0)
|
55
|
+
rubocop (>= 1.7.0, < 2.0)
|
56
|
+
rubocop-rake (0.6.0)
|
59
57
|
rubocop (~> 1.0)
|
60
|
-
|
58
|
+
rubocop-rspec (2.6.0)
|
59
|
+
rubocop (~> 1.19)
|
61
60
|
ruby-progressbar (1.11.0)
|
62
61
|
tzinfo (2.0.4)
|
63
62
|
concurrent-ruby (~> 1.0)
|
64
|
-
unicode-display_width (2.
|
65
|
-
zeitwerk (2.
|
63
|
+
unicode-display_width (2.1.0)
|
64
|
+
zeitwerk (2.5.1)
|
66
65
|
|
67
66
|
PLATFORMS
|
68
|
-
|
69
|
-
x86_64-darwin-20
|
67
|
+
x86_64-darwin-21
|
70
68
|
|
71
69
|
DEPENDENCIES
|
72
70
|
armitage-rubocop!
|
@@ -75,4 +73,4 @@ DEPENDENCIES
|
|
75
73
|
rake (~> 13.0)
|
76
74
|
|
77
75
|
BUNDLED WITH
|
78
|
-
2.2.
|
76
|
+
2.2.31
|
data/armitage-rubocop.gemspec
CHANGED
@@ -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 = '1.
|
7
|
+
spec.version = '1.23.0'
|
8
8
|
|
9
9
|
spec.name = 'armitage-rubocop'
|
10
10
|
spec.license = 'MIT'
|
@@ -22,11 +22,11 @@ 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', '= 1.
|
26
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
27
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
28
|
-
spec.add_dependency 'rubocop-rspec', '= 2.
|
29
|
-
spec.add_dependency 'rubocop-rake', '= 0.
|
25
|
+
spec.add_dependency 'rubocop', '= 1.23.0'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.12.0'
|
27
|
+
spec.add_dependency 'rubocop-rails', '= 2.12.4'
|
28
|
+
spec.add_dependency 'rubocop-rspec', '= 2.6.0'
|
29
|
+
spec.add_dependency 'rubocop-rake', '= 0.6.0'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 2.2'
|
32
32
|
spec.add_development_dependency 'rake', '~> 13.0'
|
data/lib/common/bundler.yml
CHANGED
@@ -1,11 +1,18 @@
|
|
1
1
|
Bundler/GemComment:
|
2
2
|
Enabled: false
|
3
3
|
|
4
|
+
Bundler/GemVersion:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Bundler/GemFilename:
|
8
|
+
Enabled: false
|
9
|
+
|
4
10
|
Bundler/DuplicatedGem:
|
5
11
|
Enabled: true
|
6
12
|
|
7
13
|
Bundler/InsecureProtocolSource:
|
8
14
|
Enabled: true
|
15
|
+
AllowHttpProtocol: false
|
9
16
|
|
10
17
|
Bundler/OrderedGems:
|
11
18
|
Enabled: false
|
data/lib/common/gemspec.yml
CHANGED
data/lib/common/layout.yml
CHANGED
@@ -6,6 +6,7 @@ Layout/AccessModifierIndentation:
|
|
6
6
|
Layout/ArgumentAlignment:
|
7
7
|
Enabled: true
|
8
8
|
IndentationWidth: ~
|
9
|
+
EnforcedStyle: with_first_argument
|
9
10
|
|
10
11
|
Layout/ArrayAlignment:
|
11
12
|
Enabled: true
|
@@ -29,6 +30,13 @@ Layout/BeginEndAlignment:
|
|
29
30
|
EnforcedStyleAlignWith: start_of_line
|
30
31
|
Severity: warning
|
31
32
|
|
33
|
+
Lint/RequireRelativeSelfPath:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Layout/RedundantLineBreak:
|
37
|
+
InspectBlocks: false
|
38
|
+
Enabled: true
|
39
|
+
|
32
40
|
Layout/BlockAlignment:
|
33
41
|
Enabled: true
|
34
42
|
EnforcedStyleAlignWith: either
|
@@ -110,7 +118,7 @@ Layout/EmptyLinesAroundAttributeAccessor:
|
|
110
118
|
Layout/EmptyLineBetweenDefs:
|
111
119
|
Enabled: true
|
112
120
|
NumberOfEmptyLines: 1
|
113
|
-
AllowAdjacentOneLineDefs:
|
121
|
+
AllowAdjacentOneLineDefs: true
|
114
122
|
EmptyLineBetweenMethodDefs: true
|
115
123
|
EmptyLineBetweenClassDefs: true
|
116
124
|
EmptyLineBetweenModuleDefs: true
|
data/lib/common/lint.yml
CHANGED
@@ -2,6 +2,7 @@ Lint/AmbiguousAssignment:
|
|
2
2
|
Enabled: false
|
3
3
|
|
4
4
|
Lint/AmbiguousBlockAssociation:
|
5
|
+
IgnoredMethods: []
|
5
6
|
Enabled: true
|
6
7
|
|
7
8
|
Lint/AmbiguousOperator:
|
@@ -10,6 +11,13 @@ Lint/AmbiguousOperator:
|
|
10
11
|
Lint/AmbiguousRegexpLiteral:
|
11
12
|
Enabled: false
|
12
13
|
|
14
|
+
Lint/AmbiguousRange:
|
15
|
+
Enabled: true
|
16
|
+
RequireParenthesesForMethodChains: false
|
17
|
+
|
18
|
+
Lint/AmbiguousOperatorPrecedence:
|
19
|
+
Enabled: false
|
20
|
+
|
13
21
|
Lint/AssignmentInCondition:
|
14
22
|
Enabled: false
|
15
23
|
AllowSafeAssignment: true
|
@@ -88,11 +96,16 @@ Lint/ElseLayout:
|
|
88
96
|
Lint/EmptyBlock:
|
89
97
|
Enabled: true
|
90
98
|
AllowComments: true
|
99
|
+
AllowEmptyLambdas: true
|
91
100
|
|
92
101
|
Lint/EmptyClass:
|
93
102
|
Enabled: false
|
94
103
|
AllowComments: true
|
95
104
|
|
105
|
+
Lint/EmptyInPattern:
|
106
|
+
Enabled: false
|
107
|
+
AllowComments: true
|
108
|
+
|
96
109
|
Lint/EmptyConditionalBody:
|
97
110
|
Enabled: true
|
98
111
|
AllowComments: true
|
@@ -137,11 +150,16 @@ Lint/FormatParameterMismatch:
|
|
137
150
|
Lint/SelfAssignment:
|
138
151
|
Enabled: true
|
139
152
|
|
153
|
+
Layout/SingleLineBlockChain:
|
154
|
+
Enabled: false
|
155
|
+
|
140
156
|
Lint/StructNewOverride:
|
141
157
|
Enabled: true
|
142
158
|
|
143
159
|
Lint/SuppressedException:
|
144
|
-
|
160
|
+
AllowComments: true
|
161
|
+
AllowNil: true
|
162
|
+
Enabled: true # NOTE: experimental!
|
145
163
|
|
146
164
|
Lint/HashCompareByIdentity:
|
147
165
|
Enabled: false
|
@@ -155,6 +173,9 @@ Lint/IdentityComparison:
|
|
155
173
|
Lint/ImplicitStringConcatenation:
|
156
174
|
Enabled: true
|
157
175
|
|
176
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
177
|
+
Enabled: true
|
178
|
+
|
158
179
|
Lint/IneffectiveAccessModifier:
|
159
180
|
Enabled: true
|
160
181
|
|
@@ -194,7 +215,6 @@ Lint/MissingSuper:
|
|
194
215
|
|
195
216
|
Lint/MultipleComparison:
|
196
217
|
Enabled: true
|
197
|
-
AllowMethodComparison: true
|
198
218
|
|
199
219
|
Lint/NestedMethodDefinition:
|
200
220
|
Enabled: true
|
@@ -236,6 +256,9 @@ Lint/PercentStringArray:
|
|
236
256
|
Lint/PercentSymbolArray:
|
237
257
|
Enabled: true
|
238
258
|
|
259
|
+
Lint/UselessRuby2Keywords:
|
260
|
+
Enabled: true
|
261
|
+
|
239
262
|
Lint/RaiseException:
|
240
263
|
Enabled: true
|
241
264
|
AutoCorrect: false
|
data/lib/common/naming.yml
CHANGED
data/lib/common/performance.yml
CHANGED
@@ -28,6 +28,9 @@ Performance/Casecmp:
|
|
28
28
|
Performance/ChainArrayAllocation:
|
29
29
|
Enabled: false
|
30
30
|
|
31
|
+
Performance/ConcurrentMonotonicTime:
|
32
|
+
Enabled: true
|
33
|
+
|
31
34
|
Performance/CompareWithBlock:
|
32
35
|
Enabled: true
|
33
36
|
|
@@ -73,6 +76,9 @@ Performance/InefficientHashSearch:
|
|
73
76
|
Performance/IoReadlines:
|
74
77
|
Enabled: true
|
75
78
|
|
79
|
+
Performance/MapCompact:
|
80
|
+
Enabled: true
|
81
|
+
|
76
82
|
Performance/MethodObjectAsBlock:
|
77
83
|
Enabled: true
|
78
84
|
|
@@ -98,6 +104,12 @@ Performance/RedundantMerge:
|
|
98
104
|
Enabled: true
|
99
105
|
MaxKeyValuePairs: 1
|
100
106
|
|
107
|
+
Performance/RedundantSplitRegexpArgument:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
Performance/RedundantEqualityComparisonBlock:
|
111
|
+
Enabled: false
|
112
|
+
|
101
113
|
Performance/RegexpMatch:
|
102
114
|
Enabled: true
|
103
115
|
|
@@ -107,6 +119,9 @@ Performance/ReverseEach:
|
|
107
119
|
Performance/ReverseFirst:
|
108
120
|
Enabled: true
|
109
121
|
|
122
|
+
Performance/SelectMap:
|
123
|
+
Enabled: true
|
124
|
+
|
110
125
|
Performance/Size:
|
111
126
|
Enabled: true
|
112
127
|
|
data/lib/common/rails.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Rails/AddColumnIndex:
|
2
|
+
Enabled: false # NOTE: cop works incorrectly with `Sequel` (sequel supports :index in add_column)
|
3
|
+
|
1
4
|
Rails/ActionFilter:
|
2
5
|
Enabled: true
|
3
6
|
EnforcedStyle: action
|
@@ -15,6 +18,15 @@ Rails/ActiveRecordOverride:
|
|
15
18
|
Include:
|
16
19
|
- app/models/**/*.rb
|
17
20
|
|
21
|
+
Rails/EagerEvaluationLogMessage:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Rails/ExpandedDateRange:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Rails/UnusedIgnoredColumns:
|
28
|
+
Enabled: false
|
29
|
+
|
18
30
|
Rails/ActiveSupportAliases:
|
19
31
|
Enabled: true
|
20
32
|
|
@@ -39,6 +51,13 @@ Rails/AttributeDefaultBlockValue:
|
|
39
51
|
Rails/ArelStar:
|
40
52
|
Enabled: true
|
41
53
|
|
54
|
+
Rails/RequireDependency:
|
55
|
+
Enabled: true
|
56
|
+
# NOTE: `require_dependency` is obsolete when you use `Zeitwerk`
|
57
|
+
|
58
|
+
Rails/ReversibleMigrationMethodDefinition:
|
59
|
+
Enabled: true
|
60
|
+
|
42
61
|
Rails/RakeEnvironment:
|
43
62
|
Enabled: true
|
44
63
|
AutoCorrect: true
|
@@ -65,6 +84,7 @@ Rails/ContentTag:
|
|
65
84
|
Rails/Date:
|
66
85
|
Enabled: true
|
67
86
|
EnforcedStyle: flexible
|
87
|
+
AllowToTime: true
|
68
88
|
|
69
89
|
Rails/DefaultScope:
|
70
90
|
Enabled: false
|
@@ -89,6 +109,11 @@ Rails/EnumHash:
|
|
89
109
|
Include:
|
90
110
|
- app/models/**/*.rb
|
91
111
|
|
112
|
+
Rails/EnvironmentVariableAccess:
|
113
|
+
Enabled: false # TODO: think about it later
|
114
|
+
AllowReads: true
|
115
|
+
AllowWrites: false
|
116
|
+
|
92
117
|
Rails/EnumUniqueness:
|
93
118
|
Enabled: true
|
94
119
|
|
@@ -104,6 +129,7 @@ Rails/FilePath:
|
|
104
129
|
|
105
130
|
Rails/FindBy:
|
106
131
|
Enabled: true
|
132
|
+
IgnoreWhereFirst: true
|
107
133
|
|
108
134
|
Rails/FindById:
|
109
135
|
Enabled: true
|
@@ -123,6 +149,9 @@ Rails/HttpPositionalArguments:
|
|
123
149
|
Rails/HttpStatus:
|
124
150
|
Enabled: false
|
125
151
|
|
152
|
+
Rails/I18nLocaleAssignment:
|
153
|
+
Enabled: false
|
154
|
+
|
126
155
|
Rails/IgnoredSkipActionFilterOption:
|
127
156
|
Enabled: true
|
128
157
|
|
@@ -253,10 +282,16 @@ Rails/SkipsModelValidations:
|
|
253
282
|
Rails/SquishedSQLHeredocs:
|
254
283
|
Enabled: true
|
255
284
|
|
285
|
+
Rails/RedundantTravelBack:
|
286
|
+
Enabled: false # NOTE: can affect the readability
|
287
|
+
|
256
288
|
Rails/TimeZone:
|
257
289
|
Enabled: true
|
258
290
|
EnforcedStyle: flexible
|
259
291
|
|
292
|
+
Rails/TimeZoneAssignment:
|
293
|
+
Enabled: false
|
294
|
+
|
260
295
|
Rails/UniqBeforePluck:
|
261
296
|
Enabled: true
|
262
297
|
EnforcedStyle: conservative
|
data/lib/common/security.yml
CHANGED
data/lib/common/style.yml
CHANGED
@@ -245,6 +245,7 @@ Style/HashAsLastArrayItem:
|
|
245
245
|
AutoCorrect: true
|
246
246
|
|
247
247
|
Style/HashConversion:
|
248
|
+
AllowSplatArgument: true
|
248
249
|
Enabled: false
|
249
250
|
|
250
251
|
Style/HashExcept:
|
@@ -320,8 +321,13 @@ Style/LineEndConcatenation:
|
|
320
321
|
Enabled: true
|
321
322
|
|
322
323
|
Style/MethodCallWithArgsParentheses:
|
323
|
-
Enabled: false
|
324
|
-
|
324
|
+
Enabled: false # NOTE: experimental!
|
325
|
+
EnforcedStyle: require_parentheses
|
326
|
+
IgnoreMacros: true
|
327
|
+
AllowParenthesesInMultilineCall: true
|
328
|
+
AllowParenthesesInChaining: true
|
329
|
+
AllowParenthesesInCamelCaseMethod: true
|
330
|
+
AllowParenthesesInStringInterpolation: true
|
325
331
|
|
326
332
|
Style/MethodCallWithoutArgsParentheses:
|
327
333
|
Enabled: true
|
@@ -361,6 +367,9 @@ Style/MultilineIfModifier:
|
|
361
367
|
Style/MultilineIfThen:
|
362
368
|
Enabled: true
|
363
369
|
|
370
|
+
Style/MultilineInPatternThen:
|
371
|
+
Enabled: true
|
372
|
+
|
364
373
|
Style/MultilineMemoization:
|
365
374
|
Enabled: true
|
366
375
|
EnforcedStyle: keyword
|
@@ -425,6 +434,13 @@ Style/NonNilCheck:
|
|
425
434
|
Style/Not:
|
426
435
|
Enabled: true
|
427
436
|
|
437
|
+
Style/NumberedParameters:
|
438
|
+
Enabled: false
|
439
|
+
|
440
|
+
Style/NumberedParametersLimit:
|
441
|
+
Max: 1_000_000
|
442
|
+
Enabled: true
|
443
|
+
|
428
444
|
Style/NumericLiteralPrefix:
|
429
445
|
Enabled: true
|
430
446
|
EnforcedOctalStyle: zero_with_o
|
@@ -441,6 +457,9 @@ Style/NumericPredicate:
|
|
441
457
|
Style/OneLineConditional:
|
442
458
|
Enabled: true
|
443
459
|
|
460
|
+
Style/OpenStructUse:
|
461
|
+
Enabled: true
|
462
|
+
|
444
463
|
Style/OptionHash:
|
445
464
|
Enabled: false
|
446
465
|
|
@@ -542,6 +561,9 @@ Style/RescueStandardError:
|
|
542
561
|
Style/ReturnNil:
|
543
562
|
Enabled: false
|
544
563
|
|
564
|
+
Style/RedundantSelfAssignmentBranch:
|
565
|
+
Enabled: false # NOTE: can decrease the code readability
|
566
|
+
|
545
567
|
Style/SafeNavigation:
|
546
568
|
Enabled: true
|
547
569
|
ConvertCodeThatCanStartToReturnNil: false
|
@@ -549,6 +571,9 @@ Style/SafeNavigation:
|
|
549
571
|
Style/Sample:
|
550
572
|
Enabled: true
|
551
573
|
|
574
|
+
Style/SelectByRegexp:
|
575
|
+
Enabled: false
|
576
|
+
|
552
577
|
Style/SelfAssignment:
|
553
578
|
Enabled: true
|
554
579
|
|
@@ -593,6 +618,10 @@ Style/StderrPuts:
|
|
593
618
|
|
594
619
|
Style/StringConcatenation:
|
595
620
|
Enabled: true
|
621
|
+
Mode: aggressive
|
622
|
+
|
623
|
+
Style/StringChars:
|
624
|
+
Enabled: true
|
596
625
|
|
597
626
|
Style/StringHashKeys:
|
598
627
|
Enabled: false
|
@@ -624,6 +653,10 @@ Style/SymbolLiteral:
|
|
624
653
|
Enabled: true
|
625
654
|
|
626
655
|
Style/SymbolProc:
|
656
|
+
AllowMethodsWithArguments: true
|
657
|
+
IgnoredMethods:
|
658
|
+
- respond_to
|
659
|
+
- define_method
|
627
660
|
Enabled: true
|
628
661
|
|
629
662
|
Style/SwapValues:
|
@@ -634,6 +667,9 @@ Style/TernaryParentheses:
|
|
634
667
|
EnforcedStyle: require_parentheses_when_complex
|
635
668
|
AllowSafeAssignment: true
|
636
669
|
|
670
|
+
Style/TopLevelMethodDefinition:
|
671
|
+
Enabled: true
|
672
|
+
|
637
673
|
Style/TrailingBodyOnClass:
|
638
674
|
Enabled: true
|
639
675
|
|
@@ -672,6 +708,10 @@ Style/TrivialAccessors:
|
|
672
708
|
Style/UnlessElse:
|
673
709
|
Enabled: false
|
674
710
|
|
711
|
+
Style/UnlessLogicalOperators:
|
712
|
+
EnforcedStyle: forbid_mixed_logical_operators
|
713
|
+
Enabled: false
|
714
|
+
|
675
715
|
Style/RedundantCapitalW:
|
676
716
|
Enabled: true
|
677
717
|
|
@@ -718,3 +758,7 @@ Style/YodaCondition:
|
|
718
758
|
|
719
759
|
Style/ZeroLengthPredicate:
|
720
760
|
Enabled: true
|
761
|
+
|
762
|
+
Style/QuotedSymbols:
|
763
|
+
Enabled: true
|
764
|
+
EnforcedStyle: same_as_string_literals
|
data/lib/rspec/rails.yml
CHANGED
data/lib/rspec/rspec.yml
CHANGED
@@ -80,6 +80,9 @@ RSpec/ExampleWording:
|
|
80
80
|
RSpec/ExpectActual:
|
81
81
|
Enabled: true
|
82
82
|
|
83
|
+
RSpec/ExcessiveDocstringSpacing:
|
84
|
+
Enabled: true
|
85
|
+
|
83
86
|
RSpec/ExpectChange:
|
84
87
|
Enabled: true
|
85
88
|
EnforcedStyle: block
|
@@ -103,6 +106,9 @@ RSpec/HookArgument:
|
|
103
106
|
RSpec/HooksBeforeExamples:
|
104
107
|
Enabled: true
|
105
108
|
|
109
|
+
RSpec/IdenticalEqualityAssertion:
|
110
|
+
Enabled: true
|
111
|
+
|
106
112
|
RSpec/ImplicitBlockExpectation:
|
107
113
|
Enabled: false
|
108
114
|
|
@@ -234,6 +240,9 @@ RSpec/SingleArgumentMessageChain:
|
|
234
240
|
RSpec/SubjectStub:
|
235
241
|
Enabled: true
|
236
242
|
|
243
|
+
RSpec/SubjectDeclaration:
|
244
|
+
Enabled: true
|
245
|
+
|
237
246
|
RSpec/StubbedMock:
|
238
247
|
Enabled: true
|
239
248
|
|
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.
|
4
|
+
version: 1.23.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: 2021-
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.23.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.
|
26
|
+
version: 1.23.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.
|
33
|
+
version: 1.12.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.
|
40
|
+
version: 1.12.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.
|
47
|
+
version: 2.12.4
|
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.
|
54
|
+
version: 2.12.4
|
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.
|
61
|
+
version: 2.6.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.
|
68
|
+
version: 2.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.6.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.6.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.2.
|
183
|
+
rubygems_version: 3.2.22
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: A set of rubocop settings
|