rubocop_default_config 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: f0846d6dfc2e4a5e8d55cb9f4ab74423d998480a
4
- data.tar.gz: 8c0343ce6fc7752a4ef2d1244cbb897048a6fe32
3
+ metadata.gz: 2d0061b3e40bf3269f48062f1a07cbcb3bc6391b
4
+ data.tar.gz: f1212b6518fd865b7ed8447ff5740ab2a3105b72
5
5
  SHA512:
6
- metadata.gz: ea9fd1fef35ef24a150cef4ca0fb655aabce42b741875596e74ac1b843c52af6e79940107532f0a06e97e237c5a7d9984cacdb1a59f1d26f3ba0e2a0cdbc3e78
7
- data.tar.gz: 5d4b46a9aa7e55b9e546e066abd85076cf48a7b1fb9ea427b39a258cfb6ceac1cf99fa3af7fe03c41edd626ec8b510e8fbabc20f29c9703871e5886f9e767f55
6
+ metadata.gz: 4cf125d6b7f13c46ca8bd563507297f90f5f06fb3746c95644e77f21446c04cb37c012684e0a4e4af167318e45d134be1b237d0ed76b38e7b22e4b41fc60da5a
7
+ data.tar.gz: bfd8eb045422d62e0cdf3c6a97e8a3d1eb02c54acf02870ab4964e4a60adb955c5cd47ec2b33ad1ef199d2049e7aa696c32d4a48d142ff13f736b4e26afb6bf6
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # RubocopConfig
2
+
3
+ ## Installation
4
+
5
+ `gem install rubocop_default_config`
6
+
7
+ ## Usage
8
+
9
+ `rubocop-config`
10
+
11
+ ## License
12
+
13
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,15 +1,860 @@
1
- # inherit_from: .rubocop_todo.yml
2
1
  AllCops:
3
2
  UseCache: true
4
3
  Exclude:
5
4
  - 'db/schema.rb'
6
5
  - 'vendor/**/*'
7
- Documentation:
8
- Enabled: false
6
+ - Gemfile.lock
9
7
  Style/FrozenStringLiteralComment:
10
8
  Enabled: false
9
+ Style/SafeNavigation:
10
+ Description: Safe navigation may cause a statement to start returning `nil` in addition
11
+ to whatever it used to return.
12
+ ConvertCodeThatCanStartToReturnNil: false
13
+ Enabled: true
14
+ Lint/AmbiguousOperator:
15
+ Description: Checks for ambiguous operators in the first argument of a method invocation
16
+ without parentheses.
17
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
18
+ Enabled: true
19
+ Lint/AmbiguousBlockAssociation:
20
+ Enabled: false
21
+ Lint/AmbiguousRegexpLiteral:
22
+ Description: Checks for ambiguous regexp literals in the first argument of a method
23
+ invocation without parenthesis.
24
+ Enabled: true
25
+ Lint/AssignmentInCondition:
26
+ Description: Don't use assignment in conditions.
27
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
28
+ Enabled: true
29
+ Lint/BlockAlignment:
30
+ Description: Align block ends correctly.
31
+ Enabled: true
32
+ Lint/CircularArgumentReference:
33
+ Description: Don't refer to the keyword argument in the default value.
34
+ Enabled: true
35
+ Lint/ConditionPosition:
36
+ Description: Checks for condition placed in a confusing position relative to the
37
+ keyword.
38
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
39
+ Enabled: true
40
+ Lint/Debugger:
41
+ Description: Check for debugger calls.
42
+ Enabled: true
43
+ Lint/DefEndAlignment:
44
+ Description: Align ends corresponding to defs correctly.
45
+ Enabled: true
46
+ Lint/DeprecatedClassMethods:
47
+ Description: Check for deprecated class method calls.
48
+ Enabled: true
49
+ Lint/DuplicateMethods:
50
+ Description: Check for duplicate methods calls.
51
+ Enabled: true
52
+ Lint/EachWithObjectArgument:
53
+ Description: Check for immutable argument given to each_with_object.
54
+ Enabled: true
55
+ Lint/ElseLayout:
56
+ Description: Check for odd code arrangement in an else block.
57
+ Enabled: true
58
+ Lint/EmptyEnsure:
59
+ Description: Checks for empty ensure block.
60
+ Enabled: true
61
+ Lint/EmptyInterpolation:
62
+ Description: Checks for empty string interpolation.
63
+ Enabled: true
64
+ Lint/EndAlignment:
65
+ Description: Align ends correctly.
66
+ Enabled: true
67
+ Lint/EndInMethod:
68
+ Description: END blocks should not be placed inside method definitions.
69
+ Enabled: true
70
+ Lint/EnsureReturn:
71
+ Description: Do not use return in an ensure block.
72
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
73
+ Enabled: true
74
+ Lint/FormatParameterMismatch:
75
+ Description: The number of parameters to format/sprint must match the fields.
76
+ Enabled: true
77
+ Lint/HandleExceptions:
78
+ Description: Don't suppress exception.
79
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
80
+ Enabled: true
81
+ Lint/LiteralInInterpolation:
82
+ Description: Checks for literals used in interpolation.
83
+ Enabled: true
84
+ Lint/Loop:
85
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
86
+ for post-loop tests.
87
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
88
+ Enabled: true
89
+ Lint/NestedMethodDefinition:
90
+ Description: Do not use nested method definitions.
91
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-methods
92
+ Enabled: true
93
+ Lint/NonLocalExitFromIterator:
94
+ Description: Do not use return in iterator to cause non-local exit.
95
+ Enabled: true
96
+ Lint/ParenthesesAsGroupedExpression:
97
+ Description: Checks for method calls with a space before the opening parenthesis.
98
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
99
+ Enabled: true
100
+ Lint/RequireParentheses:
101
+ Description: Use parentheses in the method call to avoid confusion about precedence.
102
+ Enabled: true
103
+ Lint/RescueException:
104
+ Description: Avoid rescuing the Exception class.
105
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
106
+ Enabled: true
107
+ Lint/ShadowingOuterLocalVariable:
108
+ Description: Do not use the same name as outer local variable for block arguments
109
+ or block local variables.
110
+ Enabled: true
111
+ Lint/StringConversionInInterpolation:
112
+ Description: Checks for Object#to_s usage in string interpolation.
113
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
114
+ Enabled: true
115
+ Lint/UnderscorePrefixedVariableName:
116
+ Description: Do not use prefix `_` for a variable that is used.
117
+ Enabled: true
118
+ Lint/UnneededDisable:
119
+ Description: 'Checks for rubocop:disable comments that can be removed. Note: this
120
+ cop is not disabled when disabling all cops. It must be explicitly disabled.'
121
+ Enabled: true
122
+ Lint/UnusedBlockArgument:
123
+ Description: Checks for unused block arguments.
124
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
125
+ Enabled: true
126
+ Lint/UnusedMethodArgument:
127
+ Description: Checks for unused method arguments.
128
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
129
+ Enabled: true
130
+ Lint/UnreachableCode:
131
+ Description: Unreachable code.
132
+ Enabled: true
133
+ Lint/UselessAccessModifier:
134
+ Description: Checks for useless access modifiers.
135
+ Enabled: true
136
+ Lint/UselessAssignment:
137
+ Description: Checks for useless assignment to a local variable.
138
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
139
+ Enabled: true
140
+ Lint/UselessComparison:
141
+ Description: Checks for comparison of something with itself.
142
+ Enabled: true
143
+ Lint/UselessElseWithoutRescue:
144
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
145
+ Enabled: true
146
+ Lint/UselessSetterCall:
147
+ Description: Checks for useless setter call to a local variable.
148
+ Enabled: true
149
+ Lint/Void:
150
+ Description: Possible use of operator/literal/variable in void context.
151
+ Enabled: true
152
+ Metrics/AbcSize:
153
+ Description: A calculated magnitude based on number of assignments, branches, and
154
+ conditions.
155
+ Reference: http://c2.com/cgi/wiki?AbcMetric
156
+ Enabled: true
157
+ Max: 15
158
+ Metrics/BlockNesting:
159
+ Description: Avoid excessive block nesting
160
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
161
+ Enabled: true
162
+ Max: 4
163
+ Metrics/ClassLength:
164
+ Description: Avoid classes longer than 100 lines of code.
165
+ Enabled: true
166
+ Max: 100
167
+ Metrics/CyclomaticComplexity:
168
+ Description: A complexity metric that is strongly correlated to the number of test
169
+ cases needed to validate a method.
170
+ Enabled: true
171
+ Metrics/LineLength:
172
+ Description: Limit lines to 80 characters.
173
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
174
+ Enabled: true
175
+ Metrics/MethodLength:
176
+ Description: Avoid methods longer than 10 lines of code.
177
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
178
+ Enabled: true
179
+ Max: 10
180
+ Metrics/ModuleLength:
181
+ Description: Avoid modules longer than 100 lines of code.
182
+ Enabled: true
183
+ Max: 100
184
+ Metrics/ParameterLists:
185
+ Description: Avoid parameter lists longer than three or four parameters.
186
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
187
+ Enabled: false
188
+ Metrics/PerceivedComplexity:
189
+ Description: A complexity metric geared towards measuring complexity for a human
190
+ reader.
191
+ Enabled: true
192
+ Metrics/BlockLength:
193
+ Exclude:
194
+ - Rakefile
195
+ - "**/*.rake"
196
+ - spec/**/*.rb
197
+ Performance/Count:
198
+ Description: Use `count` instead of `select...size`, `reject...size`, `select...count`,
199
+ `reject...count`, `select...length`, and `reject...length`.
200
+ Enabled: true
201
+ Performance/Detect:
202
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`,
203
+ and `find_all.last`.
204
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code
205
+ Enabled: true
206
+ Performance/FlatMap:
207
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)`
208
+ or `Enumberable#collect..Array#flatten(1)`
209
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
210
+ Enabled: true
211
+ EnabledForFlattenWithoutParams: false
212
+ Performance/ReverseEach:
213
+ Description: Use `reverse_each` instead of `reverse.each`.
214
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
215
+ Enabled: true
216
+ Performance/Sample:
217
+ Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
218
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
219
+ Enabled: true
220
+ Performance/Size:
221
+ Description: Use `size` instead of `count` for counting the number of elements in
222
+ `Array` and `Hash`.
223
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code
224
+ Enabled: true
225
+ Performance/StringReplacement:
226
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of
227
+ characters. Use `delete` instead of `gsub` when you are deleting characters.
228
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
229
+ Enabled: true
230
+ Rails/ActionFilter:
231
+ Description: Enforces consistent use of action filter methods.
232
+ Enabled: false
233
+ Rails/Date:
234
+ Description: Checks the correct usage of date aware methods, such as Date.today,
235
+ Date.current etc.
236
+ Enabled: true
237
+ Rails/Delegate:
238
+ Description: Prefer delegate method for delegations.
239
+ Enabled: true
240
+ Rails/FindBy:
241
+ Description: Prefer find_by over where.first.
242
+ Enabled: true
243
+ Rails/FindEach:
244
+ Description: Prefer all.find_each over all.find.
245
+ Enabled: true
246
+ Rails/HasAndBelongsToMany:
247
+ Description: Prefer has_many :through to has_and_belongs_to_many.
248
+ Enabled: true
249
+ Rails/Output:
250
+ Description: Checks for calls to puts, print, etc.
251
+ Enabled: true
252
+ Rails/ReadWriteAttribute:
253
+ Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
254
+ Enabled: false
255
+ Rails/ScopeArgs:
256
+ Description: Checks the arguments of ActiveRecord scopes.
257
+ Enabled: true
258
+ Rails/TimeZone:
259
+ Description: Checks the correct usage of time zone aware methods.
260
+ StyleGuide: https://github.com/bbatsov/rails-style-guide#time
261
+ Reference: http://danilenko.org/2012/7/6/rails_timezones
262
+ Enabled: true
263
+ Rails/Validation:
264
+ Description: Use validates :attribute, hash of validations.
265
+ Enabled: true
266
+ Layout/AccessModifierIndentation:
267
+ Description: Check indentation of private/protected visibility modifiers.
268
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
269
+ Enabled: false
270
+ Style/Alias:
271
+ Description: Use alias_method instead of alias.
272
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
273
+ Enabled: false
274
+ Layout/AlignArray:
275
+ Description: Align the elements of an array literal if they span more than one line.
276
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
277
+ Enabled: true
278
+ Layout/AlignHash:
279
+ Description: Align the elements of a hash literal if they span more than one line.
280
+ Enabled: true
281
+ Layout/AlignParameters:
282
+ Description: Align the parameters of a method call if they span more than one line.
283
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
284
+ Enabled: true
285
+ Style/AndOr:
286
+ Description: Use &&/|| instead of and/or.
287
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
288
+ Enabled: true
289
+ Style/ArrayJoin:
290
+ Description: Use Array#join instead of Array#*.
291
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
292
+ Enabled: false
293
+ Style/AsciiComments:
294
+ Description: Use only ascii symbols in comments.
295
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
296
+ Enabled: false
297
+ Naming/AsciiIdentifiers:
298
+ Description: Use only ascii symbols in identifiers.
299
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
300
+ Enabled: false
301
+ Style/Attr:
302
+ Description: Checks for uses of Module#attr.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
304
+ Enabled: true
305
+ Style/BeginBlock:
306
+ Description: Avoid the use of BEGIN blocks.
307
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
308
+ Enabled: true
309
+ Style/BarePercentLiterals:
310
+ Description: Checks if usage of %() or %Q() matches configuration.
311
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
312
+ Enabled: true
313
+ Style/BlockComments:
314
+ Description: Do not use block comments.
315
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
316
+ Enabled: false
317
+ Layout/BlockEndNewline:
318
+ Description: Put end statement of multiline block on its own line.
319
+ Enabled: true
320
+ Style/BlockDelimiters:
321
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always
322
+ ugly). Prefer {...} over do...end for single-line blocks.
323
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
324
+ Enabled: true
325
+ Style/BracesAroundHashParameters:
326
+ Description: Enforce braces style around hash parameters.
327
+ Enabled: false
328
+ Style/CaseEquality:
329
+ Description: Avoid explicit use of the case equality operator(===).
330
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
331
+ Enabled: false
332
+ Layout/CaseIndentation:
333
+ Description: Indentation of when in a case/when/[else/]end.
334
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
335
+ Enabled: true
336
+ Style/CharacterLiteral:
337
+ Description: Checks for uses of character literals.
338
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
339
+ Enabled: false
340
+ Naming/ClassAndModuleCamelCase:
341
+ Description: Use CamelCase for classes and modules.
342
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
343
+ Enabled: true
344
+ Style/ClassAndModuleChildren:
345
+ Description: Checks style of children classes and modules.
346
+ Enabled: false
347
+ Style/ClassCheck:
348
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
349
+ Enabled: true
350
+ Style/ClassMethods:
351
+ Description: Use self when defining module/class methods.
352
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-class-methods
353
+ Enabled: false
354
+ Style/ClassVars:
355
+ Description: Avoid the use of class variables.
356
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
357
+ Enabled: false
358
+ Layout/ClosingParenthesisIndentation:
359
+ Description: Checks the indentation of hanging closing parentheses.
360
+ Enabled: false
361
+ Style/ColonMethodCall:
362
+ Description: 'Do not use :: for method call.'
363
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
364
+ Enabled: true
365
+ Style/CommandLiteral:
366
+ Description: Use `` or %x around command literals.
367
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
368
+ Enabled: false
369
+ Style/CommentAnnotation:
370
+ Description: Checks formatting of annotation comments.
371
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
372
+ Enabled: false
373
+ Layout/CommentIndentation:
374
+ Description: Indentation of comments.
375
+ Enabled: false
376
+ Naming/ConstantName:
377
+ Description: Constants should use SCREAMING_SNAKE_CASE.
378
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
379
+ Enabled: true
380
+ Style/DefWithParentheses:
381
+ Description: Use def with parentheses when there are arguments.
382
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
383
+ Enabled: true
384
+ Style/Documentation:
385
+ Description: Document classes and non-namespace modules.
386
+ Enabled: false
387
+ Layout/DotPosition:
388
+ Description: Checks the position of the dot in multi-line method calls.
389
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
390
+ Enabled: true
391
+ Style/DoubleNegation:
392
+ Description: Checks for uses of double negation (!!).
393
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
394
+ Enabled: true
395
+ Style/EachWithObject:
396
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
397
+ Enabled: false
398
+ Layout/ElseAlignment:
399
+ Description: Align elses and elsifs correctly.
400
+ Enabled: true
401
+ Style/EmptyElse:
402
+ Description: Avoid empty else-clauses.
403
+ Enabled: true
404
+ Layout/EmptyLineBetweenDefs:
405
+ Description: Use empty lines between defs.
406
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
407
+ Enabled: true
408
+ Layout/EmptyLines:
409
+ Description: Don't use several empty lines in a row.
410
+ Enabled: true
411
+ Layout/EmptyLinesAroundAccessModifier:
412
+ Description: Keep blank lines around access modifiers.
413
+ Enabled: false
414
+ Layout/EmptyLinesAroundBlockBody:
415
+ Description: Keeps track of empty lines around block bodies.
416
+ Enabled: false
417
+ Layout/EmptyLinesAroundClassBody:
418
+ Description: Keeps track of empty lines around class bodies.
419
+ Enabled: false
420
+ Layout/EmptyLinesAroundModuleBody:
421
+ Description: Keeps track of empty lines around module bodies.
422
+ Enabled: false
423
+ Layout/EmptyLinesAroundMethodBody:
424
+ Description: Keeps track of empty lines around method bodies.
425
+ Enabled: false
426
+ Style/EmptyLiteral:
427
+ Description: Prefer literals to Array.new/Hash.new/String.new.
428
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
429
+ Enabled: false
430
+ Style/EndBlock:
431
+ Description: Avoid the use of END blocks.
432
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
433
+ Enabled: false
434
+ Layout/EndOfLine:
435
+ Description: Use Unix-style line endings.
436
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
437
+ Enabled: false
438
+ Style/EvenOdd:
439
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
440
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
441
+ Enabled: true
442
+ Layout/ExtraSpacing:
443
+ Description: Do not use unnecessary spacing.
444
+ Enabled: true
445
+ Naming/FileName:
446
+ Description: Use snake_case for source file names.
447
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
448
+ Enabled: true
449
+ Layout/InitialIndentation:
450
+ Description: Checks the indentation of the first non-blank non-comment line in a
451
+ file.
452
+ Enabled: false
453
+ Layout/FirstParameterIndentation:
454
+ Description: Checks the indentation of the first parameter in a method call.
455
+ Enabled: false
456
+ Style/FlipFlop:
457
+ Description: Checks for flip flops
458
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
459
+ Enabled: true
460
+ Style/For:
461
+ Description: Checks use of for or each in multiline loops.
462
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
463
+ Enabled: true
464
+ Style/FormatString:
465
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
466
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
467
+ Enabled: false
468
+ Style/GlobalVars:
469
+ Description: Do not introduce global variables.
470
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
471
+ Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
472
+ Enabled: true
473
+ Style/GuardClause:
474
+ Description: Check for conditionals that can be replaced with guard clauses
475
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
476
+ Enabled: true
477
+ Style/HashSyntax:
478
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
479
+ 1, :b => 2 }.'
480
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
481
+ Enabled: true
482
+ Style/IfUnlessModifier:
483
+ Description: Favor modifier if/unless usage when you have a single-line body.
484
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
485
+ Enabled: true
486
+ Style/IfWithSemicolon:
487
+ Description: Do not use if x; .... Use the ternary operator instead.
488
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
489
+ Enabled: true
490
+ Layout/IndentationConsistency:
491
+ Description: Keep indentation straight.
492
+ Enabled: false
493
+ Layout/IndentationWidth:
494
+ Description: Use 2 spaces for indentation.
495
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
496
+ Enabled: true
497
+ Layout/IndentArray:
498
+ Description: Checks the indentation of the first element in an array literal.
499
+ Enabled: false
500
+ Layout/IndentHash:
501
+ Description: Checks the indentation of the first key in a hash literal.
502
+ Enabled: false
503
+ Style/InfiniteLoop:
504
+ Description: Use Kernel#loop for infinite loops.
505
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
506
+ Enabled: true
507
+ Style/Lambda:
508
+ Description: Use the new lambda literal syntax for single-line blocks.
509
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
510
+ Enabled: true
511
+ Style/LambdaCall:
512
+ Description: Use lambda.call(...) instead of lambda.(...).
513
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
514
+ Enabled: false
515
+ Layout/LeadingCommentSpace:
516
+ Description: Comments should start with a space.
517
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
518
+ Enabled: true
519
+ Style/LineEndConcatenation:
520
+ Description: Use \ instead of + or << to concatenate two string literals at line
521
+ end.
522
+ Enabled: true
523
+ Style/MethodCallWithoutArgsParentheses:
524
+ Description: Do not use parentheses for method calls with no arguments.
525
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
526
+ Enabled: true
527
+ Style/MethodDefParentheses:
528
+ Description: Checks if the method definitions have or don't have parentheses.
529
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
530
+ Enabled: true
531
+ Naming/MethodName:
532
+ Description: Use the configured style when naming methods.
533
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
534
+ Enabled: false
535
+ Style/ModuleFunction:
536
+ Description: Checks for usage of `extend self` in modules.
537
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
538
+ Enabled: true
539
+ Style/MultilineBlockChain:
540
+ Description: Avoid multi-line chains of blocks.
541
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
542
+ Enabled: false
543
+ Layout/MultilineBlockLayout:
544
+ Description: Ensures newlines after multiline block do statements.
545
+ Enabled: true
546
+ Style/MultilineIfThen:
547
+ Description: Do not use then for multi-line if/unless.
548
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
549
+ Enabled: true
550
+ Layout/MultilineOperationIndentation:
551
+ Description: Checks indentation of binary operations that span more than one line.
552
+ Enabled: false
553
+ Style/MultilineTernaryOperator:
554
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
555
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
556
+ Enabled: true
557
+ Style/NegatedIf:
558
+ Description: Favor unless over if for negative conditions (or control flow or).
559
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
560
+ Enabled: true
561
+ Style/NegatedWhile:
562
+ Description: Favor until over while for negative conditions.
563
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
564
+ Enabled: true
565
+ Style/NestedTernaryOperator:
566
+ Description: Use one expression per branch in a ternary operator.
567
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
568
+ Enabled: true
569
+ Style/Next:
570
+ Description: Use `next` to skip iteration instead of a condition at the end.
571
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
572
+ Enabled: true
573
+ Style/NilComparison:
574
+ Description: Prefer x.nil? to x == nil.
575
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
576
+ Enabled: true
577
+ Style/NonNilCheck:
578
+ Description: Checks for redundant nil checks.
579
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
580
+ Enabled: true
581
+ Style/Not:
582
+ Description: Use ! instead of not.
583
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
584
+ Enabled: true
585
+ Style/NumericLiterals:
586
+ Description: Add underscores to large numeric literals to improve their readability.
587
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
588
+ Enabled: true
589
+ Style/OneLineConditional:
590
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
591
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
592
+ Enabled: false
593
+ Naming/BinaryOperatorParameterName:
594
+ Description: When defining binary operators, name the argument other.
595
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
596
+ Enabled: false
597
+ Style/OptionalArguments:
598
+ Description: Checks for optional arguments that do not appear at the end of the
599
+ argument list
600
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#optional-arguments
601
+ Enabled: false
602
+ Style/ParallelAssignment:
603
+ Description: Check for simple usages of parallel assignment. It will only warn when
604
+ the number of variables matches on both sides of the assignment. This also provides
605
+ performance benefits
606
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parallel-assignment
607
+ Enabled: false
608
+ Style/ParenthesesAroundCondition:
609
+ Description: Don't use parentheses around the condition of an if/unless/while.
610
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
611
+ Enabled: true
612
+ Style/PercentLiteralDelimiters:
613
+ Description: Use `%`-literal delimiters consistently
614
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
615
+ Enabled: true
616
+ PreferredDelimiters:
617
+ default: ()
618
+ '%i': '()'
619
+ '%I': '()'
620
+ '%r': '{}'
621
+ '%w': '()'
622
+ '%W': '()'
623
+ Style/PercentQLiterals:
624
+ Description: Checks if uses of %Q/%q match the configured preference.
625
+ Enabled: true
626
+ Style/PerlBackrefs:
627
+ Description: Avoid Perl-style regex back references.
628
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
629
+ Enabled: false
630
+ Naming/PredicateName:
631
+ Description: Check the names of predicate methods.
632
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
633
+ Enabled: true
634
+ Style/Proc:
635
+ Description: Use proc instead of Proc.new.
636
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
637
+ Enabled: true
638
+ Style/RaiseArgs:
639
+ Description: Checks the arguments passed to raise/fail.
640
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
641
+ Enabled: false
642
+ Style/RedundantBegin:
643
+ Description: Don't use begin blocks when they are not needed.
644
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
645
+ Enabled: true
646
+ Style/RedundantException:
647
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
648
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
649
+ Enabled: true
650
+ Style/RedundantReturn:
651
+ Description: Don't use return where it's not required.
652
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
653
+ Enabled: true
654
+ Style/RedundantSelf:
655
+ Description: Don't use self where it's not needed.
656
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
657
+ Enabled: true
658
+ Style/RegexpLiteral:
659
+ Description: Use / or %r around regular expressions.
660
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
661
+ Enabled: false
662
+ Layout/RescueEnsureAlignment:
663
+ Description: Align rescues and ensures correctly.
664
+ Enabled: false
665
+ Style/RescueModifier:
666
+ Description: Avoid using rescue in its modifier form.
667
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
668
+ Enabled: false
669
+ Style/SelfAssignment:
670
+ Description: Checks for places where self-assignment shorthand should have been
671
+ used.
672
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
673
+ Enabled: true
674
+ Style/Semicolon:
675
+ Description: Don't use semicolons to terminate expressions.
676
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
677
+ Enabled: true
678
+ Style/SignalException:
679
+ Description: Checks for proper usage of fail and raise.
680
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
681
+ Enabled: true
682
+ Style/SingleLineBlockParams:
683
+ Description: Enforces the names of some block params.
684
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
685
+ Enabled: true
686
+ Style/SingleLineMethods:
687
+ Description: Avoid single-line methods.
688
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
689
+ Enabled: false
690
+ Layout/SpaceBeforeFirstArg:
691
+ Description: Checks that exactly one space is used between a method name and the
692
+ first argument for method calls without parentheses.
693
+ Enabled: true
694
+ Layout/SpaceAfterColon:
695
+ Description: Use spaces after colons.
696
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
697
+ Enabled: true
698
+ Layout/SpaceAfterComma:
699
+ Description: Use spaces after commas.
700
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
701
+ Enabled: true
702
+ Layout/SpaceAroundKeyword:
703
+ Description: Use spaces around keywords.
704
+ Enabled: true
705
+ Layout/SpaceAfterMethodName:
706
+ Description: Do not put a space between a method name and the opening parenthesis
707
+ in a method definition.
708
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
709
+ Enabled: true
710
+ Layout/SpaceAfterNot:
711
+ Description: Tracks redundant space after the ! operator.
712
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
713
+ Enabled: false
714
+ Layout/SpaceAfterSemicolon:
715
+ Description: Use spaces after semicolons.
716
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
717
+ Enabled: true
718
+ Layout/SpaceBeforeBlockBraces:
719
+ Description: Checks that the left block brace has or doesn't have space before it.
720
+ Enabled: false
721
+ Layout/SpaceBeforeComma:
722
+ Description: No spaces before commas.
723
+ Enabled: false
724
+ Layout/SpaceBeforeComment:
725
+ Description: Checks for missing space between code and a comment on the same line.
726
+ Enabled: false
727
+ Layout/SpaceBeforeSemicolon:
728
+ Description: No spaces before semicolons.
729
+ Enabled: false
730
+ Layout/SpaceInsideBlockBraces:
731
+ Description: Checks that block braces have or don't have surrounding space. For
732
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
733
+ space.
734
+ Enabled: false
735
+ Layout/SpaceAroundBlockParameters:
736
+ Description: Checks the spacing inside and after block parameters pipes.
737
+ Enabled: true
738
+ Layout/SpaceAroundEqualsInParameterDefault:
739
+ Description: Checks that the equals signs in parameter default assignments have
740
+ or don't have surrounding space depending on configuration.
741
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
742
+ Enabled: true
743
+ Layout/SpaceAroundOperators:
744
+ Description: Use a single space around operators.
745
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
746
+ Enabled: true
747
+ Layout/SpaceInsideBrackets:
748
+ Description: No spaces after [ or before ].
749
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
750
+ Enabled: false
751
+ Layout/SpaceInsideHashLiteralBraces:
752
+ Description: Use spaces inside hash literal braces - or don't.
753
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
754
+ Enabled: true
755
+ Layout/SpaceInsideParens:
756
+ Description: No spaces after ( or before ).
757
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
758
+ Enabled: true
759
+ Layout/SpaceInsideRangeLiteral:
760
+ Description: No spaces inside range literals.
761
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
762
+ Enabled: true
763
+ Layout/SpaceInsideStringInterpolation:
764
+ Description: Checks for padding/surrounding spaces inside string interpolation.
765
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#string-interpolation
766
+ Enabled: false
767
+ Style/SpecialGlobalVars:
768
+ Description: Avoid Perl-style global variables.
769
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
770
+ Enabled: false
771
+ Style/StringLiterals:
772
+ Description: Checks if uses of quotes match the configured preference.
773
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
774
+ EnforcedStyle: double_quotes
775
+ Enabled: false
776
+ Style/StringLiteralsInInterpolation:
777
+ Description: Checks if uses of quotes inside expressions in interpolated strings
778
+ match the configured preference.
779
+ Enabled: true
780
+ Style/StructInheritance:
781
+ Description: Checks for inheritance from Struct.new.
782
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
783
+ Enabled: false
784
+ Style/SymbolLiteral:
785
+ Description: Use plain symbols instead of string symbols when possible.
786
+ Enabled: false
787
+ Style/SymbolProc:
788
+ Description: Use symbols as procs instead of blocks when possible.
789
+ Enabled: false
790
+ Layout/Tab:
791
+ Description: No hard tabs.
792
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
793
+ Enabled: false
11
794
  Layout/TrailingBlankLines:
795
+ Description: Checks trailing blank lines and final newline.
796
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
797
+ Enabled: false
798
+ Style/TrailingCommaInArguments:
799
+ Description: Checks for trailing comma in parameter lists.
800
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma
801
+ Enabled: false
802
+ Style/TrailingCommaInLiteral:
803
+ Description: Checks for trailing comma in literals.
804
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
805
+ Enabled: false
806
+ Layout/TrailingWhitespace:
807
+ Description: Avoid trailing whitespace.
808
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
809
+ Enabled: false
810
+ Style/TrivialAccessors:
811
+ Description: Prefer attr_* methods to trivial readers/writers.
812
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
813
+ Enabled: false
814
+ Style/UnlessElse:
815
+ Description: Do not use unless with else. Rewrite these with the positive case first.
816
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
817
+ Enabled: true
818
+ Style/UnneededCapitalW:
819
+ Description: Checks for %W when interpolation is not needed.
820
+ Enabled: false
821
+ Style/UnneededPercentQ:
822
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
823
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
824
+ Enabled: false
825
+ Style/TrailingUnderscoreVariable:
826
+ Description: Checks for the usage of unneeded trailing underscores at the end of
827
+ parallel variable assignment.
12
828
  Enabled: false
13
- Rails:
829
+ Style/VariableInterpolation:
830
+ Description: Don't interpolate global, instance and class variables directly in
831
+ strings.
832
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
833
+ Enabled: true
834
+ Naming/VariableName:
835
+ Description: Use the configured style when naming variables.
836
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
837
+ Enabled: true
838
+ Style/WhenThen:
839
+ Description: Use when x then ... for one-line cases.
840
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
841
+ Enabled: true
842
+ Style/WhileUntilDo:
843
+ Description: Checks for redundant do after while or until.
844
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
845
+ Enabled: true
846
+ Style/WhileUntilModifier:
847
+ Description: Favor modifier while/until usage when you have a single-line body.
848
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
849
+ Enabled: true
850
+ Style/MutableConstant:
851
+ Enabled: true
852
+ Style/WordArray:
853
+ Description: Use %w or %W for arrays of words.
854
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
855
+ Enabled: true
856
+ Style/EmptyMethod:
14
857
  Enabled: false
15
-
858
+ Security/Eval:
859
+ Description: The use of eval represents a serious security risk.
860
+ Enabled: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_default_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thai Huynh
@@ -59,6 +59,7 @@ executables:
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - README.md
62
63
  - bin/rubocop_config
63
64
  - lib/.rubocop_popular_config.yml
64
65
  - lib/rubocop_config.rb