mad_rubocop 3.5.3 → 4.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -1
- data/.ruby-version +1 -0
- data/lib/disabled_cops.yml +138 -10
- data/lib/mad_rubocop/version.rb +1 -1
- data/mad_rubocop.gemspec +5 -3
- metadata +45 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6889096f17cd20391d462f7e94e5d4281195e3700f3230eeb67cc48b1558a7
|
4
|
+
data.tar.gz: 34113afa76d25c8540c7fe48001673b5bb0387d9cf6c984f85df72f93d8657ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a47eebfb97d25befe17cc36129c5cf957be4ebbc3d3f4e686a3618785384776419a41173b5c3993a68fad85309408fe4119910fdc08577a497c454a5bf0256f
|
7
|
+
data.tar.gz: 87a12e9a8afba457f50e0010e99915f857c61f71b29c102dff1e5670fa4a999530224304b93f79a60fc22d51762810c42e930094965efdb4a8e64a2cbde75b5d
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.1
|
data/lib/disabled_cops.yml
CHANGED
@@ -5,7 +5,7 @@ Bundler/InsecureProtocolSource:
|
|
5
5
|
Gemspec/OrderedDependencies:
|
6
6
|
Enabled: false
|
7
7
|
|
8
|
-
Layout/
|
8
|
+
Layout/BeginEndAlignment:
|
9
9
|
Enabled: false
|
10
10
|
Layout/ClosingHeredocIndentation:
|
11
11
|
Enabled: false
|
@@ -13,6 +13,10 @@ Layout/ClosingParenthesisIndentation:
|
|
13
13
|
Enabled: false
|
14
14
|
Layout/EmptyLineAfterGuardClause:
|
15
15
|
Enabled: false
|
16
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
17
|
+
Enabled: false
|
18
|
+
Layout/EmptyLinesAroundBlockBody:
|
19
|
+
Enabled: false
|
16
20
|
Layout/ExtraSpacing:
|
17
21
|
Enabled: false
|
18
22
|
Layout/FirstArrayElementLineBreak:
|
@@ -23,15 +27,39 @@ Layout/FirstMethodArgumentLineBreak:
|
|
23
27
|
Enabled: false
|
24
28
|
Layout/FirstMethodParameterLineBreak:
|
25
29
|
Enabled: false
|
26
|
-
Layout/
|
30
|
+
Layout/HashAlignment:
|
31
|
+
Enabled: false
|
32
|
+
Layout/HeredocIndentation:
|
33
|
+
Enabled: false
|
34
|
+
Layout/LeadingEmptyLines:
|
35
|
+
Enabled: false
|
36
|
+
Layout/LineLength:
|
27
37
|
Enabled: false
|
28
|
-
Layout/
|
38
|
+
Layout/RescueEnsureAlignment:
|
39
|
+
Enabled: false
|
40
|
+
Layout/SpaceAroundMethodCallOperator:
|
29
41
|
Enabled: false
|
30
42
|
|
31
43
|
Lint/AmbiguousBlockAssociation:
|
32
44
|
Enabled: false
|
45
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
46
|
+
Enabled: false
|
33
47
|
Lint/BooleanSymbol:
|
34
48
|
Enabled: false
|
49
|
+
Lint/ConstantDefinitionInBlock:
|
50
|
+
Enabled: false
|
51
|
+
Lint/DeprecatedOpenSSLConstant:
|
52
|
+
Enabled: false
|
53
|
+
Lint/EmptyFile:
|
54
|
+
Enabled: false
|
55
|
+
Lint/FloatComparison:
|
56
|
+
Enabled: false
|
57
|
+
Lint/MissingSuper:
|
58
|
+
Enabled: false
|
59
|
+
Lint/MixedRegexpCaptureTypes:
|
60
|
+
Enabled: false
|
61
|
+
Lint/NonDeterministicRequireOrder:
|
62
|
+
Enabled: false
|
35
63
|
Lint/RedundantWithIndex:
|
36
64
|
Enabled: false
|
37
65
|
Lint/RedundantWithObject:
|
@@ -42,9 +70,17 @@ Lint/ReturnInVoidContext:
|
|
42
70
|
Enabled: false
|
43
71
|
Lint/ScriptPermission:
|
44
72
|
Enabled: false
|
45
|
-
Lint/
|
73
|
+
Lint/RedundantCopDisableDirective:
|
74
|
+
Enabled: false
|
75
|
+
Lint/RedundantRequireStatement:
|
76
|
+
Enabled: false
|
77
|
+
Lint/RedundantSafeNavigation:
|
78
|
+
Enabled: false
|
79
|
+
Lint/SuppressedException:
|
46
80
|
Enabled: false
|
47
|
-
Lint/
|
81
|
+
Lint/ToJSON:
|
82
|
+
Enabled: false
|
83
|
+
Lint/UnreachableLoop:
|
48
84
|
Enabled: false
|
49
85
|
Lint/UriEscapeUnescape:
|
50
86
|
Enabled: false
|
@@ -61,8 +97,6 @@ Metrics/ClassLength:
|
|
61
97
|
Enabled: false
|
62
98
|
Metrics/CyclomaticComplexity:
|
63
99
|
Enabled: false
|
64
|
-
Metrics/LineLength:
|
65
|
-
Enabled: false
|
66
100
|
Metrics/MethodLength:
|
67
101
|
Enabled: false
|
68
102
|
Metrics/ModuleLength:
|
@@ -78,13 +112,21 @@ Naming/MemoizedInstanceVariableName:
|
|
78
112
|
Enabled: false
|
79
113
|
Naming/PredicateName:
|
80
114
|
Enabled: false
|
81
|
-
Naming/
|
115
|
+
Naming/MethodParameterName:
|
116
|
+
Enabled: false
|
117
|
+
Naming/RescuedExceptionsVariableName:
|
82
118
|
Enabled: false
|
83
119
|
Naming/VariableNumber:
|
84
120
|
Enabled: false
|
85
121
|
|
86
122
|
Performance/Casecmp:
|
87
123
|
Enabled: false
|
124
|
+
Performance/Count:
|
125
|
+
Enabled: false
|
126
|
+
Performance/DeletePrefix:
|
127
|
+
Enabled: false
|
128
|
+
Performance/DeleteSuffix:
|
129
|
+
Enabled: false
|
88
130
|
Performance/Detect:
|
89
131
|
Enabled: false
|
90
132
|
Performance/InefficientHashSearch:
|
@@ -102,28 +144,58 @@ Rails/ActionFilter:
|
|
102
144
|
Enabled: false
|
103
145
|
Rails/ActiveRecordAliases:
|
104
146
|
Enabled: false
|
147
|
+
Rails/ApplicationJob:
|
148
|
+
Enabled: false
|
149
|
+
Rails/ApplicationRecord:
|
150
|
+
Enabled: false
|
151
|
+
Rails/BelongsTo:
|
152
|
+
Enabled: false
|
105
153
|
Rails/Blank:
|
106
154
|
Enabled: false
|
155
|
+
Rails/ContentTag:
|
156
|
+
Enabled: false
|
107
157
|
Rails/Date:
|
108
158
|
Enabled: false
|
109
159
|
Rails/DynamicFindBy:
|
110
160
|
Enabled: false
|
161
|
+
Rails/EnumHash:
|
162
|
+
Enabled: false
|
111
163
|
Rails/FindBy:
|
112
164
|
Enabled: false
|
113
165
|
Rails/FilePath:
|
114
166
|
Enabled: false
|
115
167
|
Rails/HasManyOrHasOneDependent:
|
116
168
|
Enabled: false
|
169
|
+
Rails/HelperInstanceVariable:
|
170
|
+
Enabled: false
|
171
|
+
Rails/HttpPositionalArguments:
|
172
|
+
Enabled: false
|
117
173
|
Rails/HttpStatus:
|
118
174
|
Enabled: false
|
175
|
+
Rails/IndexWith:
|
176
|
+
Enabled: false
|
177
|
+
Rails/InverseOf:
|
178
|
+
Enabled: false
|
119
179
|
Rails/LexicallyScopedActionFilter:
|
120
180
|
Enabled: false
|
181
|
+
Rails/Pick:
|
182
|
+
Enabled: false
|
121
183
|
Rails/PluralizationGrammar:
|
122
184
|
Enabled: false
|
185
|
+
Rails/RakeEnvironment:
|
186
|
+
Enabled: false
|
187
|
+
Rails/RedundantForeignKey:
|
188
|
+
Enabled: false
|
189
|
+
Rails/RedundantReceiverInWithOptions:
|
190
|
+
Enabled: false
|
191
|
+
Rails/ReversibleMigration:
|
192
|
+
Enabled: false
|
123
193
|
Rails/SkipsModelValidations:
|
124
194
|
Enabled: false
|
125
195
|
Rails/TimeZone:
|
126
196
|
Enabled: false
|
197
|
+
Rails/UniqueValidationWithoutIndex:
|
198
|
+
Enabled: false
|
127
199
|
Rails/UnknownEnv:
|
128
200
|
Enabled: false
|
129
201
|
|
@@ -131,8 +203,16 @@ Rails/UnknownEnv:
|
|
131
203
|
Security/YAMLLoad:
|
132
204
|
Enabled: false
|
133
205
|
|
206
|
+
Style/AccessorGrouping:
|
207
|
+
Enabled: false
|
134
208
|
Style/AutoResourceCleanup:
|
135
209
|
Enabled: false
|
210
|
+
Style/CaseLikeIf:
|
211
|
+
Enabled: false
|
212
|
+
Style/ClassEqualityComparison:
|
213
|
+
Enabled: false
|
214
|
+
Style/CombinableLoops:
|
215
|
+
Enabled: false
|
136
216
|
Style/ConditionalAssignment:
|
137
217
|
Enabled: false
|
138
218
|
Style/CollectionMethods:
|
@@ -153,20 +233,40 @@ Style/EachWithObject:
|
|
153
233
|
Enabled: false
|
154
234
|
Style/EmptyCaseCondition:
|
155
235
|
Enabled: false
|
236
|
+
Style/EmptyLiteral:
|
237
|
+
Enabled: false
|
156
238
|
Style/Encoding:
|
157
239
|
Enabled: false
|
158
240
|
Style/ExpandPathArguments:
|
159
241
|
Enabled: false
|
242
|
+
Style/ExplicitBlockArgument:
|
243
|
+
Enabled: false
|
244
|
+
Style/FloatDivision:
|
245
|
+
Enabled: false
|
160
246
|
Style/FormatString:
|
161
247
|
Enabled: false
|
248
|
+
Style/FormatStringToken:
|
249
|
+
Enabled: false
|
162
250
|
Style/FrozenStringLiteralComment:
|
163
251
|
Enabled: false
|
252
|
+
Style/GlobalStdStream:
|
253
|
+
Enabled: false
|
164
254
|
Style/GuardClause:
|
165
255
|
Enabled: false
|
256
|
+
Style/HashAsLastArrayItem:
|
257
|
+
Enabled: false
|
258
|
+
Style/HashEachMethods:
|
259
|
+
Enabled: false
|
260
|
+
Style/HashLikeCase:
|
261
|
+
Enabled: false
|
262
|
+
Style/HashTransformValues:
|
263
|
+
Enabled: false
|
166
264
|
Style/IfUnlessModifier:
|
167
265
|
Enabled: false
|
168
266
|
Style/InlineComment:
|
169
267
|
Enabled: false
|
268
|
+
Style/KeywordParametersOrder:
|
269
|
+
Enabled: false
|
170
270
|
Style/Lambda:
|
171
271
|
Enabled: false
|
172
272
|
Style/MethodCalledOnDoEndBlock:
|
@@ -177,22 +277,36 @@ Style/MissingElse:
|
|
177
277
|
Enabled: false
|
178
278
|
Style/MixinUsage:
|
179
279
|
Enabled: false
|
280
|
+
Style/MultilineWhenThen:
|
281
|
+
Enabled: false
|
180
282
|
Style/MutableConstant:
|
181
283
|
Enabled: false
|
182
284
|
Style/Next:
|
183
285
|
Enabled: false
|
184
286
|
Style/NumericPredicate:
|
185
287
|
Enabled: false
|
288
|
+
Style/OptionalBooleanParameter:
|
289
|
+
Enabled: false
|
186
290
|
Style/OptionHash:
|
187
291
|
Enabled: false
|
292
|
+
Style/RedundantAssignment:
|
293
|
+
Enabled: false
|
188
294
|
Style/RedundantConditional:
|
189
295
|
Enabled: false
|
296
|
+
Style/RedundantFileExtensionInRequire:
|
297
|
+
Enabled: false
|
190
298
|
Style/RedundantParentheses:
|
191
299
|
Enabled: false
|
300
|
+
Style/RedundantRegexpCharacterClass:
|
301
|
+
Enabled: false
|
302
|
+
Style/RedundantRegexpEscape:
|
303
|
+
Enabled: false
|
192
304
|
Style/RedundantReturn:
|
193
305
|
Enabled: false
|
194
306
|
Style/RedundantSelf:
|
195
307
|
Enabled: false
|
308
|
+
Style/RedundantSelfAssignment:
|
309
|
+
Enabled: false
|
196
310
|
Style/RegexpLiteral:
|
197
311
|
Enabled: false
|
198
312
|
Style/RescueStandardError:
|
@@ -203,10 +317,18 @@ Style/Send:
|
|
203
317
|
Enabled: false
|
204
318
|
Style/SignalException:
|
205
319
|
Enabled: false
|
320
|
+
Style/SingleArgumentDig:
|
321
|
+
Enabled: false
|
206
322
|
Style/SingleLineBlockParams:
|
207
323
|
Enabled: false
|
324
|
+
Style/SlicingWithRange:
|
325
|
+
Enabled: false
|
326
|
+
Style/SoleNestedConditional:
|
327
|
+
Enabled: false
|
208
328
|
Style/StderrPuts:
|
209
329
|
Enabled: false
|
330
|
+
Style/StringConcatenation:
|
331
|
+
Enabled: false
|
210
332
|
Style/StringMethods:
|
211
333
|
Enabled: false
|
212
334
|
Style/StructInheritance:
|
@@ -221,9 +343,15 @@ Style/TrailingCommaInHashLiteral:
|
|
221
343
|
Enabled: false
|
222
344
|
Style/TrailingUnderscoreVariable:
|
223
345
|
Enabled: false
|
224
|
-
Style/
|
346
|
+
Style/RedundantBegin:
|
347
|
+
Enabled: false
|
348
|
+
Style/RedundantCondition:
|
349
|
+
Enabled: false
|
350
|
+
Style/RedundantFetchBlock:
|
351
|
+
Enabled: false
|
352
|
+
Style/RedundantInterpolation:
|
225
353
|
Enabled: false
|
226
|
-
Style/
|
354
|
+
Style/UnpackFirst:
|
227
355
|
Enabled: false
|
228
356
|
Style/WordArray:
|
229
357
|
Enabled: false
|
data/lib/mad_rubocop/version.rb
CHANGED
data/mad_rubocop.gemspec
CHANGED
@@ -20,7 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency "rubocop", "~> 0
|
24
|
-
spec.
|
25
|
-
spec.
|
23
|
+
spec.add_dependency "rubocop", "~> 1.25.0"
|
24
|
+
spec.add_dependency "rubocop-performance", "~> 1.13.0"
|
25
|
+
spec.add_dependency "rubocop-rails", "~> 2.13.0"
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
+
spec.add_development_dependency "rake"
|
26
28
|
end
|
metadata
CHANGED
@@ -1,57 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mad_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Toolson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
|
-
version:
|
19
|
-
name: rubocop
|
20
|
-
prerelease: false
|
19
|
+
version: 1.25.0
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.25.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
-
|
33
|
+
version: 1.13.0
|
34
|
+
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
|
47
|
+
version: 2.13.0
|
48
|
+
type: :runtime
|
48
49
|
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.13.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
49
62
|
type: :development
|
63
|
+
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
55
83
|
description: Wrapper for MX specific RuboCop settings for managing custom settings
|
56
84
|
across many projects.
|
57
85
|
email:
|
@@ -63,6 +91,7 @@ extra_rdoc_files: []
|
|
63
91
|
files:
|
64
92
|
- ".gitignore"
|
65
93
|
- ".rubocop.yml"
|
94
|
+
- ".ruby-version"
|
66
95
|
- Gemfile
|
67
96
|
- LICENSE.txt
|
68
97
|
- README.md
|
@@ -88,12 +117,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
117
|
version: '0'
|
89
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
119
|
requirements:
|
91
|
-
- - "
|
120
|
+
- - ">"
|
92
121
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
122
|
+
version: 1.3.1
|
94
123
|
requirements: []
|
95
|
-
|
96
|
-
rubygems_version: 2.6.11
|
124
|
+
rubygems_version: 3.1.6
|
97
125
|
signing_key:
|
98
126
|
specification_version: 4
|
99
127
|
summary: Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop
|