lintrunner 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.lintrunner_config +30 -0
- data/.rubocop.yml +1057 -0
- data/.scss-lint.yml +191 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/bin/lintrunner +8 -0
- data/lib/lintrunner/cli.rb +97 -0
- data/lib/lintrunner/executor.rb +23 -0
- data/lib/lintrunner/git_helpers.rb +11 -0
- data/lib/lintrunner/message.rb +14 -0
- data/lib/lintrunner/options.rb +78 -0
- data/lib/lintrunner/parser/base.rb +19 -0
- data/lib/lintrunner/parser/eslint.rb +28 -0
- data/lib/lintrunner/parser/rubocop.rb +57 -0
- data/lib/lintrunner/parser/scss_lint.rb +36 -0
- data/lib/lintrunner/plugin.rb +5 -0
- data/lib/lintrunner/reporter/base.rb +30 -0
- data/lib/lintrunner/reporter/context.rb +24 -0
- data/lib/lintrunner/reporter/file.rb +11 -0
- data/lib/lintrunner/reporter/text.rb +29 -0
- data/lib/lintrunner/runner/base.rb +21 -0
- data/lib/lintrunner/runner/changed_file.rb +24 -0
- data/lib/lintrunner/runner/diff.rb +89 -0
- data/lib/lintrunner/runner/new_file.rb +26 -0
- data/lib/lintrunner/runner/repo.rb +31 -0
- data/lib/lintrunner/version.rb +3 -0
- data/lib/lintrunner.rb +34 -0
- data/lintrunner.gemspec +26 -0
- data/test.rb +43 -0
- data/test2.rb +7 -0
- metadata +134 -0
data/.rubocop.yml
ADDED
@@ -0,0 +1,1057 @@
|
|
1
|
+
##################### GitHub ##################################
|
2
|
+
Style/Tab:
|
3
|
+
Description: 'No hard tabs.'
|
4
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Style/IndentationWidth:
|
8
|
+
Description: 'Use 2 spaces for indentation.'
|
9
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Metrics/LineLength:
|
13
|
+
Description: 'Limit lines to 80 characters.'
|
14
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Style/TrailingBlankLines:
|
18
|
+
Description: 'Checks trailing blank lines and final newline.'
|
19
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/SpaceAfterColon:
|
23
|
+
Description: 'Use spaces after colons.'
|
24
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/SpaceAfterComma:
|
28
|
+
Description: 'Use spaces after commas.'
|
29
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Style/SpaceAfterSemicolon:
|
33
|
+
Description: 'Use spaces after semicolons.'
|
34
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/SpaceAroundOperators:
|
38
|
+
Description: 'Use a single space around operators.'
|
39
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/SpaceInsideHashLiteralBraces:
|
43
|
+
Description: "Use spaces inside hash literal braces - or don't."
|
44
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Style/SpaceInsideBrackets:
|
48
|
+
Description: 'No spaces after [ or before ].'
|
49
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/SpaceInsideParens:
|
53
|
+
Description: 'No spaces after ( or before ).'
|
54
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
55
|
+
Enabled: false
|
56
|
+
|
57
|
+
Style/SpaceAfterNot:
|
58
|
+
Description: Tracks redundant space after the ! operator.
|
59
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Style/CaseIndentation:
|
63
|
+
Description: 'Indentation of when in a case/when/[else/]end.'
|
64
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/EmptyLineBetweenDefs:
|
68
|
+
Description: 'Use empty lines between defs.'
|
69
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Style/DefWithParentheses:
|
73
|
+
Description: 'Use def with parentheses when there are arguments.'
|
74
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Style/For:
|
78
|
+
Description: 'Checks use of for or each in multiline loops.'
|
79
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Style/MultilineIfThen:
|
83
|
+
Description: 'Do not use then for multi-line if/unless.'
|
84
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
# GitHub is against this one
|
88
|
+
Style/OneLineConditional:
|
89
|
+
Description: >-
|
90
|
+
Favor the ternary operator(?:) over
|
91
|
+
if/then/else/end constructs.
|
92
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
93
|
+
Enabled: false
|
94
|
+
|
95
|
+
Style/NestedTernaryOperator:
|
96
|
+
Description: 'Use one expression per branch in a ternary operator.'
|
97
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
Style/AndOr:
|
101
|
+
Description: 'Use &&/|| instead of and/or.'
|
102
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
Style/MultilineTernaryOperator:
|
106
|
+
Description: >-
|
107
|
+
Avoid multi-line ?: (the ternary operator);
|
108
|
+
use if/unless instead.
|
109
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
Style/IfUnlessModifier:
|
113
|
+
Description: >-
|
114
|
+
Favor modifier if/unless usage when you have a
|
115
|
+
single-line body.
|
116
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
|
117
|
+
Enabled: false
|
118
|
+
|
119
|
+
Style/UnlessElse:
|
120
|
+
Description: >-
|
121
|
+
Do not use unless with else. Rewrite these with the positive
|
122
|
+
case first.
|
123
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
Style/ParenthesesAroundCondition:
|
127
|
+
Description: >-
|
128
|
+
Don't use parentheses around the condition of an
|
129
|
+
if/unless/while.
|
130
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
Style/Blocks:
|
134
|
+
Description: >-
|
135
|
+
Avoid using {...} for multi-line blocks (multiline chaining is
|
136
|
+
always ugly).
|
137
|
+
Prefer {...} over do...end for single-line blocks.
|
138
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Style/MultilineBlockChain:
|
142
|
+
Description: 'Avoid multi-line chains of blocks.'
|
143
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
Style/RedundantReturn:
|
147
|
+
Description: "Don't use return where it's not required."
|
148
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
152
|
+
Description: >-
|
153
|
+
Checks that the equals signs in parameter default assignments
|
154
|
+
have or don't have surrounding space depending on
|
155
|
+
configuration.
|
156
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
|
157
|
+
Enabled: true
|
158
|
+
|
159
|
+
# GitHub is against this one
|
160
|
+
Lint/AssignmentInCondition:
|
161
|
+
Description: "Don't use assignment in conditions."
|
162
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
163
|
+
Enabled: false
|
164
|
+
|
165
|
+
# MISSING: Use ||= freely to initialize variables.
|
166
|
+
|
167
|
+
# MISSING: Don't use ||= to initialize boolean variables. (Consider what would happen if the current value happened to be false.)
|
168
|
+
|
169
|
+
Style/PerlBackrefs:
|
170
|
+
Description: 'Avoid Perl-style regex back references.'
|
171
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
|
172
|
+
Enabled: false
|
173
|
+
|
174
|
+
Style/SpecialGlobalVars:
|
175
|
+
Description: 'Avoid Perl-style global variables.'
|
176
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
|
177
|
+
Enabled: false
|
178
|
+
|
179
|
+
Style/SpaceAfterMethodName:
|
180
|
+
Description: >-
|
181
|
+
Do not put a space between a method name and the opening
|
182
|
+
parenthesis in a method definition.
|
183
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
184
|
+
Enabled: false
|
185
|
+
|
186
|
+
|
187
|
+
Lint/AmbiguousOperator:
|
188
|
+
Description: >-
|
189
|
+
Checks for ambiguous operators in the first argument of a
|
190
|
+
method invocation without parentheses.
|
191
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
|
192
|
+
Enabled: false
|
193
|
+
|
194
|
+
Lint/UnderscorePrefixedVariableName:
|
195
|
+
Description: 'Do not use prefix `_` for a variable that is used.'
|
196
|
+
Enabled: false
|
197
|
+
|
198
|
+
Lint/UnusedBlockArgument:
|
199
|
+
Description: 'Checks for unused block arguments.'
|
200
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
201
|
+
Enabled: false
|
202
|
+
|
203
|
+
Lint/UnusedMethodArgument:
|
204
|
+
Description: 'Checks for unused method arguments.'
|
205
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
206
|
+
Enabled: false
|
207
|
+
|
208
|
+
Lint/UselessAssignment:
|
209
|
+
Description: 'Checks for useless assignment to a local variable.'
|
210
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
211
|
+
Enabled: false
|
212
|
+
|
213
|
+
Style/CaseEquality:
|
214
|
+
Description: 'Avoid explicit use of the case equality operator(===).'
|
215
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
216
|
+
Enabled: false
|
217
|
+
|
218
|
+
Style/MethodName:
|
219
|
+
Description: 'Use the configured style when naming methods.'
|
220
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
221
|
+
Enabled: false
|
222
|
+
|
223
|
+
Style/VariableName:
|
224
|
+
Description: 'Use the configured style when naming variables.'
|
225
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Style/ClassAndModuleCamelCase:
|
229
|
+
Description: 'Use CamelCase for classes and modules.'
|
230
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
231
|
+
Enabled: false
|
232
|
+
|
233
|
+
Style/ConstantName:
|
234
|
+
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
235
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
236
|
+
Enabled: false
|
237
|
+
|
238
|
+
Style/PredicateName:
|
239
|
+
Description: 'Check the names of predicate methods.'
|
240
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
241
|
+
Enabled: false
|
242
|
+
|
243
|
+
# MISSING: The names of potentially "dangerous" methods...
|
244
|
+
|
245
|
+
Style/ClassVars:
|
246
|
+
Description: 'Avoid the use of class variables.'
|
247
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
|
248
|
+
Enabled: false
|
249
|
+
|
250
|
+
# GitHub wants to avoid use of class << self
|
251
|
+
Style/ClassMethods:
|
252
|
+
Description: 'Use self when defining module/class methods.'
|
253
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-singletons'
|
254
|
+
Enabled: false
|
255
|
+
|
256
|
+
Style/AccessModifierIndentation:
|
257
|
+
Description: Check indentation of private/protected visibility modifiers.
|
258
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
|
259
|
+
Enabled: false
|
260
|
+
|
261
|
+
Style/RedundantSelf:
|
262
|
+
Description: "Don't use self where it's not needed."
|
263
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
|
264
|
+
Enabled: false
|
265
|
+
|
266
|
+
# MISSING: Don't use exceptions for flow of control.
|
267
|
+
|
268
|
+
Lint/RescueException:
|
269
|
+
Description: 'Avoid rescuing the Exception class.'
|
270
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
|
271
|
+
Enabled: false
|
272
|
+
|
273
|
+
Style/WordArray:
|
274
|
+
Description: 'Use %w or %W for arrays of words.'
|
275
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
|
276
|
+
Enabled: false
|
277
|
+
|
278
|
+
# MISSING: Use Set instead of Array when ...
|
279
|
+
|
280
|
+
# MISSING: Use symbols instead of strings as hash keys.
|
281
|
+
|
282
|
+
# MISSING: Prefer string interpolation instead of string concatenation:
|
283
|
+
|
284
|
+
Style/StringLiterals:
|
285
|
+
Description: 'Checks if uses of quotes match the configured preference.'
|
286
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
|
287
|
+
Enabled: false
|
288
|
+
|
289
|
+
# MISSING: Avoid using String#+ when you need...
|
290
|
+
|
291
|
+
# MISSING: Avoid using $1-9 as it can be hard to track...
|
292
|
+
|
293
|
+
# MISSING: Be careful with ^ and $ as they match start/end of line
|
294
|
+
|
295
|
+
# MISSING: Use x modifier for complex regexps...
|
296
|
+
|
297
|
+
# DUPLICATE: Use %w freely.
|
298
|
+
|
299
|
+
Style/BarePercentLiterals:
|
300
|
+
Description: 'Checks if usage of %() or %Q() matches configuration.'
|
301
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
|
302
|
+
Enabled: false
|
303
|
+
|
304
|
+
Style/RegexpLiteral:
|
305
|
+
Description: >-
|
306
|
+
Use %r for regular expressions matching more than
|
307
|
+
`MaxSlashes` '/' characters.
|
308
|
+
Use %r only for regular expressions matching more than
|
309
|
+
`MaxSlashes` '/' character.
|
310
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
|
311
|
+
Enabled: false
|
312
|
+
|
313
|
+
Style/HashSyntax:
|
314
|
+
Description: >-
|
315
|
+
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
316
|
+
{ :a => 1, :b => 2 }.
|
317
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
|
318
|
+
Enabled: false
|
319
|
+
|
320
|
+
# MISSING: Keyword Arguments
|
321
|
+
|
322
|
+
# These are all the cops that are enabled in the default configuration.
|
323
|
+
|
324
|
+
Style/SpaceAfterControlKeyword:
|
325
|
+
Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
|
326
|
+
Enabled: false
|
327
|
+
|
328
|
+
|
329
|
+
Style/AccessorMethodName:
|
330
|
+
Description: Check the naming of accessor methods for get_/set_.
|
331
|
+
Enabled: false
|
332
|
+
|
333
|
+
Style/Alias:
|
334
|
+
Description: 'Use alias_method instead of alias.'
|
335
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
336
|
+
Enabled: false
|
337
|
+
|
338
|
+
Style/AlignArray:
|
339
|
+
Description: >-
|
340
|
+
Align the elements of an array literal if they span more than
|
341
|
+
one line.
|
342
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
343
|
+
Enabled: false
|
344
|
+
|
345
|
+
Style/AlignHash:
|
346
|
+
Description: >-
|
347
|
+
Align the elements of a hash literal if they span more than
|
348
|
+
one line.
|
349
|
+
Enabled: false
|
350
|
+
|
351
|
+
Style/AlignParameters:
|
352
|
+
Description: >-
|
353
|
+
Align the parameters of a method call if they span more
|
354
|
+
than one line.
|
355
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
|
356
|
+
Enabled: false
|
357
|
+
|
358
|
+
Style/ArrayJoin:
|
359
|
+
Description: 'Use Array#join instead of Array#*.'
|
360
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
|
361
|
+
Enabled: false
|
362
|
+
|
363
|
+
Style/AsciiComments:
|
364
|
+
Description: 'Use only ascii symbols in comments.'
|
365
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
366
|
+
Enabled: false
|
367
|
+
|
368
|
+
Style/AsciiIdentifiers:
|
369
|
+
Description: 'Use only ascii symbols in identifiers.'
|
370
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
371
|
+
Enabled: false
|
372
|
+
|
373
|
+
Style/Attr:
|
374
|
+
Description: 'Checks for uses of Module#attr.'
|
375
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
|
376
|
+
Enabled: false
|
377
|
+
|
378
|
+
Style/BeginBlock:
|
379
|
+
Description: 'Avoid the use of BEGIN blocks.'
|
380
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
|
381
|
+
Enabled: false
|
382
|
+
|
383
|
+
Style/BlockComments:
|
384
|
+
Description: 'Do not use block comments.'
|
385
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
|
386
|
+
Enabled: false
|
387
|
+
|
388
|
+
Style/BlockEndNewline:
|
389
|
+
Description: 'Put end statement of multiline block on its own line.'
|
390
|
+
Enabled: false
|
391
|
+
|
392
|
+
Style/BracesAroundHashParameters:
|
393
|
+
Description: 'Enforce braces style around hash parameters.'
|
394
|
+
Enabled: false
|
395
|
+
|
396
|
+
Style/CharacterLiteral:
|
397
|
+
Description: 'Checks for uses of character literals.'
|
398
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
399
|
+
Enabled: false
|
400
|
+
|
401
|
+
Style/ClassAndModuleChildren:
|
402
|
+
Description: 'Checks style of children classes and modules.'
|
403
|
+
Enabled: false
|
404
|
+
|
405
|
+
Style/ClassCheck:
|
406
|
+
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
407
|
+
Enabled: false
|
408
|
+
|
409
|
+
Style/ColonMethodCall:
|
410
|
+
Description: 'Do not use :: for method call.'
|
411
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
412
|
+
Enabled: false
|
413
|
+
|
414
|
+
Style/CommentAnnotation:
|
415
|
+
Description: >-
|
416
|
+
Checks formatting of special comments
|
417
|
+
(TODO, FIXME, OPTIMIZE, HACK, REVIEW).
|
418
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
|
419
|
+
Enabled: false
|
420
|
+
|
421
|
+
Style/CommentIndentation:
|
422
|
+
Description: 'Indentation of comments.'
|
423
|
+
Enabled: false
|
424
|
+
|
425
|
+
Style/DeprecatedHashMethods:
|
426
|
+
Description: 'Checks for use of deprecated Hash methods.'
|
427
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
428
|
+
Enabled: false
|
429
|
+
|
430
|
+
Style/Documentation:
|
431
|
+
Description: 'Document classes and non-namespace modules.'
|
432
|
+
Enabled: false
|
433
|
+
|
434
|
+
Style/DotPosition:
|
435
|
+
Description: 'Checks the position of the dot in multi-line method calls.'
|
436
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
437
|
+
Enabled: false
|
438
|
+
|
439
|
+
Style/DoubleNegation:
|
440
|
+
Description: 'Checks for uses of double negation (!!).'
|
441
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
|
442
|
+
Enabled: false
|
443
|
+
|
444
|
+
Style/EachWithObject:
|
445
|
+
Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
|
446
|
+
Enabled: false
|
447
|
+
|
448
|
+
Style/ElseAlignment:
|
449
|
+
Description: 'Align elses and elsifs correctly.'
|
450
|
+
Enabled: false
|
451
|
+
|
452
|
+
Style/EmptyElse:
|
453
|
+
Description: 'Avoid empty else-clauses.'
|
454
|
+
Enabled: false
|
455
|
+
|
456
|
+
Style/EmptyLines:
|
457
|
+
Description: "Don't use several empty lines in a row."
|
458
|
+
Enabled: false
|
459
|
+
|
460
|
+
Style/EmptyLinesAroundAccessModifier:
|
461
|
+
Description: "Keep blank lines around access modifiers."
|
462
|
+
Enabled: false
|
463
|
+
|
464
|
+
Style/EmptyLinesAroundBlockBody:
|
465
|
+
Description: "Keeps track of empty lines around block bodies."
|
466
|
+
Enabled: false
|
467
|
+
|
468
|
+
Style/EmptyLinesAroundClassBody:
|
469
|
+
Description: "Keeps track of empty lines around class bodies."
|
470
|
+
Enabled: false
|
471
|
+
|
472
|
+
Style/EmptyLinesAroundModuleBody:
|
473
|
+
Description: "Keeps track of empty lines around module bodies."
|
474
|
+
Enabled: false
|
475
|
+
|
476
|
+
Style/EmptyLinesAroundMethodBody:
|
477
|
+
Description: "Keeps track of empty lines around method bodies."
|
478
|
+
Enabled: false
|
479
|
+
|
480
|
+
Style/EmptyLiteral:
|
481
|
+
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
|
482
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
|
483
|
+
Enabled: false
|
484
|
+
|
485
|
+
Style/EndBlock:
|
486
|
+
Description: 'Avoid the use of END blocks.'
|
487
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
488
|
+
Enabled: false
|
489
|
+
|
490
|
+
Style/EndOfLine:
|
491
|
+
Description: 'Use Unix-style line endings.'
|
492
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
493
|
+
Enabled: false
|
494
|
+
|
495
|
+
Style/EvenOdd:
|
496
|
+
Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
|
497
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
498
|
+
Enabled: false
|
499
|
+
|
500
|
+
Style/FileName:
|
501
|
+
Description: 'Use snake_case for source file names.'
|
502
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
503
|
+
Enabled: false
|
504
|
+
|
505
|
+
Style/FirstParameterIndentation:
|
506
|
+
Description: 'Checks the indentation of the first parameter in a method call.'
|
507
|
+
Enabled: false
|
508
|
+
|
509
|
+
Style/FlipFlop:
|
510
|
+
Description: 'Checks for flip flops'
|
511
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
|
512
|
+
Enabled: false
|
513
|
+
|
514
|
+
Style/FormatString:
|
515
|
+
Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
|
516
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
|
517
|
+
Enabled: false
|
518
|
+
|
519
|
+
Style/GlobalVars:
|
520
|
+
Description: 'Do not introduce global variables.'
|
521
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
522
|
+
Enabled: false
|
523
|
+
|
524
|
+
Style/GuardClause:
|
525
|
+
Description: 'Check for conditionals that can be replaced with guard clauses'
|
526
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
527
|
+
Enabled: false
|
528
|
+
|
529
|
+
Style/IfWithSemicolon:
|
530
|
+
Description: 'Do not use if x; .... Use the ternary operator instead.'
|
531
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
|
532
|
+
Enabled: false
|
533
|
+
|
534
|
+
Style/IndentationConsistency:
|
535
|
+
Description: 'Keep indentation straight.'
|
536
|
+
Enabled: false
|
537
|
+
|
538
|
+
Style/IndentArray:
|
539
|
+
Description: >-
|
540
|
+
Checks the indentation of the first element in an array
|
541
|
+
literal.
|
542
|
+
Enabled: false
|
543
|
+
|
544
|
+
Style/IndentHash:
|
545
|
+
Description: 'Checks the indentation of the first key in a hash literal.'
|
546
|
+
Enabled: false
|
547
|
+
|
548
|
+
Style/InfiniteLoop:
|
549
|
+
Description: 'Use Kernel#loop for infinite loops.'
|
550
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
|
551
|
+
Enabled: false
|
552
|
+
|
553
|
+
Style/Lambda:
|
554
|
+
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
555
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
|
556
|
+
Enabled: false
|
557
|
+
|
558
|
+
Style/LambdaCall:
|
559
|
+
Description: 'Use lambda.call(...) instead of lambda.(...).'
|
560
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
|
561
|
+
Enabled: false
|
562
|
+
|
563
|
+
Style/LeadingCommentSpace:
|
564
|
+
Description: 'Comments should start with a space.'
|
565
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
566
|
+
Enabled: false
|
567
|
+
|
568
|
+
Style/LineEndConcatenation:
|
569
|
+
Description: >-
|
570
|
+
Use \ instead of + or << to concatenate two string literals at
|
571
|
+
line end.
|
572
|
+
Enabled: false
|
573
|
+
|
574
|
+
Style/MethodCallParentheses:
|
575
|
+
Description: 'Do not use parentheses for method calls with no arguments.'
|
576
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
577
|
+
Enabled: false
|
578
|
+
|
579
|
+
Style/MethodDefParentheses:
|
580
|
+
Description: >-
|
581
|
+
Checks if the method definitions have or don't have
|
582
|
+
parentheses.
|
583
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
584
|
+
Enabled: false
|
585
|
+
|
586
|
+
Style/ModuleFunction:
|
587
|
+
Description: 'Checks for usage of `extend self` in modules.'
|
588
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
|
589
|
+
Enabled: false
|
590
|
+
|
591
|
+
Style/MultilineBlockLayout:
|
592
|
+
Description: 'Ensures newlines after multiline block do statements.'
|
593
|
+
Enabled: false
|
594
|
+
|
595
|
+
Style/MultilineOperationIndentation:
|
596
|
+
Description: >-
|
597
|
+
Checks indentation of binary operations that span more than
|
598
|
+
one line.
|
599
|
+
Enabled: false
|
600
|
+
|
601
|
+
Style/NegatedIf:
|
602
|
+
Description: >-
|
603
|
+
Favor unless over if for negative conditions
|
604
|
+
(or control flow or).
|
605
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
|
606
|
+
Enabled: false
|
607
|
+
|
608
|
+
Style/NegatedWhile:
|
609
|
+
Description: 'Favor until over while for negative conditions.'
|
610
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
|
611
|
+
Enabled: false
|
612
|
+
|
613
|
+
Style/Next:
|
614
|
+
Description: 'Use `next` to skip iteration instead of a condition at the end.'
|
615
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
616
|
+
Enabled: false
|
617
|
+
|
618
|
+
Style/NilComparison:
|
619
|
+
Description: 'Prefer x.nil? to x == nil.'
|
620
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
621
|
+
Enabled: false
|
622
|
+
|
623
|
+
Style/NonNilCheck:
|
624
|
+
Description: 'Checks for redundant nil checks.'
|
625
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
|
626
|
+
Enabled: false
|
627
|
+
|
628
|
+
Style/Not:
|
629
|
+
Description: 'Use ! instead of not.'
|
630
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
|
631
|
+
Enabled: false
|
632
|
+
|
633
|
+
Style/NumericLiterals:
|
634
|
+
Description: >-
|
635
|
+
Add underscores to large numeric literals to improve their
|
636
|
+
readability.
|
637
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
|
638
|
+
Enabled: false
|
639
|
+
|
640
|
+
Style/OpMethod:
|
641
|
+
Description: 'When defining binary operators, name the argument other.'
|
642
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
643
|
+
Enabled: false
|
644
|
+
|
645
|
+
Style/PercentLiteralDelimiters:
|
646
|
+
Description: 'Use `%`-literal delimiters consistently'
|
647
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
|
648
|
+
Enabled: false
|
649
|
+
|
650
|
+
Style/PercentQLiterals:
|
651
|
+
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
652
|
+
Enabled: false
|
653
|
+
|
654
|
+
Style/Proc:
|
655
|
+
Description: 'Use proc instead of Proc.new.'
|
656
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
|
657
|
+
Enabled: false
|
658
|
+
|
659
|
+
Style/RaiseArgs:
|
660
|
+
Description: 'Checks the arguments passed to raise/fail.'
|
661
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
|
662
|
+
Enabled: false
|
663
|
+
|
664
|
+
Style/RedundantBegin:
|
665
|
+
Description: "Don't use begin blocks when they are not needed."
|
666
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
|
667
|
+
Enabled: false
|
668
|
+
|
669
|
+
Style/RedundantException:
|
670
|
+
Description: "Checks for an obsolete RuntimeException argument in raise/fail."
|
671
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
|
672
|
+
Enabled: false
|
673
|
+
|
674
|
+
Style/RescueModifier:
|
675
|
+
Description: 'Avoid using rescue in its modifier form.'
|
676
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
|
677
|
+
Enabled: false
|
678
|
+
|
679
|
+
Style/SelfAssignment:
|
680
|
+
Description: >-
|
681
|
+
Checks for places where self-assignment shorthand should have
|
682
|
+
been used.
|
683
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
684
|
+
Enabled: false
|
685
|
+
|
686
|
+
Style/Semicolon:
|
687
|
+
Description: "Don't use semicolons to terminate expressions."
|
688
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
|
689
|
+
Enabled: false
|
690
|
+
|
691
|
+
Style/SignalException:
|
692
|
+
Description: 'Checks for proper usage of fail and raise.'
|
693
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
|
694
|
+
Enabled: false
|
695
|
+
|
696
|
+
Style/SingleLineBlockParams:
|
697
|
+
Description: 'Enforces the names of some block params.'
|
698
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
|
699
|
+
Enabled: false
|
700
|
+
|
701
|
+
Style/SingleLineMethods:
|
702
|
+
Description: 'Avoid single-line methods.'
|
703
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
704
|
+
Enabled: false
|
705
|
+
|
706
|
+
Style/SingleSpaceBeforeFirstArg:
|
707
|
+
Description: >-
|
708
|
+
Checks that exactly one space is used between a method name
|
709
|
+
and the first argument for method calls without parentheses.
|
710
|
+
Enabled: false
|
711
|
+
|
712
|
+
Style/SpaceBeforeBlockBraces:
|
713
|
+
Description: >-
|
714
|
+
Checks that the left block brace has or doesn't have space
|
715
|
+
before it.
|
716
|
+
Enabled: false
|
717
|
+
|
718
|
+
Style/SpaceBeforeComma:
|
719
|
+
Description: 'No spaces before commas.'
|
720
|
+
Enabled: false
|
721
|
+
|
722
|
+
Style/SpaceBeforeComment:
|
723
|
+
Description: >-
|
724
|
+
Checks for missing space between code and a comment on the
|
725
|
+
same line.
|
726
|
+
Enabled: false
|
727
|
+
|
728
|
+
Style/SpaceBeforeSemicolon:
|
729
|
+
Description: 'No spaces before semicolons.'
|
730
|
+
Enabled: false
|
731
|
+
|
732
|
+
Style/SpaceInsideBlockBraces:
|
733
|
+
Description: >-
|
734
|
+
Checks that block braces have or don't have surrounding space.
|
735
|
+
For blocks taking parameters, checks that the left brace has
|
736
|
+
or doesn't have trailing space.
|
737
|
+
Enabled: false
|
738
|
+
|
739
|
+
Style/SpaceAroundBlockParameters:
|
740
|
+
Description: 'Checks the spacing inside and after block parameters pipes.'
|
741
|
+
Enabled: false
|
742
|
+
|
743
|
+
Style/SpaceBeforeModifierKeyword:
|
744
|
+
Description: 'Put a space before the modifier keyword.'
|
745
|
+
Enabled: false
|
746
|
+
|
747
|
+
Style/SpaceInsideRangeLiteral:
|
748
|
+
Description: 'No spaces inside range literals.'
|
749
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
750
|
+
Enabled: false
|
751
|
+
|
752
|
+
Style/StringLiteralsInInterpolation:
|
753
|
+
Description: >-
|
754
|
+
Checks if uses of quotes inside expressions in interpolated
|
755
|
+
strings match the configured preference.
|
756
|
+
Enabled: false
|
757
|
+
|
758
|
+
Style/StructInheritance:
|
759
|
+
Description: 'Checks for inheritance from Struct.new.'
|
760
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
|
761
|
+
Enabled: false
|
762
|
+
|
763
|
+
Style/SymbolProc:
|
764
|
+
Description: 'Use symbols as procs instead of blocks when possible.'
|
765
|
+
Enabled: false
|
766
|
+
|
767
|
+
Style/TrailingComma:
|
768
|
+
Description: 'Checks for trailing comma in parameter lists and literals.'
|
769
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
770
|
+
Enabled: false
|
771
|
+
|
772
|
+
Style/TrailingWhitespace:
|
773
|
+
Description: 'Avoid trailing whitespace.'
|
774
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
775
|
+
Enabled: false
|
776
|
+
|
777
|
+
Style/TrivialAccessors:
|
778
|
+
Description: 'Prefer attr_* methods to trivial readers/writers.'
|
779
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
|
780
|
+
Enabled: false
|
781
|
+
|
782
|
+
Style/UnneededCapitalW:
|
783
|
+
Description: 'Checks for %W when interpolation is not needed.'
|
784
|
+
Enabled: false
|
785
|
+
|
786
|
+
Style/UnneededPercentQ:
|
787
|
+
Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
|
788
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
|
789
|
+
Enabled: false
|
790
|
+
|
791
|
+
Style/UnneededPercentX:
|
792
|
+
Description: 'Checks for %x when `` would do.'
|
793
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
|
794
|
+
Enabled: false
|
795
|
+
|
796
|
+
Style/VariableInterpolation:
|
797
|
+
Description: >-
|
798
|
+
Don't interpolate global, instance and class variables
|
799
|
+
directly in strings.
|
800
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
801
|
+
Enabled: false
|
802
|
+
|
803
|
+
Style/WhenThen:
|
804
|
+
Description: 'Use when x then ... for one-line cases.'
|
805
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
|
806
|
+
Enabled: false
|
807
|
+
|
808
|
+
Style/WhileUntilDo:
|
809
|
+
Description: 'Checks for redundant do after while or until.'
|
810
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
|
811
|
+
Enabled: false
|
812
|
+
|
813
|
+
Style/WhileUntilModifier:
|
814
|
+
Description: >-
|
815
|
+
Favor modifier while/until usage when you have a
|
816
|
+
single-line body.
|
817
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
|
818
|
+
Enabled: false
|
819
|
+
|
820
|
+
#################### Metrics ################################
|
821
|
+
|
822
|
+
Metrics/AbcSize:
|
823
|
+
Description: >-
|
824
|
+
A calculated magnitude based on number of assignments,
|
825
|
+
branches, and conditions.
|
826
|
+
Enabled: false
|
827
|
+
|
828
|
+
Metrics/BlockNesting:
|
829
|
+
Description: 'Avoid excessive block nesting'
|
830
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
|
831
|
+
Enabled: false
|
832
|
+
|
833
|
+
Metrics/ClassLength:
|
834
|
+
Description: 'Avoid classes longer than 100 lines of code.'
|
835
|
+
Enabled: false
|
836
|
+
|
837
|
+
Metrics/CyclomaticComplexity:
|
838
|
+
Description: >-
|
839
|
+
A complexity metric that is strongly correlated to the number
|
840
|
+
of test cases needed to validate a method.
|
841
|
+
Enabled: false
|
842
|
+
|
843
|
+
Metrics/MethodLength:
|
844
|
+
Description: 'Avoid methods longer than 10 lines of code.'
|
845
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
|
846
|
+
Enabled: false
|
847
|
+
|
848
|
+
Metrics/ParameterLists:
|
849
|
+
Description: 'Avoid parameter lists longer than three or four parameters.'
|
850
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
|
851
|
+
Enabled: false
|
852
|
+
|
853
|
+
Metrics/PerceivedComplexity:
|
854
|
+
Description: >-
|
855
|
+
A complexity metric geared towards measuring complexity for a
|
856
|
+
human reader.
|
857
|
+
Enabled: false
|
858
|
+
|
859
|
+
#################### Lint ################################
|
860
|
+
### Warnings
|
861
|
+
Lint/AmbiguousRegexpLiteral:
|
862
|
+
Description: >-
|
863
|
+
Checks for ambiguous regexp literals in the first argument of
|
864
|
+
a method invocation without parenthesis.
|
865
|
+
Enabled: false
|
866
|
+
|
867
|
+
Lint/BlockAlignment:
|
868
|
+
Description: 'Align block ends correctly.'
|
869
|
+
Enabled: false
|
870
|
+
|
871
|
+
Lint/ConditionPosition:
|
872
|
+
Description: >-
|
873
|
+
Checks for condition placed in a confusing position relative to
|
874
|
+
the keyword.
|
875
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
|
876
|
+
Enabled: false
|
877
|
+
|
878
|
+
Lint/Debugger:
|
879
|
+
Description: 'Check for debugger calls.'
|
880
|
+
Enabled: true
|
881
|
+
|
882
|
+
Lint/DefEndAlignment:
|
883
|
+
Description: 'Align ends corresponding to defs correctly.'
|
884
|
+
Enabled: false
|
885
|
+
|
886
|
+
Lint/DeprecatedClassMethods:
|
887
|
+
Description: 'Check for deprecated class method calls.'
|
888
|
+
Enabled: false
|
889
|
+
|
890
|
+
Lint/DuplicateMethods:
|
891
|
+
Description: 'Check for duplicate methods calls.'
|
892
|
+
Enabled: false
|
893
|
+
|
894
|
+
Lint/ElseLayout:
|
895
|
+
Description: 'Check for odd code arrangement in an else block.'
|
896
|
+
Enabled: false
|
897
|
+
|
898
|
+
Lint/EmptyEnsure:
|
899
|
+
Description: 'Checks for empty ensure block.'
|
900
|
+
Enabled: false
|
901
|
+
|
902
|
+
Lint/EmptyInterpolation:
|
903
|
+
Description: 'Checks for empty string interpolation.'
|
904
|
+
Enabled: false
|
905
|
+
|
906
|
+
Lint/EndAlignment:
|
907
|
+
Description: 'Align ends correctly.'
|
908
|
+
Enabled: false
|
909
|
+
|
910
|
+
Lint/EndInMethod:
|
911
|
+
Description: 'END blocks should not be placed inside method definitions.'
|
912
|
+
Enabled: false
|
913
|
+
|
914
|
+
Lint/EnsureReturn:
|
915
|
+
Description: 'Do not use return in an ensure block.'
|
916
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
|
917
|
+
Enabled: false
|
918
|
+
|
919
|
+
Lint/Eval:
|
920
|
+
Description: 'The use of eval represents a serious security risk.'
|
921
|
+
Enabled: false
|
922
|
+
|
923
|
+
Lint/HandleExceptions:
|
924
|
+
Description: "Don't suppress exception."
|
925
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
|
926
|
+
Enabled: false
|
927
|
+
|
928
|
+
Lint/InvalidCharacterLiteral:
|
929
|
+
Description: >-
|
930
|
+
Checks for invalid character literals with a non-escaped
|
931
|
+
whitespace character.
|
932
|
+
Enabled: false
|
933
|
+
|
934
|
+
Lint/LiteralInCondition:
|
935
|
+
Description: 'Checks of literals used in conditions.'
|
936
|
+
Enabled: false
|
937
|
+
|
938
|
+
Lint/LiteralInInterpolation:
|
939
|
+
Description: 'Checks for literals used in interpolation.'
|
940
|
+
Enabled: false
|
941
|
+
|
942
|
+
Lint/Loop:
|
943
|
+
Description: >-
|
944
|
+
Use Kernel#loop with break rather than begin/end/until or
|
945
|
+
begin/end/while for post-loop tests.
|
946
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
|
947
|
+
Enabled: false
|
948
|
+
|
949
|
+
Lint/ParenthesesAsGroupedExpression:
|
950
|
+
Description: >-
|
951
|
+
Checks for method calls with a space before the opening
|
952
|
+
parenthesis.
|
953
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
954
|
+
Enabled: false
|
955
|
+
|
956
|
+
Lint/RequireParentheses:
|
957
|
+
Description: >-
|
958
|
+
Use parentheses in the method call to avoid confusion
|
959
|
+
about precedence.
|
960
|
+
Enabled: false
|
961
|
+
|
962
|
+
Lint/ShadowingOuterLocalVariable:
|
963
|
+
Description: >-
|
964
|
+
Do not use the same name as outer local variable
|
965
|
+
for block arguments or block local variables.
|
966
|
+
Enabled: false
|
967
|
+
|
968
|
+
Lint/SpaceBeforeFirstArg:
|
969
|
+
Description: >-
|
970
|
+
Put a space between a method name and the first argument
|
971
|
+
in a method call without parentheses.
|
972
|
+
Enabled: false
|
973
|
+
|
974
|
+
Lint/StringConversionInInterpolation:
|
975
|
+
Description: 'Checks for Object#to_s usage in string interpolation.'
|
976
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
|
977
|
+
Enabled: false
|
978
|
+
|
979
|
+
Lint/UnreachableCode:
|
980
|
+
Description: 'Unreachable code.'
|
981
|
+
Enabled: false
|
982
|
+
|
983
|
+
Lint/UselessAccessModifier:
|
984
|
+
Description: 'Checks for useless access modifiers.'
|
985
|
+
Enabled: false
|
986
|
+
|
987
|
+
Lint/UselessComparison:
|
988
|
+
Description: 'Checks for comparison of something with itself.'
|
989
|
+
Enabled: false
|
990
|
+
|
991
|
+
Lint/UselessElseWithoutRescue:
|
992
|
+
Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
|
993
|
+
Enabled: false
|
994
|
+
|
995
|
+
Lint/UselessSetterCall:
|
996
|
+
Description: 'Checks for useless setter call to a local variable.'
|
997
|
+
Enabled: false
|
998
|
+
|
999
|
+
Lint/Void:
|
1000
|
+
Description: 'Possible use of operator/literal/variable in void context.'
|
1001
|
+
Enabled: false
|
1002
|
+
|
1003
|
+
##################### Rails ##################################
|
1004
|
+
|
1005
|
+
Rails/ActionFilter:
|
1006
|
+
Description: 'Enforces consistent use of action filter methods.'
|
1007
|
+
Enabled: false
|
1008
|
+
|
1009
|
+
Rails/DefaultScope:
|
1010
|
+
Description: 'Checks if the argument passed to default_scope is a block.'
|
1011
|
+
Enabled: false
|
1012
|
+
|
1013
|
+
Rails/Delegate:
|
1014
|
+
Description: 'Prefer delegate method for delegations.'
|
1015
|
+
Enabled: false
|
1016
|
+
|
1017
|
+
Rails/HasAndBelongsToMany:
|
1018
|
+
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
|
1019
|
+
Enabled: false
|
1020
|
+
|
1021
|
+
Rails/Output:
|
1022
|
+
Description: 'Checks for calls to puts, print, etc.'
|
1023
|
+
Enabled: false
|
1024
|
+
|
1025
|
+
Rails/ReadWriteAttribute:
|
1026
|
+
Description: >-
|
1027
|
+
Checks for read_attribute(:attr) and
|
1028
|
+
write_attribute(:attr, val).
|
1029
|
+
Enabled: false
|
1030
|
+
|
1031
|
+
Rails/ScopeArgs:
|
1032
|
+
Description: 'Checks the arguments of ActiveRecord scopes.'
|
1033
|
+
Enabled: false
|
1034
|
+
|
1035
|
+
Rails/Validation:
|
1036
|
+
Description: 'Use validates :attribute, hash of validations.'
|
1037
|
+
Enabled: false
|
1038
|
+
|
1039
|
+
Style/BlockDelimiters:
|
1040
|
+
Enabled: false
|
1041
|
+
|
1042
|
+
Style/ParallelAssignment:
|
1043
|
+
Enabled: false
|
1044
|
+
Metrics/ModuleLength:
|
1045
|
+
Enabled: false
|
1046
|
+
|
1047
|
+
Style/ClosingParenthesisIndentation:
|
1048
|
+
Enabled: false
|
1049
|
+
|
1050
|
+
Performance/Count:
|
1051
|
+
Enabled: false
|
1052
|
+
|
1053
|
+
Performance/Detect:
|
1054
|
+
Enabled: false
|
1055
|
+
|
1056
|
+
Lint/NonLocalExitFromIterator:
|
1057
|
+
Enabled: false
|