rubocop_default_config 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/.rubocop_popular_config.yml +92 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b889561ad61a1a8c5cfc487d41b066064730f06e
|
4
|
+
data.tar.gz: 1786564a24ec6df6a63b49ff23023dcfbbd7a580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf14b2e3a526e0e639325c87fb4fc17deffb63dff63198efad7cc6bfa5003bce60840a71a85cdfe04b228bf8added74c5bed7e6eae1b3e881c0b3f9f145f8089
|
7
|
+
data.tar.gz: f7a53ae53b6637455a9dbbf6e147d5c5521376aa3680ca82552c8fca73d156a646ae01698c970e3bec6f49f58884f25b2a44e9a7813a73bad33ef2b4a53090e4
|
@@ -9,22 +9,28 @@ AllCops:
|
|
9
9
|
Rails:
|
10
10
|
Enabled: true
|
11
11
|
Style/FrozenStringLiteralComment:
|
12
|
+
Description: This cop is designed to help upgrade to Ruby 3.0, enable frozen string literals.
|
13
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
|
12
14
|
Enabled: false
|
13
15
|
Style/SafeNavigation:
|
14
16
|
Description: Safe navigation may cause a statement to start returning `nil` in addition
|
15
17
|
to whatever it used to return.
|
16
18
|
ConvertCodeThatCanStartToReturnNil: false
|
19
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/0.51.0/RuboCop/Cop/Style/SafeNavigation
|
17
20
|
Enabled: true
|
18
21
|
Lint/AmbiguousOperator:
|
19
22
|
Description: Checks for ambiguous operators in the first argument of a method invocation
|
20
23
|
without parentheses.
|
21
|
-
StyleGuide:
|
24
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Lint/AmbiguousOperator
|
22
25
|
Enabled: true
|
23
26
|
Lint/AmbiguousBlockAssociation:
|
27
|
+
Description: This cop checks for ambiguous block association with method when param passed without parentheses.
|
28
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/AmbiguousBlockAssociation
|
24
29
|
Enabled: false
|
25
30
|
Lint/AmbiguousRegexpLiteral:
|
26
31
|
Description: Checks for ambiguous regexp literals in the first argument of a method
|
27
32
|
invocation without parenthesis.
|
33
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/AmbiguousRegexpLiteral
|
28
34
|
Enabled: true
|
29
35
|
Lint/AssignmentInCondition:
|
30
36
|
Description: Don't use assignment in conditions.
|
@@ -32,9 +38,11 @@ Lint/AssignmentInCondition:
|
|
32
38
|
Enabled: true
|
33
39
|
Lint/BlockAlignment:
|
34
40
|
Description: Align block ends correctly.
|
41
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/BlockAlignment
|
35
42
|
Enabled: true
|
36
43
|
Lint/CircularArgumentReference:
|
37
44
|
Description: Don't refer to the keyword argument in the default value.
|
45
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/CircularArgumentReference
|
38
46
|
Enabled: true
|
39
47
|
Lint/ConditionPosition:
|
40
48
|
Description: Checks for condition placed in a confusing position relative to the
|
@@ -43,33 +51,43 @@ Lint/ConditionPosition:
|
|
43
51
|
Enabled: true
|
44
52
|
Lint/Debugger:
|
45
53
|
Description: Check for debugger calls.
|
54
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/Debugger
|
46
55
|
Enabled: true
|
47
56
|
Lint/DefEndAlignment:
|
48
57
|
Description: Align ends corresponding to defs correctly.
|
58
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/DefEndAlignment
|
49
59
|
Enabled: true
|
50
60
|
Lint/DeprecatedClassMethods:
|
51
61
|
Description: Check for deprecated class method calls.
|
62
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/DeprecatedClassMethods
|
52
63
|
Enabled: true
|
53
64
|
Lint/DuplicateMethods:
|
54
65
|
Description: Check for duplicate methods calls.
|
66
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/DuplicateMethods
|
55
67
|
Enabled: true
|
56
68
|
Lint/EachWithObjectArgument:
|
57
69
|
Description: Check for immutable argument given to each_with_object.
|
70
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EachWithObjectArgument
|
58
71
|
Enabled: true
|
59
72
|
Lint/ElseLayout:
|
60
73
|
Description: Check for odd code arrangement in an else block.
|
74
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/ElseLayout
|
61
75
|
Enabled: true
|
62
76
|
Lint/EmptyEnsure:
|
63
77
|
Description: Checks for empty ensure block.
|
78
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EmptyEnsure
|
64
79
|
Enabled: true
|
65
80
|
Lint/EmptyInterpolation:
|
66
81
|
Description: Checks for empty string interpolation.
|
82
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EmptyInterpolation
|
67
83
|
Enabled: true
|
68
84
|
Lint/EndAlignment:
|
69
85
|
Description: Align ends correctly.
|
86
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EndAlignment
|
70
87
|
Enabled: true
|
71
88
|
Lint/EndInMethod:
|
72
89
|
Description: END blocks should not be placed inside method definitions.
|
90
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/EndInMethod
|
73
91
|
Enabled: true
|
74
92
|
Lint/EnsureReturn:
|
75
93
|
Description: Do not use return in an ensure block.
|
@@ -77,6 +95,7 @@ Lint/EnsureReturn:
|
|
77
95
|
Enabled: true
|
78
96
|
Lint/FormatParameterMismatch:
|
79
97
|
Description: The number of parameters to format/sprint must match the fields.
|
98
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/FormatParameterMismatch
|
80
99
|
Enabled: true
|
81
100
|
Lint/HandleExceptions:
|
82
101
|
Description: Don't suppress exception.
|
@@ -84,6 +103,7 @@ Lint/HandleExceptions:
|
|
84
103
|
Enabled: true
|
85
104
|
Lint/LiteralInInterpolation:
|
86
105
|
Description: Checks for literals used in interpolation.
|
106
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/LiteralInInterpolation
|
87
107
|
Enabled: true
|
88
108
|
Lint/Loop:
|
89
109
|
Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
|
@@ -96,6 +116,7 @@ Lint/NestedMethodDefinition:
|
|
96
116
|
Enabled: true
|
97
117
|
Lint/NonLocalExitFromIterator:
|
98
118
|
Description: Do not use return in iterator to cause non-local exit.
|
119
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/NonLocalExitFromIterator
|
99
120
|
Enabled: true
|
100
121
|
Lint/ParenthesesAsGroupedExpression:
|
101
122
|
Description: Checks for method calls with a space before the opening parenthesis.
|
@@ -103,6 +124,7 @@ Lint/ParenthesesAsGroupedExpression:
|
|
103
124
|
Enabled: true
|
104
125
|
Lint/RequireParentheses:
|
105
126
|
Description: Use parentheses in the method call to avoid confusion about precedence.
|
127
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/RequireParentheses
|
106
128
|
Enabled: true
|
107
129
|
Lint/RescueException:
|
108
130
|
Description: Avoid rescuing the Exception class.
|
@@ -111,6 +133,7 @@ Lint/RescueException:
|
|
111
133
|
Lint/ShadowingOuterLocalVariable:
|
112
134
|
Description: Do not use the same name as outer local variable for block arguments
|
113
135
|
or block local variables.
|
136
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/ShadowingOuterLocalVariable
|
114
137
|
Enabled: true
|
115
138
|
Lint/StringConversionInInterpolation:
|
116
139
|
Description: Checks for Object#to_s usage in string interpolation.
|
@@ -118,10 +141,12 @@ Lint/StringConversionInInterpolation:
|
|
118
141
|
Enabled: true
|
119
142
|
Lint/UnderscorePrefixedVariableName:
|
120
143
|
Description: Do not use prefix `_` for a variable that is used.
|
144
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UnderscorePrefixedVariableName
|
121
145
|
Enabled: true
|
122
146
|
Lint/UnneededDisable:
|
123
147
|
Description: 'Checks for rubocop:disable comments that can be removed. Note: this
|
124
148
|
cop is not disabled when disabling all cops. It must be explicitly disabled.'
|
149
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UnneededDisable
|
125
150
|
Enabled: true
|
126
151
|
Lint/UnusedBlockArgument:
|
127
152
|
Description: Checks for unused block arguments.
|
@@ -133,9 +158,11 @@ Lint/UnusedMethodArgument:
|
|
133
158
|
Enabled: true
|
134
159
|
Lint/UnreachableCode:
|
135
160
|
Description: Unreachable code.
|
161
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UnreachableCode
|
136
162
|
Enabled: true
|
137
163
|
Lint/UselessAccessModifier:
|
138
164
|
Description: Checks for useless access modifiers.
|
165
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessAccessModifier
|
139
166
|
Enabled: true
|
140
167
|
Lint/UselessAssignment:
|
141
168
|
Description: Checks for useless assignment to a local variable.
|
@@ -143,12 +170,15 @@ Lint/UselessAssignment:
|
|
143
170
|
Enabled: true
|
144
171
|
Lint/UselessComparison:
|
145
172
|
Description: Checks for comparison of something with itself.
|
173
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessComparison
|
146
174
|
Enabled: true
|
147
175
|
Lint/UselessElseWithoutRescue:
|
148
176
|
Description: Checks for useless `else` in `begin..end` without `rescue`.
|
177
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessElseWithoutRescue
|
149
178
|
Enabled: true
|
150
179
|
Lint/UselessSetterCall:
|
151
180
|
Description: Checks for useless setter call to a local variable.
|
181
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/UselessSetterCall
|
152
182
|
Enabled: true
|
153
183
|
Lint/Void:
|
154
184
|
Description: Possible use of operator/literal/variable in void context.
|
@@ -166,11 +196,13 @@ Metrics/BlockNesting:
|
|
166
196
|
Max: 4
|
167
197
|
Metrics/ClassLength:
|
168
198
|
Description: Avoid classes longer than 100 lines of code.
|
199
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/ClassLength
|
169
200
|
Enabled: true
|
170
201
|
Max: 100
|
171
202
|
Metrics/CyclomaticComplexity:
|
172
203
|
Description: A complexity metric that is strongly correlated to the number of test
|
173
204
|
cases needed to validate a method.
|
205
|
+
StyleGuide: https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricscyclomaticcomplexity
|
174
206
|
Enabled: true
|
175
207
|
Metrics/LineLength:
|
176
208
|
Description: Limit lines to 80 characters.
|
@@ -183,6 +215,7 @@ Metrics/MethodLength:
|
|
183
215
|
Max: 10
|
184
216
|
Metrics/ModuleLength:
|
185
217
|
Description: Avoid modules longer than 100 lines of code.
|
218
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/ModuleLength
|
186
219
|
Enabled: true
|
187
220
|
Max: 100
|
188
221
|
Metrics/ParameterLists:
|
@@ -192,8 +225,10 @@ Metrics/ParameterLists:
|
|
192
225
|
Metrics/PerceivedComplexity:
|
193
226
|
Description: A complexity metric geared towards measuring complexity for a human
|
194
227
|
reader.
|
228
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/PerceivedComplexity
|
195
229
|
Enabled: true
|
196
230
|
Metrics/BlockLength:
|
231
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Metrics/BlockLength
|
197
232
|
Exclude:
|
198
233
|
- Rakefile
|
199
234
|
- "**/*.rake"
|
@@ -201,6 +236,7 @@ Metrics/BlockLength:
|
|
201
236
|
Performance/Count:
|
202
237
|
Description: Use `count` instead of `select...size`, `reject...size`, `select...count`,
|
203
238
|
`reject...count`, `select...length`, and `reject...length`.
|
239
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Performance/Count
|
204
240
|
Enabled: true
|
205
241
|
Performance/Detect:
|
206
242
|
Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`,
|
@@ -233,31 +269,40 @@ Performance/StringReplacement:
|
|
233
269
|
Enabled: true
|
234
270
|
Rails/ActionFilter:
|
235
271
|
Description: Enforces consistent use of action filter methods.
|
272
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/ActionFilter
|
236
273
|
Enabled: false
|
237
274
|
Rails/Date:
|
238
275
|
Description: Checks the correct usage of date aware methods, such as Date.today,
|
239
276
|
Date.current etc.
|
277
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/Date
|
240
278
|
Enabled: true
|
241
279
|
Rails/Delegate:
|
242
280
|
Description: Prefer delegate method for delegations.
|
281
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/Delegate
|
243
282
|
Enabled: true
|
244
283
|
Rails/FindBy:
|
245
284
|
Description: Prefer find_by over where.first.
|
285
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/FindBy
|
246
286
|
Enabled: true
|
247
287
|
Rails/FindEach:
|
248
288
|
Description: Prefer all.find_each over all.find.
|
289
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/FindEach
|
249
290
|
Enabled: true
|
250
291
|
Rails/HasAndBelongsToMany:
|
251
292
|
Description: Prefer has_many :through to has_and_belongs_to_many.
|
293
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Rails/HasAndBelongsToMany
|
252
294
|
Enabled: true
|
253
295
|
Rails/Output:
|
254
296
|
Description: Checks for calls to puts, print, etc.
|
297
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Rails/Output
|
255
298
|
Enabled: true
|
256
299
|
Rails/ReadWriteAttribute:
|
257
300
|
Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
|
301
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Rails/ReadWriteAttribute
|
258
302
|
Enabled: false
|
259
303
|
Rails/ScopeArgs:
|
260
304
|
Description: Checks the arguments of ActiveRecord scopes.
|
305
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Rails/ScopeArgs
|
261
306
|
Enabled: true
|
262
307
|
Rails/TimeZone:
|
263
308
|
Description: Checks the correct usage of time zone aware methods.
|
@@ -266,6 +311,7 @@ Rails/TimeZone:
|
|
266
311
|
Enabled: true
|
267
312
|
Rails/Validation:
|
268
313
|
Description: Use validates :attribute, hash of validations.
|
314
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Rails/Validation
|
269
315
|
Enabled: true
|
270
316
|
Layout/AccessModifierIndentation:
|
271
317
|
Description: Check indentation of private/protected visibility modifiers.
|
@@ -281,6 +327,7 @@ Layout/AlignArray:
|
|
281
327
|
Enabled: true
|
282
328
|
Layout/AlignHash:
|
283
329
|
Description: Align the elements of a hash literal if they span more than one line.
|
330
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/AlignHash
|
284
331
|
Enabled: true
|
285
332
|
Layout/AlignParameters:
|
286
333
|
Description: Align the parameters of a method call if they span more than one line.
|
@@ -320,6 +367,7 @@ Style/BlockComments:
|
|
320
367
|
Enabled: false
|
321
368
|
Layout/BlockEndNewline:
|
322
369
|
Description: Put end statement of multiline block on its own line.
|
370
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/BlockEndNewline
|
323
371
|
Enabled: true
|
324
372
|
Style/BlockDelimiters:
|
325
373
|
Description: Avoid using {...} for multi-line blocks (multiline chaining is always
|
@@ -328,6 +376,7 @@ Style/BlockDelimiters:
|
|
328
376
|
Enabled: true
|
329
377
|
Style/BracesAroundHashParameters:
|
330
378
|
Description: Enforce braces style around hash parameters.
|
379
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Style/BracesAroundHashParameters
|
331
380
|
Enabled: false
|
332
381
|
Style/CaseEquality:
|
333
382
|
Description: Avoid explicit use of the case equality operator(===).
|
@@ -347,9 +396,11 @@ Naming/ClassAndModuleCamelCase:
|
|
347
396
|
Enabled: true
|
348
397
|
Style/ClassAndModuleChildren:
|
349
398
|
Description: Checks style of children classes and modules.
|
399
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/ClassAndModuleChildren
|
350
400
|
Enabled: false
|
351
401
|
Style/ClassCheck:
|
352
402
|
Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
|
403
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ClassCheck
|
353
404
|
Enabled: true
|
354
405
|
Style/ClassMethods:
|
355
406
|
Description: Use self when defining module/class methods.
|
@@ -361,6 +412,7 @@ Style/ClassVars:
|
|
361
412
|
Enabled: false
|
362
413
|
Layout/ClosingParenthesisIndentation:
|
363
414
|
Description: Checks the indentation of hanging closing parentheses.
|
415
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/ClosingParenthesisIndentation
|
364
416
|
Enabled: false
|
365
417
|
Style/ColonMethodCall:
|
366
418
|
Description: 'Do not use :: for method call.'
|
@@ -376,6 +428,7 @@ Style/CommentAnnotation:
|
|
376
428
|
Enabled: false
|
377
429
|
Layout/CommentIndentation:
|
378
430
|
Description: Indentation of comments.
|
431
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/CommentIndentation
|
379
432
|
Enabled: false
|
380
433
|
Naming/ConstantName:
|
381
434
|
Description: Constants should use SCREAMING_SNAKE_CASE.
|
@@ -387,6 +440,7 @@ Style/DefWithParentheses:
|
|
387
440
|
Enabled: true
|
388
441
|
Style/Documentation:
|
389
442
|
Description: Document classes and non-namespace modules.
|
443
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/Documentation
|
390
444
|
Enabled: false
|
391
445
|
Layout/DotPosition:
|
392
446
|
Description: Checks the position of the dot in multi-line method calls.
|
@@ -398,9 +452,11 @@ Style/DoubleNegation:
|
|
398
452
|
Enabled: true
|
399
453
|
Style/EachWithObject:
|
400
454
|
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
455
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/EachWithObject
|
401
456
|
Enabled: false
|
402
457
|
Layout/ElseAlignment:
|
403
458
|
Description: Align elses and elsifs correctly.
|
459
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/ElseAlignment
|
404
460
|
Enabled: true
|
405
461
|
Style/EmptyElse:
|
406
462
|
Description: Avoid empty else-clauses.
|
@@ -411,21 +467,27 @@ Layout/EmptyLineBetweenDefs:
|
|
411
467
|
Enabled: true
|
412
468
|
Layout/EmptyLines:
|
413
469
|
Description: Don't use several empty lines in a row.
|
470
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLines
|
414
471
|
Enabled: true
|
415
472
|
Layout/EmptyLinesAroundAccessModifier:
|
416
473
|
Description: Keep blank lines around access modifiers.
|
474
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLinesAroundAccessModifier
|
417
475
|
Enabled: false
|
418
476
|
Layout/EmptyLinesAroundBlockBody:
|
419
477
|
Description: Keeps track of empty lines around block bodies.
|
478
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLinesAroundBlockBody
|
420
479
|
Enabled: false
|
421
480
|
Layout/EmptyLinesAroundClassBody:
|
422
481
|
Description: Keeps track of empty lines around class bodies.
|
482
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLinesAroundClassBody
|
423
483
|
Enabled: false
|
424
484
|
Layout/EmptyLinesAroundModuleBody:
|
425
485
|
Description: Keeps track of empty lines around module bodies.
|
486
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLinesAroundModuleBody
|
426
487
|
Enabled: false
|
427
488
|
Layout/EmptyLinesAroundMethodBody:
|
428
489
|
Description: Keeps track of empty lines around method bodies.
|
490
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EmptyLinesAroundMethodBody
|
429
491
|
Enabled: false
|
430
492
|
Style/EmptyLiteral:
|
431
493
|
Description: Prefer literals to Array.new/Hash.new/String.new.
|
@@ -445,6 +507,7 @@ Style/EvenOdd:
|
|
445
507
|
Enabled: true
|
446
508
|
Layout/ExtraSpacing:
|
447
509
|
Description: Do not use unnecessary spacing.
|
510
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/ExtraSpacing
|
448
511
|
Enabled: true
|
449
512
|
Naming/FileName:
|
450
513
|
Description: Use snake_case for source file names.
|
@@ -453,6 +516,7 @@ Naming/FileName:
|
|
453
516
|
Layout/InitialIndentation:
|
454
517
|
Description: Checks the indentation of the first non-blank non-comment line in a
|
455
518
|
file.
|
519
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/InitialIndentation
|
456
520
|
Enabled: false
|
457
521
|
Layout/FirstParameterIndentation:
|
458
522
|
Description: Checks the indentation of the first parameter in a method call.
|
@@ -493,6 +557,7 @@ Style/IfWithSemicolon:
|
|
493
557
|
Enabled: true
|
494
558
|
Layout/IndentationConsistency:
|
495
559
|
Description: Keep indentation straight.
|
560
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/IndentationConsistency
|
496
561
|
Enabled: false
|
497
562
|
Layout/IndentationWidth:
|
498
563
|
Description: Use 2 spaces for indentation.
|
@@ -500,9 +565,11 @@ Layout/IndentationWidth:
|
|
500
565
|
Enabled: true
|
501
566
|
Layout/IndentArray:
|
502
567
|
Description: Checks the indentation of the first element in an array literal.
|
568
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/IndentArray
|
503
569
|
Enabled: false
|
504
570
|
Layout/IndentHash:
|
505
571
|
Description: Checks the indentation of the first key in a hash literal.
|
572
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/IndentHash
|
506
573
|
Enabled: false
|
507
574
|
Style/InfiniteLoop:
|
508
575
|
Description: Use Kernel#loop for infinite loops.
|
@@ -523,6 +590,7 @@ Layout/LeadingCommentSpace:
|
|
523
590
|
Style/LineEndConcatenation:
|
524
591
|
Description: Use \ instead of + or << to concatenate two string literals at line
|
525
592
|
end.
|
593
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/LineEndConcatenation
|
526
594
|
Enabled: true
|
527
595
|
Style/MethodCallWithoutArgsParentheses:
|
528
596
|
Description: Do not use parentheses for method calls with no arguments.
|
@@ -546,6 +614,7 @@ Style/MultilineBlockChain:
|
|
546
614
|
Enabled: false
|
547
615
|
Layout/MultilineBlockLayout:
|
548
616
|
Description: Ensures newlines after multiline block do statements.
|
617
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/MultilineBlockLayout
|
549
618
|
Enabled: true
|
550
619
|
Style/MultilineIfThen:
|
551
620
|
Description: Do not use then for multi-line if/unless.
|
@@ -553,6 +622,7 @@ Style/MultilineIfThen:
|
|
553
622
|
Enabled: true
|
554
623
|
Layout/MultilineOperationIndentation:
|
555
624
|
Description: Checks indentation of binary operations that span more than one line.
|
625
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/MultilineOperationIndentation
|
556
626
|
Enabled: false
|
557
627
|
Style/MultilineTernaryOperator:
|
558
628
|
Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
|
@@ -626,6 +696,7 @@ Style/PercentLiteralDelimiters:
|
|
626
696
|
'%W': '()'
|
627
697
|
Style/PercentQLiterals:
|
628
698
|
Description: Checks if uses of %Q/%q match the configured preference.
|
699
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Style/PercentQLiterals
|
629
700
|
Enabled: true
|
630
701
|
Style/PerlBackrefs:
|
631
702
|
Description: Avoid Perl-style regex back references.
|
@@ -665,6 +736,7 @@ Style/RegexpLiteral:
|
|
665
736
|
Enabled: false
|
666
737
|
Layout/RescueEnsureAlignment:
|
667
738
|
Description: Align rescues and ensures correctly.
|
739
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/RescueEnsureAlignment
|
668
740
|
Enabled: false
|
669
741
|
Style/RescueModifier:
|
670
742
|
Description: Avoid using rescue in its modifier form.
|
@@ -694,6 +766,7 @@ Style/SingleLineMethods:
|
|
694
766
|
Layout/SpaceBeforeFirstArg:
|
695
767
|
Description: Checks that exactly one space is used between a method name and the
|
696
768
|
first argument for method calls without parentheses.
|
769
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/SpaceBeforeFirstArg
|
697
770
|
Enabled: true
|
698
771
|
Layout/SpaceAfterColon:
|
699
772
|
Description: Use spaces after colons.
|
@@ -705,6 +778,7 @@ Layout/SpaceAfterComma:
|
|
705
778
|
Enabled: true
|
706
779
|
Layout/SpaceAroundKeyword:
|
707
780
|
Description: Use spaces around keywords.
|
781
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/SpaceAroundKeyword
|
708
782
|
Enabled: true
|
709
783
|
Layout/SpaceAfterMethodName:
|
710
784
|
Description: Do not put a space between a method name and the opening parenthesis
|
@@ -721,23 +795,29 @@ Layout/SpaceAfterSemicolon:
|
|
721
795
|
Enabled: true
|
722
796
|
Layout/SpaceBeforeBlockBraces:
|
723
797
|
Description: Checks that the left block brace has or doesn't have space before it.
|
798
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceBeforeBlockBraces
|
724
799
|
Enabled: false
|
725
800
|
Layout/SpaceBeforeComma:
|
726
801
|
Description: No spaces before commas.
|
802
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceBeforeComma
|
727
803
|
Enabled: false
|
728
804
|
Layout/SpaceBeforeComment:
|
729
805
|
Description: Checks for missing space between code and a comment on the same line.
|
806
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/SpaceBeforeComment
|
730
807
|
Enabled: false
|
731
808
|
Layout/SpaceBeforeSemicolon:
|
732
809
|
Description: No spaces before semicolons.
|
810
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceBeforeSemicolon
|
733
811
|
Enabled: false
|
734
812
|
Layout/SpaceInsideBlockBraces:
|
735
813
|
Description: Checks that block braces have or don't have surrounding space. For
|
736
814
|
blocks taking parameters, checks that the left brace has or doesn't have trailing
|
737
815
|
space.
|
816
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceInsideBlockBraces
|
738
817
|
Enabled: false
|
739
818
|
Layout/SpaceAroundBlockParameters:
|
740
819
|
Description: Checks the spacing inside and after block parameters pipes.
|
820
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/SpaceAroundBlockParameters
|
741
821
|
Enabled: true
|
742
822
|
Layout/SpaceAroundEqualsInParameterDefault:
|
743
823
|
Description: Checks that the equals signs in parameter default assignments have
|
@@ -780,6 +860,7 @@ Style/StringLiterals:
|
|
780
860
|
Style/StringLiteralsInInterpolation:
|
781
861
|
Description: Checks if uses of quotes inside expressions in interpolated strings
|
782
862
|
match the configured preference.
|
863
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/StringLiteralsInInterpolation
|
783
864
|
Enabled: true
|
784
865
|
Style/StructInheritance:
|
785
866
|
Description: Checks for inheritance from Struct.new.
|
@@ -787,9 +868,11 @@ Style/StructInheritance:
|
|
787
868
|
Enabled: false
|
788
869
|
Style/SymbolLiteral:
|
789
870
|
Description: Use plain symbols instead of string symbols when possible.
|
871
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/SymbolLiteral
|
790
872
|
Enabled: false
|
791
873
|
Style/SymbolProc:
|
792
874
|
Description: Use symbols as procs instead of blocks when possible.
|
875
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/SymbolProc
|
793
876
|
Enabled: false
|
794
877
|
Layout/Tab:
|
795
878
|
Description: No hard tabs.
|
@@ -821,6 +904,7 @@ Style/UnlessElse:
|
|
821
904
|
Enabled: true
|
822
905
|
Style/UnneededCapitalW:
|
823
906
|
Description: Checks for %W when interpolation is not needed.
|
907
|
+
StyleGuide: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Style/UnneededCapitalW
|
824
908
|
Enabled: false
|
825
909
|
Style/UnneededPercentQ:
|
826
910
|
Description: Checks for %q/%Q when single quotes or double quotes would do.
|
@@ -829,6 +913,7 @@ Style/UnneededPercentQ:
|
|
829
913
|
Style/TrailingUnderscoreVariable:
|
830
914
|
Description: Checks for the usage of unneeded trailing underscores at the end of
|
831
915
|
parallel variable assignment.
|
916
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/TrailingUnderscoreVariable
|
832
917
|
Enabled: false
|
833
918
|
Style/VariableInterpolation:
|
834
919
|
Description: Don't interpolate global, instance and class variables directly in
|
@@ -852,13 +937,18 @@ Style/WhileUntilModifier:
|
|
852
937
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
|
853
938
|
Enabled: true
|
854
939
|
Style/MutableConstant:
|
940
|
+
Description: This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).
|
941
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/MutableConstant
|
855
942
|
Enabled: true
|
856
943
|
Style/WordArray:
|
857
944
|
Description: Use %w or %W for arrays of words.
|
858
945
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
|
859
946
|
Enabled: true
|
860
947
|
Style/EmptyMethod:
|
948
|
+
Description: This cop checks for the formatting of empty method definitions.
|
949
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/EmptyMethod
|
861
950
|
Enabled: false
|
862
951
|
Security/Eval:
|
863
952
|
Description: The use of eval represents a serious security risk.
|
864
|
-
|
953
|
+
StyleGuide: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Security/Eval
|
954
|
+
# Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_default_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thai Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|