mad_rubocop 3.64.0 → 4.0.0.rc1

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: 8a14d009e76b59c91181a4c30b710cd2caf4a9bdd30207ea9c2d7a9c44bbb91e
4
- data.tar.gz: f9ce794b6e416960a41ad20d98bb00d0d379a2c34e63b948abfc82439f9ce2b4
3
+ metadata.gz: 7d01ad79fe74992c261f3f51f9477ed3a8beed076a46304e0a221de077743336
4
+ data.tar.gz: d9d8a028ec2e097bb15e4d30bf4f287743bf704a26c06f6026fd2b83f48bb413
5
5
  SHA512:
6
- metadata.gz: b99f8b0385b9d79d0e7843010c8d4949b6720237b6a4d87fc048a6626cc6c3e95f700ccf1165a8e4146641840f6ea42d3cbc4b1ed12145f751511ff1f6e2689b
7
- data.tar.gz: 50ea1a0158cf5c96ce1def28980a182b013176df36a2f039677a8ddac5d33821bc95d75eaad79293ee94f940b675fa47eba17265f6978486cf72198cb60c7957
6
+ metadata.gz: 1a274b01390c9521a7dfc3ef93c44f7370fcac3a58aefbd2b2e116dc9401f765761bc6b042ac834ff600213cefa60d967ae897997d262392128e9305ebb3b4dd
7
+ data.tar.gz: b32970f6a5208624e08c03cedd297edb09b0cc23303461d25b32a2ae09ec97120883204051465e2d1cd03943df06eacf77a9e650cbde2e1c7ea54c7fdcd24c15
data/.rubocop.yml CHANGED
@@ -1,9 +1,13 @@
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-performance
4
+
1
5
  inherit_from:
2
6
  - lib/modified_cops.yml
3
7
  - lib/disabled_cops.yml
4
8
 
5
9
  AllCops:
6
10
  DisplayCopNames: true
7
- TargetRailsVersion: 4.0
11
+ NewCops: disable
8
12
  Rails:
9
13
  Enabled: true
@@ -5,7 +5,7 @@ Bundler/InsecureProtocolSource:
5
5
  Gemspec/OrderedDependencies:
6
6
  Enabled: false
7
7
 
8
- Layout/AlignHash:
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,37 @@ Layout/FirstMethodArgumentLineBreak:
23
27
  Enabled: false
24
28
  Layout/FirstMethodParameterLineBreak:
25
29
  Enabled: false
26
- Layout/IndentHeredoc:
30
+ Layout/HashAlignment:
31
+ Enabled: false
32
+ Layout/HeredocIndentation:
33
+ Enabled: false
34
+ Layout/LeadingEmptyLines:
27
35
  Enabled: false
28
- Layout/LeadingBlankLines:
36
+ Layout/RescueEnsureAlignment:
37
+ Enabled: false
38
+ Layout/SpaceAroundMethodCallOperator:
29
39
  Enabled: false
30
40
 
31
41
  Lint/AmbiguousBlockAssociation:
32
42
  Enabled: false
43
+ Lint/BinaryOperatorWithIdenticalOperands:
44
+ Enabled: false
33
45
  Lint/BooleanSymbol:
34
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
35
61
  Lint/RedundantWithIndex:
36
62
  Enabled: false
37
63
  Lint/RedundantWithObject:
@@ -42,9 +68,17 @@ Lint/ReturnInVoidContext:
42
68
  Enabled: false
43
69
  Lint/ScriptPermission:
44
70
  Enabled: false
45
- Lint/UnneededCopDisableDirective:
71
+ Lint/RedundantCopDisableDirective:
72
+ Enabled: false
73
+ Lint/RedundantRequireStatement:
74
+ Enabled: false
75
+ Lint/RedundantSafeNavigation:
76
+ Enabled: false
77
+ Lint/SuppressedException:
46
78
  Enabled: false
47
- Lint/UnneededRequireStatement:
79
+ Lint/ToJSON:
80
+ Enabled: false
81
+ Lint/UnreachableLoop:
48
82
  Enabled: false
49
83
  Lint/UriEscapeUnescape:
50
84
  Enabled: false
@@ -78,13 +112,21 @@ Naming/MemoizedInstanceVariableName:
78
112
  Enabled: false
79
113
  Naming/PredicateName:
80
114
  Enabled: false
81
- Naming/UncommunicativeMethodParamName:
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/UnneededCondition:
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/UnneededInterpolation:
354
+ Style/UnpackFirst:
227
355
  Enabled: false
228
356
  Style/WordArray:
229
357
  Enabled: false
@@ -1,3 +1,3 @@
1
1
  module MadRubocop
2
- VERSION = "3.64.0"
2
+ VERSION = "4.0.0.rc1"
3
3
  end
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.64.0"
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"
24
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: 3.64.0
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: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.64.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.64.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
@@ -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,12 +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: '0'
121
+ version: 1.3.1
94
122
  requirements: []
95
- rubygems_version: 3.0.2
96
- signing_key:
123
+ rubygems_version: 3.1.2
124
+ signing_key:
97
125
  specification_version: 4
98
126
  summary: Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop
99
127
  test_files: []