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