armitage-rubocop 1.7.0.1 → 1.23.0.1
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 +38 -40
- data/armitage-rubocop.gemspec +9 -9
- data/lib/common/bundler.yml +7 -0
- data/lib/common/gemspec.yml +8 -0
- data/lib/common/layout.yml +9 -1
- data/lib/common/lint.yml +46 -2
- data/lib/common/naming.yml +4 -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 +58 -2
- data/lib/rspec/rails.yml +3 -0
- data/lib/rspec/rspec.yml +9 -0
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96e705fd52bc3f648c1f2d683b0dbb01bd2b34051e44d582f71e188102a7021
|
4
|
+
data.tar.gz: 9cec62a001403537f39ce80c6bc8bbee399c5a7ad388841ae05d726d3b6be94f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89ceeffd263db2383a930bc5d3682cb5fbc9aabb7d1c08fe667e5bd2ff9e3772acc13bb9b8191467971457c4a950a41f6bf587afae1982c26dadbdc7c330aa14
|
7
|
+
data.tar.gz: d6edb6d59f3223f06b9cacf5065c903a805376272f8a906ed660c13523f3fe31f74d163dc93fbbf718f03b75c20842d9b084db8c03a31f4a791daf3b03b3f16e
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,78 +1,76 @@
|
|
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)
|
18
18
|
tzinfo (~> 2.0)
|
19
19
|
zeitwerk (~> 2.3)
|
20
|
-
ast (2.4.
|
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
|
-
minitest (5.14.
|
27
|
-
parallel (1.
|
28
|
-
parser (3.0.
|
26
|
+
minitest (5.14.4)
|
27
|
+
parallel (1.21.0)
|
28
|
+
parser (3.0.3.1)
|
29
29
|
ast (~> 2.4.1)
|
30
|
-
pry (0.
|
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.
|
36
|
-
regexp_parser (2.
|
37
|
-
rexml (3.2.
|
38
|
-
rubocop (1.
|
35
|
+
rake (13.0.6)
|
36
|
+
regexp_parser (2.1.1)
|
37
|
+
rexml (3.2.5)
|
38
|
+
rubocop (1.23.0)
|
39
39
|
parallel (~> 1.10)
|
40
|
-
parser (>=
|
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
|
-
unicode-display_width (>= 1.4.0, <
|
47
|
-
rubocop-ast (1.
|
48
|
-
parser (>=
|
49
|
-
rubocop-performance (1.
|
50
|
-
rubocop (>=
|
46
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
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.1.0)
|
55
|
+
rubocop (>= 1.7.0, < 2.0)
|
56
|
+
rubocop-rake (0.6.0)
|
59
57
|
rubocop (~> 1.0)
|
60
|
-
|
61
|
-
|
58
|
+
rubocop-rspec (2.6.0)
|
59
|
+
rubocop (~> 1.19)
|
60
|
+
ruby-progressbar (1.11.0)
|
62
61
|
tzinfo (2.0.4)
|
63
62
|
concurrent-ruby (~> 1.0)
|
64
|
-
unicode-display_width (1.
|
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!
|
73
|
-
bundler
|
74
|
-
pry
|
75
|
-
rake
|
71
|
+
bundler (~> 2.2)
|
72
|
+
pry (~> 0.14)
|
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.1'
|
8
8
|
|
9
9
|
spec.name = 'armitage-rubocop'
|
10
10
|
spec.license = 'MIT'
|
@@ -22,13 +22,13 @@ 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
|
-
spec.add_development_dependency 'bundler'
|
32
|
-
spec.add_development_dependency 'rake'
|
33
|
-
spec.add_development_dependency 'pry'
|
31
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
32
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
33
|
+
spec.add_development_dependency 'pry', '~> 0.14'
|
34
34
|
end
|
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
@@ -1,3 +1,8 @@
|
|
1
|
+
Gemspec/DateAssignment:
|
2
|
+
Enabled: true
|
3
|
+
Include:
|
4
|
+
- '**/*.gemspec'
|
5
|
+
|
1
6
|
Gemspec/DuplicatedAssignment:
|
2
7
|
Enabled: true
|
3
8
|
|
@@ -10,3 +15,6 @@ Gemspec/RequiredRubyVersion:
|
|
10
15
|
|
11
16
|
Gemspec/RubyVersionGlobalsUsage:
|
12
17
|
Enabled: true
|
18
|
+
|
19
|
+
Gemspec/RequireMFA:
|
20
|
+
Enabled: false # NOTE: it is strongly relates to the chosen business practics
|
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: false
|
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
|
@@ -39,6 +47,9 @@ Lint/ConstantResolution:
|
|
39
47
|
Lint/Debugger:
|
40
48
|
Enabled: true
|
41
49
|
|
50
|
+
Lint/DeprecatedConstants:
|
51
|
+
Enabled: true
|
52
|
+
|
42
53
|
Lint/DeprecatedClassMethods:
|
43
54
|
Enabled: true
|
44
55
|
|
@@ -85,11 +96,16 @@ Lint/ElseLayout:
|
|
85
96
|
Lint/EmptyBlock:
|
86
97
|
Enabled: true
|
87
98
|
AllowComments: true
|
99
|
+
AllowEmptyLambdas: true
|
88
100
|
|
89
101
|
Lint/EmptyClass:
|
90
102
|
Enabled: false
|
91
103
|
AllowComments: true
|
92
104
|
|
105
|
+
Lint/EmptyInPattern:
|
106
|
+
Enabled: false
|
107
|
+
AllowComments: true
|
108
|
+
|
93
109
|
Lint/EmptyConditionalBody:
|
94
110
|
Enabled: true
|
95
111
|
AllowComments: true
|
@@ -134,11 +150,16 @@ Lint/FormatParameterMismatch:
|
|
134
150
|
Lint/SelfAssignment:
|
135
151
|
Enabled: true
|
136
152
|
|
153
|
+
Layout/SingleLineBlockChain:
|
154
|
+
Enabled: false
|
155
|
+
|
137
156
|
Lint/StructNewOverride:
|
138
157
|
Enabled: true
|
139
158
|
|
140
159
|
Lint/SuppressedException:
|
141
|
-
|
160
|
+
AllowComments: true
|
161
|
+
AllowNil: true
|
162
|
+
Enabled: true # NOTE: experimental!
|
142
163
|
|
143
164
|
Lint/HashCompareByIdentity:
|
144
165
|
Enabled: false
|
@@ -152,6 +173,9 @@ Lint/IdentityComparison:
|
|
152
173
|
Lint/ImplicitStringConcatenation:
|
153
174
|
Enabled: true
|
154
175
|
|
176
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
177
|
+
Enabled: true
|
178
|
+
|
155
179
|
Lint/IneffectiveAccessModifier:
|
156
180
|
Enabled: true
|
157
181
|
|
@@ -163,12 +187,18 @@ Lint/InterpolationCheck:
|
|
163
187
|
Enabled: true
|
164
188
|
AutoCorrect: true
|
165
189
|
|
190
|
+
Lint/LambdaWithoutLiteralBlock:
|
191
|
+
Enabled: true
|
192
|
+
|
166
193
|
Lint/LiteralAsCondition:
|
167
194
|
Enabled: true
|
168
195
|
|
169
196
|
Lint/LiteralInInterpolation:
|
170
197
|
Enabled: true
|
171
198
|
|
199
|
+
Lint/SymbolConversion:
|
200
|
+
Enabled: true
|
201
|
+
|
172
202
|
Lint/Loop:
|
173
203
|
Enabled: true
|
174
204
|
AutoCorrect: true
|
@@ -185,7 +215,6 @@ Lint/MissingSuper:
|
|
185
215
|
|
186
216
|
Lint/MultipleComparison:
|
187
217
|
Enabled: true
|
188
|
-
AllowMethodComparison: true
|
189
218
|
|
190
219
|
Lint/NestedMethodDefinition:
|
191
220
|
Enabled: true
|
@@ -205,6 +234,12 @@ Lint/NonLocalExitFromIterator:
|
|
205
234
|
Lint/NumberConversion:
|
206
235
|
Enabled: false
|
207
236
|
|
237
|
+
Lint/NumberedParameterAssignment:
|
238
|
+
Enabled: true
|
239
|
+
|
240
|
+
Lint/OrAssignmentToConstant:
|
241
|
+
Enabled: true
|
242
|
+
|
208
243
|
Lint/OrderedMagicComments:
|
209
244
|
Enabled: true
|
210
245
|
|
@@ -221,6 +256,9 @@ Lint/PercentStringArray:
|
|
221
256
|
Lint/PercentSymbolArray:
|
222
257
|
Enabled: true
|
223
258
|
|
259
|
+
Lint/UselessRuby2Keywords:
|
260
|
+
Enabled: true
|
261
|
+
|
224
262
|
Lint/RaiseException:
|
225
263
|
Enabled: true
|
226
264
|
AutoCorrect: false
|
@@ -230,6 +268,9 @@ Lint/RaiseException:
|
|
230
268
|
Lint/RandOne:
|
231
269
|
Enabled: true
|
232
270
|
|
271
|
+
Lint/RedundantDirGlobSort:
|
272
|
+
Enabled: true
|
273
|
+
|
233
274
|
Lint/RedundantSafeNavigation:
|
234
275
|
Enabled: true
|
235
276
|
AllowedMethods:
|
@@ -306,6 +347,9 @@ Lint/TopLevelReturnWithArgument:
|
|
306
347
|
Lint/TrailingCommaInAttributeDeclaration:
|
307
348
|
Enabled: true
|
308
349
|
|
350
|
+
Lint/TripleQuotes:
|
351
|
+
Enabled: false
|
352
|
+
|
309
353
|
Lint/UnexpectedBlockArity:
|
310
354
|
Enabled: false
|
311
355
|
|
data/lib/common/naming.yml
CHANGED
@@ -30,6 +30,9 @@ Naming/HeredocDelimiterCase:
|
|
30
30
|
Naming/HeredocDelimiterNaming:
|
31
31
|
Enabled: false
|
32
32
|
|
33
|
+
Naming/InclusiveLanguage:
|
34
|
+
Enabled: false
|
35
|
+
|
33
36
|
Naming/MemoizedInstanceVariableName:
|
34
37
|
Enabled: false
|
35
38
|
|
@@ -71,6 +74,7 @@ Naming/MethodParameterName:
|
|
71
74
|
Naming/VariableName:
|
72
75
|
Enabled: true
|
73
76
|
EnforcedStyle: snake_case
|
77
|
+
AllowedIdentifiers: []
|
74
78
|
|
75
79
|
Naming/VariableNumber:
|
76
80
|
Enabled: true
|
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
@@ -178,6 +178,10 @@ Style/EmptyMethod:
|
|
178
178
|
Enabled: true
|
179
179
|
EnforcedStyle: compact
|
180
180
|
|
181
|
+
Style/EndlessMethod:
|
182
|
+
Enabled: true
|
183
|
+
EnforcedStyle: allow_single_line
|
184
|
+
|
181
185
|
Style/Encoding:
|
182
186
|
Enabled: false
|
183
187
|
|
@@ -187,6 +191,7 @@ Style/EndBlock:
|
|
187
191
|
|
188
192
|
Style/EvalWithLocation:
|
189
193
|
Enabled: true
|
194
|
+
AutoCorrect: true
|
190
195
|
|
191
196
|
Style/EvenOdd:
|
192
197
|
Enabled: true
|
@@ -217,6 +222,7 @@ Style/FormatStringToken:
|
|
217
222
|
Enabled: true
|
218
223
|
MaxUnannotatedPlaceholdersAllowed: 1
|
219
224
|
EnforcedStyle: annotated
|
225
|
+
IgnoredMethods: []
|
220
226
|
|
221
227
|
Style/FrozenStringLiteralComment:
|
222
228
|
Enabled: true
|
@@ -238,6 +244,10 @@ Style/HashAsLastArrayItem:
|
|
238
244
|
EnforcedStyle: braces
|
239
245
|
AutoCorrect: true
|
240
246
|
|
247
|
+
Style/HashConversion:
|
248
|
+
AllowSplatArgument: true
|
249
|
+
Enabled: false
|
250
|
+
|
241
251
|
Style/HashExcept:
|
242
252
|
Enabled: true
|
243
253
|
|
@@ -263,6 +273,9 @@ Style/HashTransformValues:
|
|
263
273
|
Style/IdenticalConditionalBranches:
|
264
274
|
Enabled: true
|
265
275
|
|
276
|
+
Style/IfWithBooleanLiteralBranches:
|
277
|
+
Enabled: true
|
278
|
+
|
266
279
|
Style/IfInsideElse:
|
267
280
|
Enabled: true
|
268
281
|
AllowIfModifier: true
|
@@ -308,8 +321,13 @@ Style/LineEndConcatenation:
|
|
308
321
|
Enabled: true
|
309
322
|
|
310
323
|
Style/MethodCallWithArgsParentheses:
|
311
|
-
Enabled: false
|
312
|
-
|
324
|
+
Enabled: false # NOTE: experimental!
|
325
|
+
EnforcedStyle: require_parentheses
|
326
|
+
IgnoreMacros: true
|
327
|
+
AllowParenthesesInMultilineCall: true
|
328
|
+
AllowParenthesesInChaining: true
|
329
|
+
AllowParenthesesInCamelCaseMethod: true
|
330
|
+
AllowParenthesesInStringInterpolation: true
|
313
331
|
|
314
332
|
Style/MethodCallWithoutArgsParentheses:
|
315
333
|
Enabled: true
|
@@ -349,6 +367,9 @@ Style/MultilineIfModifier:
|
|
349
367
|
Style/MultilineIfThen:
|
350
368
|
Enabled: true
|
351
369
|
|
370
|
+
Style/MultilineInPatternThen:
|
371
|
+
Enabled: true
|
372
|
+
|
352
373
|
Style/MultilineMemoization:
|
353
374
|
Enabled: true
|
354
375
|
EnforcedStyle: keyword
|
@@ -413,6 +434,13 @@ Style/NonNilCheck:
|
|
413
434
|
Style/Not:
|
414
435
|
Enabled: true
|
415
436
|
|
437
|
+
Style/NumberedParameters:
|
438
|
+
Enabled: false
|
439
|
+
|
440
|
+
Style/NumberedParametersLimit:
|
441
|
+
Max: 1_000_000
|
442
|
+
Enabled: true
|
443
|
+
|
416
444
|
Style/NumericLiteralPrefix:
|
417
445
|
Enabled: true
|
418
446
|
EnforcedOctalStyle: zero_with_o
|
@@ -429,6 +457,9 @@ Style/NumericPredicate:
|
|
429
457
|
Style/OneLineConditional:
|
430
458
|
Enabled: true
|
431
459
|
|
460
|
+
Style/OpenStructUse:
|
461
|
+
Enabled: true
|
462
|
+
|
432
463
|
Style/OptionHash:
|
433
464
|
Enabled: false
|
434
465
|
|
@@ -530,6 +561,9 @@ Style/RescueStandardError:
|
|
530
561
|
Style/ReturnNil:
|
531
562
|
Enabled: false
|
532
563
|
|
564
|
+
Style/RedundantSelfAssignmentBranch:
|
565
|
+
Enabled: false # NOTE: can decrease the code readability
|
566
|
+
|
533
567
|
Style/SafeNavigation:
|
534
568
|
Enabled: true
|
535
569
|
ConvertCodeThatCanStartToReturnNil: false
|
@@ -537,6 +571,9 @@ Style/SafeNavigation:
|
|
537
571
|
Style/Sample:
|
538
572
|
Enabled: true
|
539
573
|
|
574
|
+
Style/SelectByRegexp:
|
575
|
+
Enabled: false
|
576
|
+
|
540
577
|
Style/SelfAssignment:
|
541
578
|
Enabled: true
|
542
579
|
|
@@ -581,6 +618,10 @@ Style/StderrPuts:
|
|
581
618
|
|
582
619
|
Style/StringConcatenation:
|
583
620
|
Enabled: true
|
621
|
+
Mode: aggressive
|
622
|
+
|
623
|
+
Style/StringChars:
|
624
|
+
Enabled: true
|
584
625
|
|
585
626
|
Style/StringHashKeys:
|
586
627
|
Enabled: false
|
@@ -612,6 +653,10 @@ Style/SymbolLiteral:
|
|
612
653
|
Enabled: true
|
613
654
|
|
614
655
|
Style/SymbolProc:
|
656
|
+
AllowMethodsWithArguments: true
|
657
|
+
IgnoredMethods:
|
658
|
+
- respond_to
|
659
|
+
- define_method
|
615
660
|
Enabled: true
|
616
661
|
|
617
662
|
Style/SwapValues:
|
@@ -622,6 +667,9 @@ Style/TernaryParentheses:
|
|
622
667
|
EnforcedStyle: require_parentheses_when_complex
|
623
668
|
AllowSafeAssignment: true
|
624
669
|
|
670
|
+
Style/TopLevelMethodDefinition:
|
671
|
+
Enabled: true
|
672
|
+
|
625
673
|
Style/TrailingBodyOnClass:
|
626
674
|
Enabled: true
|
627
675
|
|
@@ -660,6 +708,10 @@ Style/TrivialAccessors:
|
|
660
708
|
Style/UnlessElse:
|
661
709
|
Enabled: false
|
662
710
|
|
711
|
+
Style/UnlessLogicalOperators:
|
712
|
+
EnforcedStyle: forbid_mixed_logical_operators
|
713
|
+
Enabled: false
|
714
|
+
|
663
715
|
Style/RedundantCapitalW:
|
664
716
|
Enabled: true
|
665
717
|
|
@@ -706,3 +758,7 @@ Style/YodaCondition:
|
|
706
758
|
|
707
759
|
Style/ZeroLengthPredicate:
|
708
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.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:
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,112 +16,112 @@ 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
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.2'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pry
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.14'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '0.14'
|
125
125
|
description: 'A set of rubocop settings used in my own projects.Support for: vanilla
|
126
126
|
ruby, rspec, rails.'
|
127
127
|
email:
|
@@ -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
|