mad_rubocop 3.5.1 → 4.0.0.rc1
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/lib/disabled_cops.yml +169 -5
- data/lib/mad_rubocop/version.rb +1 -1
- data/mad_rubocop.gemspec +4 -2
- metadata +40 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d01ad79fe74992c261f3f51f9477ed3a8beed076a46304e0a221de077743336
|
4
|
+
data.tar.gz: d9d8a028ec2e097bb15e4d30bf4f287743bf704a26c06f6026fd2b83f48bb413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a274b01390c9521a7dfc3ef93c44f7370fcac3a58aefbd2b2e116dc9401f765761bc6b042ac834ff600213cefa60d967ae897997d262392128e9305ebb3b4dd
|
7
|
+
data.tar.gz: b32970f6a5208624e08c03cedd297edb09b0cc23303461d25b32a2ae09ec97120883204051465e2d1cd03943df06eacf77a9e650cbde2e1c7ea54c7fdcd24c15
|
data/.rubocop.yml
CHANGED
data/lib/disabled_cops.yml
CHANGED
@@ -5,6 +5,18 @@ Bundler/InsecureProtocolSource:
|
|
5
5
|
Gemspec/OrderedDependencies:
|
6
6
|
Enabled: false
|
7
7
|
|
8
|
+
Layout/BeginEndAlignment:
|
9
|
+
Enabled: false
|
10
|
+
Layout/ClosingHeredocIndentation:
|
11
|
+
Enabled: false
|
12
|
+
Layout/ClosingParenthesisIndentation:
|
13
|
+
Enabled: false
|
14
|
+
Layout/EmptyLineAfterGuardClause:
|
15
|
+
Enabled: false
|
16
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
17
|
+
Enabled: false
|
18
|
+
Layout/EmptyLinesAroundBlockBody:
|
19
|
+
Enabled: false
|
8
20
|
Layout/ExtraSpacing:
|
9
21
|
Enabled: false
|
10
22
|
Layout/FirstArrayElementLineBreak:
|
@@ -15,13 +27,37 @@ Layout/FirstMethodArgumentLineBreak:
|
|
15
27
|
Enabled: false
|
16
28
|
Layout/FirstMethodParameterLineBreak:
|
17
29
|
Enabled: false
|
18
|
-
Layout/
|
30
|
+
Layout/HashAlignment:
|
19
31
|
Enabled: false
|
20
|
-
|
32
|
+
Layout/HeredocIndentation:
|
33
|
+
Enabled: false
|
34
|
+
Layout/LeadingEmptyLines:
|
35
|
+
Enabled: false
|
36
|
+
Layout/RescueEnsureAlignment:
|
37
|
+
Enabled: false
|
38
|
+
Layout/SpaceAroundMethodCallOperator:
|
21
39
|
Enabled: false
|
22
40
|
|
41
|
+
Lint/AmbiguousBlockAssociation:
|
42
|
+
Enabled: false
|
43
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
44
|
+
Enabled: false
|
23
45
|
Lint/BooleanSymbol:
|
24
46
|
Enabled: false
|
47
|
+
Lint/ConstantDefinitionInBlock:
|
48
|
+
Enabled: false
|
49
|
+
Lint/DeprecatedOpenSSLConstant:
|
50
|
+
Enabled: false
|
51
|
+
Lint/EmptyFile:
|
52
|
+
Enabled: false
|
53
|
+
Lint/FloatComparison:
|
54
|
+
Enabled: false
|
55
|
+
Lint/MissingSuper:
|
56
|
+
Enabled: false
|
57
|
+
Lint/MixedRegexpCaptureTypes:
|
58
|
+
Enabled: false
|
59
|
+
Lint/NonDeterministicRequireOrder:
|
60
|
+
Enabled: false
|
25
61
|
Lint/RedundantWithIndex:
|
26
62
|
Enabled: false
|
27
63
|
Lint/RedundantWithObject:
|
@@ -32,7 +68,17 @@ Lint/ReturnInVoidContext:
|
|
32
68
|
Enabled: false
|
33
69
|
Lint/ScriptPermission:
|
34
70
|
Enabled: false
|
35
|
-
Lint/
|
71
|
+
Lint/RedundantCopDisableDirective:
|
72
|
+
Enabled: false
|
73
|
+
Lint/RedundantRequireStatement:
|
74
|
+
Enabled: false
|
75
|
+
Lint/RedundantSafeNavigation:
|
76
|
+
Enabled: false
|
77
|
+
Lint/SuppressedException:
|
78
|
+
Enabled: false
|
79
|
+
Lint/ToJSON:
|
80
|
+
Enabled: false
|
81
|
+
Lint/UnreachableLoop:
|
36
82
|
Enabled: false
|
37
83
|
Lint/UriEscapeUnescape:
|
38
84
|
Enabled: false
|
@@ -62,15 +108,29 @@ Metrics/PerceivedComplexity:
|
|
62
108
|
|
63
109
|
Naming/HeredocDelimiterCase:
|
64
110
|
Enabled: false
|
111
|
+
Naming/MemoizedInstanceVariableName:
|
112
|
+
Enabled: false
|
65
113
|
Naming/PredicateName:
|
66
114
|
Enabled: false
|
115
|
+
Naming/MethodParameterName:
|
116
|
+
Enabled: false
|
117
|
+
Naming/RescuedExceptionsVariableName:
|
118
|
+
Enabled: false
|
67
119
|
Naming/VariableNumber:
|
68
120
|
Enabled: false
|
69
121
|
|
70
122
|
Performance/Casecmp:
|
71
123
|
Enabled: false
|
124
|
+
Performance/Count:
|
125
|
+
Enabled: false
|
126
|
+
Performance/DeletePrefix:
|
127
|
+
Enabled: false
|
128
|
+
Performance/DeleteSuffix:
|
129
|
+
Enabled: false
|
72
130
|
Performance/Detect:
|
73
131
|
Enabled: false
|
132
|
+
Performance/InefficientHashSearch:
|
133
|
+
Enabled: false
|
74
134
|
Performance/RegexpMatch:
|
75
135
|
Enabled: false
|
76
136
|
Performance/StringReplacement:
|
@@ -82,24 +142,60 @@ Performance/UriDefaultParser:
|
|
82
142
|
|
83
143
|
Rails/ActionFilter:
|
84
144
|
Enabled: false
|
145
|
+
Rails/ActiveRecordAliases:
|
146
|
+
Enabled: false
|
147
|
+
Rails/ApplicationJob:
|
148
|
+
Enabled: false
|
149
|
+
Rails/ApplicationRecord:
|
150
|
+
Enabled: false
|
151
|
+
Rails/BelongsTo:
|
152
|
+
Enabled: false
|
85
153
|
Rails/Blank:
|
86
154
|
Enabled: false
|
155
|
+
Rails/ContentTag:
|
156
|
+
Enabled: false
|
87
157
|
Rails/Date:
|
88
158
|
Enabled: false
|
89
159
|
Rails/DynamicFindBy:
|
90
160
|
Enabled: false
|
161
|
+
Rails/EnumHash:
|
162
|
+
Enabled: false
|
91
163
|
Rails/FindBy:
|
92
164
|
Enabled: false
|
93
165
|
Rails/FilePath:
|
94
166
|
Enabled: false
|
95
167
|
Rails/HasManyOrHasOneDependent:
|
96
168
|
Enabled: false
|
169
|
+
Rails/HelperInstanceVariable:
|
170
|
+
Enabled: false
|
171
|
+
Rails/HttpPositionalArguments:
|
172
|
+
Enabled: false
|
173
|
+
Rails/HttpStatus:
|
174
|
+
Enabled: false
|
175
|
+
Rails/IndexWith:
|
176
|
+
Enabled: false
|
177
|
+
Rails/InverseOf:
|
178
|
+
Enabled: false
|
179
|
+
Rails/LexicallyScopedActionFilter:
|
180
|
+
Enabled: false
|
181
|
+
Rails/Pick:
|
182
|
+
Enabled: false
|
97
183
|
Rails/PluralizationGrammar:
|
98
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
|
99
193
|
Rails/SkipsModelValidations:
|
100
194
|
Enabled: false
|
101
195
|
Rails/TimeZone:
|
102
196
|
Enabled: false
|
197
|
+
Rails/UniqueValidationWithoutIndex:
|
198
|
+
Enabled: false
|
103
199
|
Rails/UnknownEnv:
|
104
200
|
Enabled: false
|
105
201
|
|
@@ -107,8 +203,18 @@ Rails/UnknownEnv:
|
|
107
203
|
Security/YAMLLoad:
|
108
204
|
Enabled: false
|
109
205
|
|
206
|
+
Style/AccessorGrouping:
|
207
|
+
Enabled: false
|
110
208
|
Style/AutoResourceCleanup:
|
111
209
|
Enabled: false
|
210
|
+
Style/CaseLikeIf:
|
211
|
+
Enabled: false
|
212
|
+
Style/ClassEqualityComparison:
|
213
|
+
Enabled: false
|
214
|
+
Style/CombinableLoops:
|
215
|
+
Enabled: false
|
216
|
+
Style/ConditionalAssignment:
|
217
|
+
Enabled: false
|
112
218
|
Style/CollectionMethods:
|
113
219
|
Enabled: false
|
114
220
|
Style/CommentedKeyword:
|
@@ -127,16 +233,40 @@ Style/EachWithObject:
|
|
127
233
|
Enabled: false
|
128
234
|
Style/EmptyCaseCondition:
|
129
235
|
Enabled: false
|
236
|
+
Style/EmptyLiteral:
|
237
|
+
Enabled: false
|
130
238
|
Style/Encoding:
|
131
239
|
Enabled: false
|
240
|
+
Style/ExpandPathArguments:
|
241
|
+
Enabled: false
|
242
|
+
Style/ExplicitBlockArgument:
|
243
|
+
Enabled: false
|
244
|
+
Style/FloatDivision:
|
245
|
+
Enabled: false
|
132
246
|
Style/FormatString:
|
133
247
|
Enabled: false
|
248
|
+
Style/FormatStringToken:
|
249
|
+
Enabled: false
|
134
250
|
Style/FrozenStringLiteralComment:
|
135
251
|
Enabled: false
|
252
|
+
Style/GlobalStdStream:
|
253
|
+
Enabled: false
|
136
254
|
Style/GuardClause:
|
137
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
|
264
|
+
Style/IfUnlessModifier:
|
265
|
+
Enabled: false
|
138
266
|
Style/InlineComment:
|
139
267
|
Enabled: false
|
268
|
+
Style/KeywordParametersOrder:
|
269
|
+
Enabled: false
|
140
270
|
Style/Lambda:
|
141
271
|
Enabled: false
|
142
272
|
Style/MethodCalledOnDoEndBlock:
|
@@ -147,20 +277,36 @@ Style/MissingElse:
|
|
147
277
|
Enabled: false
|
148
278
|
Style/MixinUsage:
|
149
279
|
Enabled: false
|
280
|
+
Style/MultilineWhenThen:
|
281
|
+
Enabled: false
|
150
282
|
Style/MutableConstant:
|
151
283
|
Enabled: false
|
152
284
|
Style/Next:
|
153
285
|
Enabled: false
|
154
286
|
Style/NumericPredicate:
|
155
287
|
Enabled: false
|
288
|
+
Style/OptionalBooleanParameter:
|
289
|
+
Enabled: false
|
156
290
|
Style/OptionHash:
|
157
291
|
Enabled: false
|
292
|
+
Style/RedundantAssignment:
|
293
|
+
Enabled: false
|
158
294
|
Style/RedundantConditional:
|
159
295
|
Enabled: false
|
296
|
+
Style/RedundantFileExtensionInRequire:
|
297
|
+
Enabled: false
|
160
298
|
Style/RedundantParentheses:
|
161
299
|
Enabled: false
|
300
|
+
Style/RedundantRegexpCharacterClass:
|
301
|
+
Enabled: false
|
302
|
+
Style/RedundantRegexpEscape:
|
303
|
+
Enabled: false
|
304
|
+
Style/RedundantReturn:
|
305
|
+
Enabled: false
|
162
306
|
Style/RedundantSelf:
|
163
307
|
Enabled: false
|
308
|
+
Style/RedundantSelfAssignment:
|
309
|
+
Enabled: false
|
164
310
|
Style/RegexpLiteral:
|
165
311
|
Enabled: false
|
166
312
|
Style/RescueStandardError:
|
@@ -171,10 +317,18 @@ Style/Send:
|
|
171
317
|
Enabled: false
|
172
318
|
Style/SignalException:
|
173
319
|
Enabled: false
|
320
|
+
Style/SingleArgumentDig:
|
321
|
+
Enabled: false
|
174
322
|
Style/SingleLineBlockParams:
|
175
323
|
Enabled: false
|
324
|
+
Style/SlicingWithRange:
|
325
|
+
Enabled: false
|
326
|
+
Style/SoleNestedConditional:
|
327
|
+
Enabled: false
|
176
328
|
Style/StderrPuts:
|
177
329
|
Enabled: false
|
330
|
+
Style/StringConcatenation:
|
331
|
+
Enabled: false
|
178
332
|
Style/StringMethods:
|
179
333
|
Enabled: false
|
180
334
|
Style/StructInheritance:
|
@@ -183,11 +337,21 @@ Style/SymbolArray:
|
|
183
337
|
Enabled: false
|
184
338
|
Style/TrailingCommaInArguments:
|
185
339
|
Enabled: false
|
186
|
-
Style/
|
340
|
+
Style/TrailingCommaInArrayLiteral:
|
341
|
+
Enabled: false
|
342
|
+
Style/TrailingCommaInHashLiteral:
|
187
343
|
Enabled: false
|
188
344
|
Style/TrailingUnderscoreVariable:
|
189
345
|
Enabled: false
|
190
|
-
Style/
|
346
|
+
Style/RedundantBegin:
|
347
|
+
Enabled: false
|
348
|
+
Style/RedundantCondition:
|
349
|
+
Enabled: false
|
350
|
+
Style/RedundantFetchBlock:
|
351
|
+
Enabled: false
|
352
|
+
Style/RedundantInterpolation:
|
353
|
+
Enabled: false
|
354
|
+
Style/UnpackFirst:
|
191
355
|
Enabled: false
|
192
356
|
Style/WordArray:
|
193
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.
|
23
|
+
spec.add_dependency "rubocop", "~> 1.0.0"
|
24
|
+
spec.add_dependency "rubocop-performance", "~> 1.10.0"
|
25
|
+
spec.add_dependency "rubocop-rails", "~> 2.9.0"
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
25
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Toolson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.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.
|
26
|
+
version: 1.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.10.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.10.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.9.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.9.0
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: bundler
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
61
|
+
version: '2.0'
|
34
62
|
type: :development
|
35
63
|
prerelease: false
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
37
65
|
requirements:
|
38
66
|
- - "~>"
|
39
67
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
68
|
+
version: '2.0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rake
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,7 +105,7 @@ homepage: https://github.com/mxenabled/mad_rubocop
|
|
77
105
|
licenses:
|
78
106
|
- MIT
|
79
107
|
metadata: {}
|
80
|
-
post_install_message:
|
108
|
+
post_install_message:
|
81
109
|
rdoc_options: []
|
82
110
|
require_paths:
|
83
111
|
- lib
|
@@ -88,13 +116,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
116
|
version: '0'
|
89
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
118
|
requirements:
|
91
|
-
- - "
|
119
|
+
- - ">"
|
92
120
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
121
|
+
version: 1.3.1
|
94
122
|
requirements: []
|
95
|
-
|
96
|
-
|
97
|
-
signing_key:
|
123
|
+
rubygems_version: 3.1.2
|
124
|
+
signing_key:
|
98
125
|
specification_version: 4
|
99
126
|
summary: Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop
|
100
127
|
test_files: []
|