sprawl 0.1.0

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