satchel-ruby-styleguides 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/default.yml +153 -153
- data/lib/satchel/styleguides/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a4da10d3cf4d9abe42d5b3ff91b00df4dd747cf
|
4
|
+
data.tar.gz: 3a0f704790609105eaffafa4622377c6fb87d673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc2913476fd7ad6a2f75c62b71b915a325170d1543ab625889157d7e48e5d95bb1ceb28842712cc024cee6e7530bcd2376ec613f3e339ec6bcaf4c91ad90633d
|
7
|
+
data.tar.gz: dcab122c54ecf6ff23810e748bab49f27f6590e31d45afa4243aa244b1045035c05753fd24fb63c08341d7675bb32dc26dd0eb0dc1288e4c4ce79a1a5e40e25c
|
data/default.yml
CHANGED
@@ -372,86 +372,86 @@ Security/Eval:
|
|
372
372
|
|
373
373
|
################## Style #################################
|
374
374
|
|
375
|
-
|
375
|
+
Naming/BinaryOperatorParameterName/AccessModifierIndentation:
|
376
376
|
Description: Check indentation of private/protected visibility modifiers.
|
377
377
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
|
378
378
|
Enabled: true
|
379
379
|
|
380
|
-
|
380
|
+
Naming/BinaryOperatorParameterName/AccessorMethodName:
|
381
381
|
Description: Check the naming of accessor methods for get_/set_.
|
382
382
|
Enabled: true
|
383
383
|
|
384
|
-
|
384
|
+
Naming/BinaryOperatorParameterName/Alias:
|
385
385
|
Description: 'Use alias_method instead of alias.'
|
386
386
|
EnforcedStyle: prefer_alias_method
|
387
387
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
388
388
|
Enabled: true
|
389
389
|
|
390
|
-
|
390
|
+
Naming/BinaryOperatorParameterName/AlignArray:
|
391
391
|
Description: >-
|
392
392
|
Align the elements of an array literal if they span more than
|
393
393
|
one line.
|
394
394
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
395
395
|
Enabled: true
|
396
396
|
|
397
|
-
|
397
|
+
Naming/BinaryOperatorParameterName/AlignHash:
|
398
398
|
Description: >-
|
399
399
|
Align the elements of a hash literal if they span more than
|
400
400
|
one line.
|
401
401
|
Enabled: true
|
402
402
|
|
403
|
-
|
403
|
+
Naming/BinaryOperatorParameterName/AlignParameters:
|
404
404
|
Description: >-
|
405
405
|
Align the parameters of a method call if they span more
|
406
406
|
than one line.
|
407
407
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
|
408
408
|
Enabled: false
|
409
409
|
|
410
|
-
|
410
|
+
Naming/BinaryOperatorParameterName/AndOr:
|
411
411
|
Description: 'Use &&/|| instead of and/or.'
|
412
412
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
|
413
413
|
Enabled: true
|
414
414
|
|
415
|
-
|
415
|
+
Naming/BinaryOperatorParameterName/ArrayJoin:
|
416
416
|
Description: 'Use Array#join instead of Array#*.'
|
417
417
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
|
418
418
|
Enabled: true
|
419
419
|
|
420
|
-
|
420
|
+
Naming/BinaryOperatorParameterName/AsciiComments:
|
421
421
|
Description: 'Use only ascii symbols in comments.'
|
422
422
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
423
423
|
Enabled: false
|
424
424
|
|
425
|
-
|
425
|
+
Naming/BinaryOperatorParameterName/AsciiIdentifiers:
|
426
426
|
Description: 'Use only ascii symbols in identifiers.'
|
427
427
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
428
428
|
Enabled: false
|
429
429
|
|
430
|
-
|
430
|
+
Naming/BinaryOperatorParameterName/Attr:
|
431
431
|
Description: 'Checks for uses of Module#attr.'
|
432
432
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
|
433
433
|
Enabled: true
|
434
434
|
|
435
|
-
|
435
|
+
Naming/BinaryOperatorParameterName/BeginBlock:
|
436
436
|
Description: 'Avoid the use of BEGIN blocks.'
|
437
437
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
|
438
438
|
Enabled: true
|
439
439
|
|
440
|
-
|
440
|
+
Naming/BinaryOperatorParameterName/BarePercentLiterals:
|
441
441
|
Description: 'Checks if usage of %() or %Q() matches configuration.'
|
442
442
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
|
443
443
|
Enabled: false
|
444
444
|
|
445
|
-
|
445
|
+
Naming/BinaryOperatorParameterName/BlockComments:
|
446
446
|
Description: 'Do not use block comments.'
|
447
447
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
|
448
448
|
Enabled: false
|
449
449
|
|
450
|
-
|
450
|
+
Naming/BinaryOperatorParameterName/BlockEndNewline:
|
451
451
|
Description: 'Put end statement of multiline block on its own line.'
|
452
452
|
Enabled: true
|
453
453
|
|
454
|
-
|
454
|
+
Naming/BinaryOperatorParameterName/BlockDelimiters:
|
455
455
|
Description: >-
|
456
456
|
Avoid using {...} for multi-line blocks (multiline chaining is
|
457
457
|
always ugly).
|
@@ -459,379 +459,379 @@ Style/BlockDelimiters:
|
|
459
459
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
460
460
|
Enabled: true
|
461
461
|
|
462
|
-
|
462
|
+
Naming/BinaryOperatorParameterName/BracesAroundHashParameters:
|
463
463
|
Description: 'Enforce braces style around hash parameters.'
|
464
464
|
Enabled: false
|
465
465
|
|
466
|
-
|
466
|
+
Naming/BinaryOperatorParameterName/CaseEquality:
|
467
467
|
Description: 'Avoid explicit use of the case equality operator(===).'
|
468
468
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
469
469
|
Enabled: false
|
470
470
|
|
471
|
-
|
471
|
+
Naming/BinaryOperatorParameterName/CaseIndentation:
|
472
472
|
Description: 'Indentation of when in a case/when/[else/]end.'
|
473
473
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
|
474
474
|
Enabled: true
|
475
475
|
|
476
|
-
|
476
|
+
Naming/BinaryOperatorParameterName/CharacterLiteral:
|
477
477
|
Description: 'Checks for uses of character literals.'
|
478
478
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
479
479
|
Enabled: false
|
480
480
|
|
481
|
-
|
481
|
+
Naming/BinaryOperatorParameterName/ClassAndModuleCamelCase:
|
482
482
|
Description: 'Use CamelCase for classes and modules.'
|
483
483
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
484
484
|
Enabled: true
|
485
485
|
|
486
|
-
|
486
|
+
Naming/BinaryOperatorParameterName/ClassAndModuleChildren:
|
487
487
|
Description: 'Checks style of children classes and modules.'
|
488
488
|
Enabled: false
|
489
489
|
|
490
|
-
|
490
|
+
Naming/BinaryOperatorParameterName/ClassCheck:
|
491
491
|
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
492
492
|
Enabled: false
|
493
493
|
|
494
|
-
|
494
|
+
Naming/BinaryOperatorParameterName/ClassMethods:
|
495
495
|
Description: 'Use self when defining module/class methods.'
|
496
496
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
|
497
497
|
Enabled: false
|
498
498
|
|
499
|
-
|
499
|
+
Naming/BinaryOperatorParameterName/ClassVars:
|
500
500
|
Description: 'Avoid the use of class variables.'
|
501
501
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
|
502
502
|
Enabled: false
|
503
503
|
|
504
|
-
|
504
|
+
Naming/BinaryOperatorParameterName/ClosingParenthesisIndentation:
|
505
505
|
Description: 'Checks the indentation of hanging closing parentheses.'
|
506
506
|
Enabled: true
|
507
507
|
|
508
|
-
|
508
|
+
Naming/BinaryOperatorParameterName/ColonMethodCall:
|
509
509
|
Description: 'Do not use :: for method call.'
|
510
510
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
511
511
|
Enabled: false
|
512
512
|
|
513
|
-
|
513
|
+
Naming/BinaryOperatorParameterName/CommandLiteral:
|
514
514
|
Description: 'Use `` or %x around command literals.'
|
515
515
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
|
516
516
|
Enabled: false
|
517
517
|
|
518
|
-
|
518
|
+
Naming/BinaryOperatorParameterName/CommentAnnotation:
|
519
519
|
Description: 'Checks formatting of annotation comments.'
|
520
520
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
|
521
521
|
Enabled: false
|
522
522
|
|
523
|
-
|
523
|
+
Naming/BinaryOperatorParameterName/CommentIndentation:
|
524
524
|
Description: 'Indentation of comments.'
|
525
525
|
Enabled: false
|
526
526
|
|
527
|
-
|
527
|
+
Naming/BinaryOperatorParameterName/ConstantName:
|
528
528
|
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
529
529
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
530
530
|
Enabled: true
|
531
531
|
|
532
|
-
|
532
|
+
Naming/BinaryOperatorParameterName/DefWithParentheses:
|
533
533
|
Description: 'Use def with parentheses when there are arguments.'
|
534
534
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
535
535
|
Enabled: true
|
536
536
|
|
537
|
-
|
537
|
+
Naming/BinaryOperatorParameterName/Documentation:
|
538
538
|
Description: 'Document classes and non-namespace modules.'
|
539
539
|
Enabled: false
|
540
540
|
|
541
|
-
|
541
|
+
Naming/BinaryOperatorParameterName/DotPosition:
|
542
542
|
Description: 'Checks the position of the dot in multi-line method calls.'
|
543
543
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
544
544
|
EnforcedStyle: trailing
|
545
545
|
Enabled: true
|
546
546
|
|
547
|
-
|
547
|
+
Naming/BinaryOperatorParameterName/DoubleNegation:
|
548
548
|
Description: 'Checks for uses of double negation (!!).'
|
549
549
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
|
550
550
|
Enabled: true
|
551
551
|
|
552
|
-
|
552
|
+
Naming/BinaryOperatorParameterName/EachWithObject:
|
553
553
|
Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
|
554
554
|
Enabled: false
|
555
555
|
|
556
|
-
|
556
|
+
Naming/BinaryOperatorParameterName/ElseAlignment:
|
557
557
|
Description: 'Align elses and elsifs correctly.'
|
558
558
|
Enabled: true
|
559
559
|
|
560
|
-
|
560
|
+
Naming/BinaryOperatorParameterName/EmptyElse:
|
561
561
|
Description: 'Avoid empty else-clauses.'
|
562
562
|
Enabled: false
|
563
563
|
|
564
|
-
|
564
|
+
Naming/BinaryOperatorParameterName/EmptyLineBetweenDefs:
|
565
565
|
Description: 'Use empty lines between defs.'
|
566
566
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
567
567
|
Enabled: true
|
568
568
|
|
569
|
-
|
569
|
+
Naming/BinaryOperatorParameterName/EmptyLines:
|
570
570
|
Description: "Don't use several empty lines in a row."
|
571
571
|
Enabled: true
|
572
572
|
|
573
|
-
|
573
|
+
Naming/BinaryOperatorParameterName/EmptyLinesAroundAccessModifier:
|
574
574
|
Description: "Keep blank lines around access modifiers."
|
575
575
|
Enabled: true
|
576
576
|
|
577
|
-
|
577
|
+
Naming/BinaryOperatorParameterName/EmptyLinesAroundBlockBody:
|
578
578
|
Description: "Keeps track of empty lines around block bodies."
|
579
579
|
Enabled: false
|
580
580
|
|
581
|
-
|
581
|
+
Naming/BinaryOperatorParameterName/EmptyLinesAroundClassBody:
|
582
582
|
Description: "Keeps track of empty lines around class bodies."
|
583
583
|
Enabled: false
|
584
584
|
|
585
|
-
|
585
|
+
Naming/BinaryOperatorParameterName/EmptyLinesAroundModuleBody:
|
586
586
|
Description: "Keeps track of empty lines around module bodies."
|
587
587
|
Enabled: false
|
588
588
|
|
589
|
-
|
589
|
+
Naming/BinaryOperatorParameterName/EmptyLinesAroundMethodBody:
|
590
590
|
Description: "Keeps track of empty lines around method bodies."
|
591
591
|
Enabled: false
|
592
592
|
|
593
|
-
|
593
|
+
Naming/BinaryOperatorParameterName/EmptyLiteral:
|
594
594
|
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
|
595
595
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
|
596
596
|
Enabled: true
|
597
597
|
|
598
|
-
|
598
|
+
Naming/BinaryOperatorParameterName/EndBlock:
|
599
599
|
Description: 'Avoid the use of END blocks.'
|
600
600
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
601
601
|
Enabled: true
|
602
602
|
|
603
|
-
|
603
|
+
Naming/BinaryOperatorParameterName/EndOfLine:
|
604
604
|
Description: 'Use Unix-style line endings.'
|
605
605
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
606
606
|
Enabled: true
|
607
607
|
|
608
|
-
|
608
|
+
Naming/BinaryOperatorParameterName/EvenOdd:
|
609
609
|
Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
|
610
610
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
611
611
|
Enabled: true
|
612
612
|
|
613
|
-
|
613
|
+
Naming/BinaryOperatorParameterName/ExtraSpacing:
|
614
614
|
Description: 'Do not use unnecessary spacing.'
|
615
615
|
Enabled: true
|
616
616
|
|
617
|
-
|
617
|
+
Naming/BinaryOperatorParameterName/FileName:
|
618
618
|
Description: 'Use snake_case for source file names.'
|
619
619
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
620
620
|
Enabled: true
|
621
621
|
|
622
|
-
|
622
|
+
Naming/BinaryOperatorParameterName/InitialIndentation:
|
623
623
|
Description: >-
|
624
624
|
Checks the indentation of the first non-blank non-comment line in a file.
|
625
625
|
Enabled: false
|
626
626
|
|
627
|
-
|
627
|
+
Naming/BinaryOperatorParameterName/FirstParameterIndentation:
|
628
628
|
Description: 'Checks the indentation of the first parameter in a method call.'
|
629
629
|
Enabled: true
|
630
630
|
|
631
|
-
|
631
|
+
Naming/BinaryOperatorParameterName/FlipFlop:
|
632
632
|
Description: 'Checks for flip flops'
|
633
633
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
|
634
634
|
Enabled: false
|
635
635
|
|
636
|
-
|
636
|
+
Naming/BinaryOperatorParameterName/For:
|
637
637
|
Description: 'Checks use of for or each in multiline loops.'
|
638
638
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
|
639
639
|
Enabled: true
|
640
640
|
|
641
|
-
|
641
|
+
Naming/BinaryOperatorParameterName/FormatString:
|
642
642
|
Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
|
643
643
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
|
644
644
|
Enabled: false
|
645
645
|
|
646
|
-
|
646
|
+
Naming/BinaryOperatorParameterName/GlobalVars:
|
647
647
|
Description: 'Do not introduce global variables.'
|
648
648
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
649
649
|
Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
|
650
650
|
Enabled: false
|
651
651
|
|
652
|
-
|
652
|
+
Naming/BinaryOperatorParameterName/GuardClause:
|
653
653
|
Description: 'Check for conditionals that can be replaced with guard clauses'
|
654
654
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
655
655
|
Enabled: true
|
656
656
|
|
657
|
-
|
657
|
+
Naming/BinaryOperatorParameterName/HashSyntax:
|
658
658
|
Description: >-
|
659
659
|
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
660
660
|
{ :a => 1, :b => 2 }.
|
661
661
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
|
662
662
|
Enabled: true
|
663
663
|
|
664
|
-
|
664
|
+
Naming/BinaryOperatorParameterName/IfUnlessModifier:
|
665
665
|
Description: >-
|
666
666
|
Favor modifier if/unless usage when you have a
|
667
667
|
single-line body.
|
668
668
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
|
669
669
|
Enabled: true
|
670
670
|
|
671
|
-
|
671
|
+
Naming/BinaryOperatorParameterName/IfWithSemicolon:
|
672
672
|
Description: 'Do not use if x; .... Use the ternary operator instead.'
|
673
673
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
|
674
674
|
Enabled: true
|
675
675
|
|
676
|
-
|
676
|
+
Naming/BinaryOperatorParameterName/IndentationConsistency:
|
677
677
|
Description: 'Keep indentation straight.'
|
678
678
|
Enabled: true
|
679
679
|
|
680
|
-
|
680
|
+
Naming/BinaryOperatorParameterName/IndentationWidth:
|
681
681
|
Description: 'Use 2 spaces for indentation.'
|
682
682
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
683
683
|
Enabled: true
|
684
684
|
|
685
|
-
|
685
|
+
Naming/BinaryOperatorParameterName/IndentArray:
|
686
686
|
Description: >-
|
687
687
|
Checks the indentation of the first element in an array
|
688
688
|
literal.
|
689
689
|
Enabled: false
|
690
690
|
|
691
|
-
|
691
|
+
Naming/BinaryOperatorParameterName/IndentHash:
|
692
692
|
Description: 'Checks the indentation of the first key in a hash literal.'
|
693
693
|
Enabled: true
|
694
694
|
|
695
|
-
|
695
|
+
Naming/BinaryOperatorParameterName/InfiniteLoop:
|
696
696
|
Description: 'Use Kernel#loop for infinite loops.'
|
697
697
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
|
698
698
|
Enabled: false
|
699
699
|
|
700
|
-
|
700
|
+
Naming/BinaryOperatorParameterName/Lambda:
|
701
701
|
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
702
702
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
|
703
703
|
Enabled: true
|
704
704
|
|
705
|
-
|
705
|
+
Naming/BinaryOperatorParameterName/LambdaCall:
|
706
706
|
Description: 'Use lambda.call(...) instead of lambda.(...).'
|
707
707
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
|
708
708
|
Enabled: true
|
709
709
|
|
710
|
-
|
710
|
+
Naming/BinaryOperatorParameterName/LeadingCommentSpace:
|
711
711
|
Description: 'Comments should start with a space.'
|
712
712
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
713
713
|
Enabled: true
|
714
714
|
|
715
|
-
|
715
|
+
Naming/BinaryOperatorParameterName/LineEndConcatenation:
|
716
716
|
Description: >-
|
717
717
|
Use \ instead of + or << to concatenate two string literals at
|
718
718
|
line end.
|
719
719
|
Enabled: true
|
720
720
|
|
721
|
-
|
721
|
+
Naming/BinaryOperatorParameterName/MethodCallWithoutArgsParentheses:
|
722
722
|
Description: 'Do not use parentheses for method calls with no arguments.'
|
723
723
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
724
724
|
Enabled: true
|
725
725
|
|
726
|
-
|
726
|
+
Naming/BinaryOperatorParameterName/MethodDefParentheses:
|
727
727
|
Description: >-
|
728
728
|
Checks if the method definitions have or don't have
|
729
729
|
parentheses.
|
730
730
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
731
731
|
Enabled: true
|
732
732
|
|
733
|
-
|
733
|
+
Naming/BinaryOperatorParameterName/MethodName:
|
734
734
|
Description: 'Use the configured style when naming methods.'
|
735
735
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
736
736
|
Enabled: true
|
737
737
|
|
738
|
-
|
738
|
+
Naming/BinaryOperatorParameterName/ModuleFunction:
|
739
739
|
Description: 'Checks for usage of `extend self` in modules.'
|
740
740
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
|
741
741
|
Enabled: false
|
742
742
|
|
743
|
-
|
743
|
+
Naming/BinaryOperatorParameterName/MultilineBlockChain:
|
744
744
|
Description: 'Avoid multi-line chains of blocks.'
|
745
745
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
746
746
|
Enabled: true
|
747
747
|
|
748
|
-
|
748
|
+
Naming/BinaryOperatorParameterName/MultilineBlockLayout:
|
749
749
|
Description: 'Ensures newlines after multiline block do statements.'
|
750
750
|
Enabled: false
|
751
751
|
|
752
|
-
|
752
|
+
Naming/BinaryOperatorParameterName/MultilineIfThen:
|
753
753
|
Description: 'Do not use then for multi-line if/unless.'
|
754
754
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
|
755
755
|
Enabled: true
|
756
756
|
|
757
|
-
|
757
|
+
Naming/BinaryOperatorParameterName/MultilineOperationIndentation:
|
758
758
|
Description: >-
|
759
759
|
Checks indentation of binary operations that span more than
|
760
760
|
one line.
|
761
761
|
Enabled: true
|
762
762
|
EnforcedStyle: indented
|
763
763
|
|
764
|
-
|
764
|
+
Naming/BinaryOperatorParameterName/MultilineTernaryOperator:
|
765
765
|
Description: >-
|
766
766
|
Avoid multi-line ?: (the ternary operator);
|
767
767
|
use if/unless instead.
|
768
768
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
|
769
769
|
Enabled: true
|
770
770
|
|
771
|
-
|
771
|
+
Naming/BinaryOperatorParameterName/NegatedIf:
|
772
772
|
Description: >-
|
773
773
|
Favor unless over if for negative conditions
|
774
774
|
(or control flow or).
|
775
775
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
|
776
776
|
Enabled: true
|
777
777
|
|
778
|
-
|
778
|
+
Naming/BinaryOperatorParameterName/NegatedWhile:
|
779
779
|
Description: 'Favor until over while for negative conditions.'
|
780
780
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
|
781
781
|
Enabled: false
|
782
782
|
|
783
|
-
|
783
|
+
Naming/BinaryOperatorParameterName/NestedTernaryOperator:
|
784
784
|
Description: 'Use one expression per branch in a ternary operator.'
|
785
785
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
|
786
786
|
Enabled: true
|
787
787
|
|
788
|
-
|
788
|
+
Naming/BinaryOperatorParameterName/Next:
|
789
789
|
Description: 'Use `next` to skip iteration instead of a condition at the end.'
|
790
790
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
791
791
|
Enabled: true
|
792
792
|
|
793
|
-
|
793
|
+
Naming/BinaryOperatorParameterName/NilComparison:
|
794
794
|
Description: 'Prefer x.nil? to x == nil.'
|
795
795
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
796
796
|
Enabled: true
|
797
797
|
|
798
|
-
|
798
|
+
Naming/BinaryOperatorParameterName/NonNilCheck:
|
799
799
|
Description: 'Checks for redundant nil checks.'
|
800
800
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
|
801
801
|
Enabled: true
|
802
802
|
|
803
|
-
|
803
|
+
Naming/BinaryOperatorParameterName/Not:
|
804
804
|
Description: 'Use ! instead of not.'
|
805
805
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
|
806
806
|
Enabled: true
|
807
807
|
|
808
|
-
|
808
|
+
Naming/BinaryOperatorParameterName/NumericLiterals:
|
809
809
|
Description: >-
|
810
810
|
Add underscores to large numeric literals to improve their
|
811
811
|
readability.
|
812
812
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
|
813
813
|
Enabled: true
|
814
814
|
|
815
|
-
|
815
|
+
Naming/BinaryOperatorParameterName/OneLineConditional:
|
816
816
|
Description: >-
|
817
817
|
Favor the ternary operator(?:) over
|
818
818
|
if/then/else/end constructs.
|
819
819
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
820
820
|
Enabled: true
|
821
821
|
|
822
|
-
|
822
|
+
Naming/BinaryOperatorParameterName/OpMethod:
|
823
823
|
Description: 'When defining binary operators, name the argument other.'
|
824
824
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
825
825
|
Enabled: true
|
826
826
|
|
827
|
-
|
827
|
+
Naming/BinaryOperatorParameterName/OptionalArguments:
|
828
828
|
Description: >-
|
829
829
|
Checks for optional arguments that do not appear at the end
|
830
830
|
of the argument list
|
831
831
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
|
832
832
|
Enabled: true
|
833
833
|
|
834
|
-
|
834
|
+
Naming/BinaryOperatorParameterName/ParallelAssignment:
|
835
835
|
Description: >-
|
836
836
|
Check for simple usages of parallel assignment.
|
837
837
|
It will only warn when the number of variables
|
@@ -840,177 +840,177 @@ Style/ParallelAssignment:
|
|
840
840
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
|
841
841
|
Enabled: true
|
842
842
|
|
843
|
-
|
843
|
+
Naming/BinaryOperatorParameterName/ParenthesesAroundCondition:
|
844
844
|
Description: >-
|
845
845
|
Don't use parentheses around the condition of an
|
846
846
|
if/unless/while.
|
847
847
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
|
848
848
|
Enabled: true
|
849
849
|
|
850
|
-
|
850
|
+
Naming/BinaryOperatorParameterName/PercentLiteralDelimiters:
|
851
851
|
Description: 'Use `%`-literal delimiters consistently'
|
852
852
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
|
853
853
|
Enabled: false
|
854
854
|
|
855
|
-
|
855
|
+
Naming/BinaryOperatorParameterName/PercentQLiterals:
|
856
856
|
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
857
857
|
Enabled: false
|
858
858
|
|
859
|
-
|
859
|
+
Naming/BinaryOperatorParameterName/PerlBackrefs:
|
860
860
|
Description: 'Avoid Perl-style regex back references.'
|
861
861
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
|
862
862
|
Enabled: false
|
863
863
|
|
864
|
-
|
864
|
+
Naming/BinaryOperatorParameterName/PredicateName:
|
865
865
|
Description: 'Check the names of predicate methods.'
|
866
866
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
867
867
|
Enabled: true
|
868
868
|
|
869
|
-
|
869
|
+
Naming/BinaryOperatorParameterName/PreferredHashMethods:
|
870
870
|
Description: 'Checks for use of deprecated Hash methods.'
|
871
871
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
872
872
|
Enabled: true
|
873
873
|
|
874
|
-
|
874
|
+
Naming/BinaryOperatorParameterName/Proc:
|
875
875
|
Description: 'Use proc instead of Proc.new.'
|
876
876
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
|
877
877
|
Enabled: true
|
878
878
|
|
879
|
-
|
879
|
+
Naming/BinaryOperatorParameterName/RaiseArgs:
|
880
880
|
Description: 'Checks the arguments passed to raise/fail.'
|
881
881
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
|
882
882
|
Enabled: true
|
883
883
|
|
884
|
-
|
884
|
+
Naming/BinaryOperatorParameterName/RedundantBegin:
|
885
885
|
Description: "Don't use begin blocks when they are not needed."
|
886
886
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
|
887
887
|
Enabled: true
|
888
888
|
|
889
|
-
|
889
|
+
Naming/BinaryOperatorParameterName/RedundantException:
|
890
890
|
Description: "Checks for an obsolete RuntimeException argument in raise/fail."
|
891
891
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
|
892
892
|
Enabled: true
|
893
893
|
|
894
|
-
|
894
|
+
Naming/BinaryOperatorParameterName/RedundantReturn:
|
895
895
|
Description: "Don't use return where it's not required."
|
896
896
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
|
897
897
|
Enabled: true
|
898
898
|
|
899
|
-
|
899
|
+
Naming/BinaryOperatorParameterName/RedundantSelf:
|
900
900
|
Description: "Don't use self where it's not needed."
|
901
901
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
|
902
902
|
Enabled: true
|
903
903
|
|
904
|
-
|
904
|
+
Naming/BinaryOperatorParameterName/RegexpLiteral:
|
905
905
|
Description: 'Use / or %r around regular expressions.'
|
906
906
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
|
907
907
|
Enabled: false
|
908
908
|
|
909
|
-
|
909
|
+
Naming/BinaryOperatorParameterName/RescueEnsureAlignment:
|
910
910
|
Description: 'Align rescues and ensures correctly.'
|
911
911
|
Enabled: true
|
912
912
|
|
913
|
-
|
913
|
+
Naming/BinaryOperatorParameterName/RescueModifier:
|
914
914
|
Description: 'Avoid using rescue in its modifier form.'
|
915
915
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
|
916
916
|
Enabled: true
|
917
917
|
|
918
|
-
|
918
|
+
Naming/BinaryOperatorParameterName/SelfAssignment:
|
919
919
|
Description: >-
|
920
920
|
Checks for places where self-assignment shorthand should have
|
921
921
|
been used.
|
922
922
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
923
923
|
Enabled: true
|
924
924
|
|
925
|
-
|
925
|
+
Naming/BinaryOperatorParameterName/Semicolon:
|
926
926
|
Description: "Don't use semicolons to terminate expressions."
|
927
927
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
|
928
928
|
Enabled: true
|
929
929
|
|
930
|
-
|
930
|
+
Naming/BinaryOperatorParameterName/SignalException:
|
931
931
|
Description: 'Checks for proper usage of fail and raise.'
|
932
932
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
|
933
933
|
Enabled: true
|
934
934
|
|
935
|
-
|
935
|
+
Naming/BinaryOperatorParameterName/SingleLineBlockParams:
|
936
936
|
Description: 'Enforces the names of some block params.'
|
937
937
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
|
938
938
|
Enabled: true
|
939
939
|
|
940
|
-
|
940
|
+
Naming/BinaryOperatorParameterName/SingleLineMethods:
|
941
941
|
Description: 'Avoid single-line methods.'
|
942
942
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
943
943
|
Enabled: true
|
944
944
|
|
945
|
-
|
945
|
+
Naming/BinaryOperatorParameterName/SpaceBeforeFirstArg:
|
946
946
|
Description: >-
|
947
947
|
Checks that exactly one space is used between a method name
|
948
948
|
and the first argument for method calls without parentheses.
|
949
949
|
Enabled: true
|
950
950
|
|
951
|
-
|
951
|
+
Naming/BinaryOperatorParameterName/SpaceAfterColon:
|
952
952
|
Description: 'Use spaces after colons.'
|
953
953
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
954
954
|
Enabled: true
|
955
955
|
|
956
|
-
|
956
|
+
Naming/BinaryOperatorParameterName/SpaceAfterComma:
|
957
957
|
Description: 'Use spaces after commas.'
|
958
958
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
959
959
|
Enabled: true
|
960
960
|
|
961
|
-
|
961
|
+
Naming/BinaryOperatorParameterName/SpaceAroundKeyword:
|
962
962
|
Description: 'Use spaces around keywords.'
|
963
963
|
Enabled: true
|
964
964
|
|
965
|
-
|
965
|
+
Naming/BinaryOperatorParameterName/SpaceAfterMethodName:
|
966
966
|
Description: >-
|
967
967
|
Do not put a space between a method name and the opening
|
968
968
|
parenthesis in a method definition.
|
969
969
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
970
970
|
Enabled: true
|
971
971
|
|
972
|
-
|
972
|
+
Naming/BinaryOperatorParameterName/SpaceAfterNot:
|
973
973
|
Description: Tracks redundant space after the ! operator.
|
974
974
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
|
975
975
|
Enabled: true
|
976
976
|
|
977
|
-
|
977
|
+
Naming/BinaryOperatorParameterName/SpaceAfterSemicolon:
|
978
978
|
Description: 'Use spaces after semicolons.'
|
979
979
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
980
980
|
Enabled: true
|
981
981
|
|
982
|
-
|
982
|
+
Naming/BinaryOperatorParameterName/SpaceBeforeBlockBraces:
|
983
983
|
Description: >-
|
984
984
|
Checks that the left block brace has or doesn't have space
|
985
985
|
before it.
|
986
986
|
Enabled: true
|
987
987
|
|
988
|
-
|
988
|
+
Naming/BinaryOperatorParameterName/SpaceBeforeComma:
|
989
989
|
Description: 'No spaces before commas.'
|
990
990
|
Enabled: true
|
991
991
|
|
992
|
-
|
992
|
+
Naming/BinaryOperatorParameterName/SpaceBeforeComment:
|
993
993
|
Description: >-
|
994
994
|
Checks for missing space between code and a comment on the
|
995
995
|
same line.
|
996
996
|
Enabled: true
|
997
997
|
|
998
|
-
|
998
|
+
Naming/BinaryOperatorParameterName/SpaceBeforeSemicolon:
|
999
999
|
Description: 'No spaces before semicolons.'
|
1000
1000
|
Enabled: true
|
1001
1001
|
|
1002
|
-
|
1002
|
+
Naming/BinaryOperatorParameterName/SpaceInsideBlockBraces:
|
1003
1003
|
Description: >-
|
1004
1004
|
Checks that block braces have or don't have surrounding space.
|
1005
1005
|
For blocks taking parameters, checks that the left brace has
|
1006
1006
|
or doesn't have trailing space.
|
1007
1007
|
Enabled: true
|
1008
1008
|
|
1009
|
-
|
1009
|
+
Naming/BinaryOperatorParameterName/SpaceAroundBlockParameters:
|
1010
1010
|
Description: 'Checks the spacing inside and after block parameters pipes.'
|
1011
1011
|
Enabled: true
|
1012
1012
|
|
1013
|
-
|
1013
|
+
Naming/BinaryOperatorParameterName/SpaceAroundEqualsInParameterDefault:
|
1014
1014
|
Description: >-
|
1015
1015
|
Checks that the equals signs in parameter default assignments
|
1016
1016
|
have or don't have surrounding space depending on
|
@@ -1018,147 +1018,147 @@ Style/SpaceAroundEqualsInParameterDefault:
|
|
1018
1018
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
|
1019
1019
|
Enabled: true
|
1020
1020
|
|
1021
|
-
|
1021
|
+
Naming/BinaryOperatorParameterName/SpaceAroundOperators:
|
1022
1022
|
Description: 'Use a single space around operators.'
|
1023
1023
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1024
1024
|
Enabled: true
|
1025
1025
|
|
1026
|
-
|
1026
|
+
Naming/BinaryOperatorParameterName/SpaceInsideBrackets:
|
1027
1027
|
Description: 'No spaces after [ or before ].'
|
1028
1028
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1029
1029
|
Enabled: true
|
1030
1030
|
|
1031
|
-
|
1031
|
+
Naming/BinaryOperatorParameterName/SpaceInsideHashLiteralBraces:
|
1032
1032
|
Description: "Use spaces inside hash literal braces - or don't."
|
1033
1033
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1034
1034
|
Enabled: true
|
1035
1035
|
|
1036
|
-
|
1036
|
+
Naming/BinaryOperatorParameterName/SpaceInsideParens:
|
1037
1037
|
Description: 'No spaces after ( or before ).'
|
1038
1038
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1039
1039
|
Enabled: true
|
1040
1040
|
|
1041
|
-
|
1041
|
+
Naming/BinaryOperatorParameterName/SpaceInsideRangeLiteral:
|
1042
1042
|
Description: 'No spaces inside range literals.'
|
1043
1043
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
1044
1044
|
Enabled: true
|
1045
1045
|
|
1046
|
-
|
1046
|
+
Naming/BinaryOperatorParameterName/SpaceInsideStringInterpolation:
|
1047
1047
|
Description: 'Checks for padding/surrounding spaces inside string interpolation.'
|
1048
1048
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
|
1049
1049
|
Enabled: true
|
1050
1050
|
|
1051
|
-
|
1051
|
+
Naming/BinaryOperatorParameterName/SpecialGlobalVars:
|
1052
1052
|
Description: 'Avoid Perl-style global variables.'
|
1053
1053
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
|
1054
1054
|
Enabled: true
|
1055
1055
|
|
1056
|
-
|
1056
|
+
Naming/BinaryOperatorParameterName/StringLiterals:
|
1057
1057
|
Description: 'Checks if uses of quotes match the configured preference.'
|
1058
1058
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
|
1059
1059
|
Enabled: true
|
1060
1060
|
|
1061
|
-
|
1061
|
+
Naming/BinaryOperatorParameterName/StringLiteralsInInterpolation:
|
1062
1062
|
Description: >-
|
1063
1063
|
Checks if uses of quotes inside expressions in interpolated
|
1064
1064
|
strings match the configured preference.
|
1065
1065
|
Enabled: false
|
1066
1066
|
|
1067
|
-
|
1067
|
+
Naming/BinaryOperatorParameterName/StructInheritance:
|
1068
1068
|
Description: 'Checks for inheritance from Struct.new.'
|
1069
1069
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
|
1070
1070
|
Enabled: false
|
1071
1071
|
|
1072
|
-
|
1072
|
+
Naming/BinaryOperatorParameterName/SymbolLiteral:
|
1073
1073
|
Description: 'Use plain symbols instead of string symbols when possible.'
|
1074
1074
|
Enabled: true
|
1075
1075
|
|
1076
|
-
|
1076
|
+
Naming/BinaryOperatorParameterName/SymbolProc:
|
1077
1077
|
Description: 'Use symbols as procs instead of blocks when possible.'
|
1078
1078
|
Enabled: true
|
1079
1079
|
|
1080
|
-
|
1080
|
+
Naming/BinaryOperatorParameterName/Tab:
|
1081
1081
|
Description: 'No hard tabs.'
|
1082
1082
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
1083
1083
|
Enabled: true
|
1084
1084
|
|
1085
|
-
|
1085
|
+
Naming/BinaryOperatorParameterName/TrailingBlankLines:
|
1086
1086
|
Description: 'Checks trailing blank lines and final newline.'
|
1087
1087
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
1088
1088
|
Enabled: true
|
1089
1089
|
|
1090
|
-
|
1090
|
+
Naming/BinaryOperatorParameterName/TrailingCommaInArguments:
|
1091
1091
|
Description: 'Checks for trailing comma in parameter lists.'
|
1092
1092
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
|
1093
1093
|
Enabled: false
|
1094
1094
|
|
1095
|
-
|
1095
|
+
Naming/BinaryOperatorParameterName/TrailingCommaInLiteral:
|
1096
1096
|
Description: 'Checks for trailing comma in literals.'
|
1097
1097
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
1098
1098
|
Enabled: false
|
1099
1099
|
|
1100
|
-
|
1100
|
+
Naming/BinaryOperatorParameterName/TrailingWhitespace:
|
1101
1101
|
Description: 'Avoid trailing whitespace.'
|
1102
1102
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
1103
1103
|
Enabled: true
|
1104
1104
|
|
1105
|
-
|
1105
|
+
Naming/BinaryOperatorParameterName/TrivialAccessors:
|
1106
1106
|
Description: 'Prefer attr_* methods to trivial readers/writers.'
|
1107
1107
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
|
1108
1108
|
Enabled: true
|
1109
1109
|
|
1110
|
-
|
1110
|
+
Naming/BinaryOperatorParameterName/UnlessElse:
|
1111
1111
|
Description: >-
|
1112
1112
|
Do not use unless with else. Rewrite these with the positive
|
1113
1113
|
case first.
|
1114
1114
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
|
1115
1115
|
Enabled: true
|
1116
1116
|
|
1117
|
-
|
1117
|
+
Naming/BinaryOperatorParameterName/UnneededCapitalW:
|
1118
1118
|
Description: 'Checks for %W when interpolation is not needed.'
|
1119
1119
|
Enabled: false
|
1120
1120
|
|
1121
|
-
|
1121
|
+
Naming/BinaryOperatorParameterName/UnneededPercentQ:
|
1122
1122
|
Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
|
1123
1123
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
|
1124
1124
|
Enabled: false
|
1125
1125
|
|
1126
|
-
|
1126
|
+
Naming/BinaryOperatorParameterName/TrailingUnderscoreVariable:
|
1127
1127
|
Description: >-
|
1128
1128
|
Checks for the usage of unneeded trailing underscores at the
|
1129
1129
|
end of parallel variable assignment.
|
1130
1130
|
Enabled: true
|
1131
1131
|
|
1132
|
-
|
1132
|
+
Naming/BinaryOperatorParameterName/VariableInterpolation:
|
1133
1133
|
Description: >-
|
1134
1134
|
Don't interpolate global, instance and class variables
|
1135
1135
|
directly in strings.
|
1136
1136
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
1137
1137
|
Enabled: false
|
1138
1138
|
|
1139
|
-
|
1139
|
+
Naming/BinaryOperatorParameterName/VariableName:
|
1140
1140
|
Description: 'Use the configured style when naming variables.'
|
1141
1141
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
1142
1142
|
Enabled: true
|
1143
1143
|
|
1144
|
-
|
1144
|
+
Naming/BinaryOperatorParameterName/WhenThen:
|
1145
1145
|
Description: 'Use when x then ... for one-line cases.'
|
1146
1146
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
|
1147
1147
|
Enabled: true
|
1148
1148
|
|
1149
|
-
|
1149
|
+
Naming/BinaryOperatorParameterName/WhileUntilDo:
|
1150
1150
|
Description: 'Checks for redundant do after while or until.'
|
1151
1151
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
|
1152
1152
|
Enabled: false
|
1153
1153
|
|
1154
|
-
|
1154
|
+
Naming/BinaryOperatorParameterName/WhileUntilModifier:
|
1155
1155
|
Description: >-
|
1156
1156
|
Favor modifier while/until usage when you have a
|
1157
1157
|
single-line body.
|
1158
1158
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
|
1159
1159
|
Enabled: false
|
1160
1160
|
|
1161
|
-
|
1161
|
+
Naming/BinaryOperatorParameterName/WordArray:
|
1162
1162
|
Description: 'Use %w or %W for arrays of words.'
|
1163
1163
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
|
1164
1164
|
Enabled: false
|