meta-tags 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.codeclimate.yml +2 -3
- data/.rubocop.yml +110 -107
- data/.travis.yml +16 -28
- data/CHANGELOG.md +27 -19
- data/Gemfile +0 -1
- data/README.md +237 -214
- data/lib/meta_tags.rb +1 -0
- data/lib/meta_tags/configuration.rb +44 -0
- data/lib/meta_tags/meta_tags_collection.rb +7 -7
- data/lib/meta_tags/renderer.rb +54 -50
- data/lib/meta_tags/text_normalizer.rb +21 -11
- data/lib/meta_tags/version.rb +1 -1
- data/meta-tags.gemspec +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a951b5f1a98a69eeea2e13cc53fcea808f44ef08
|
4
|
+
data.tar.gz: b9bf8e2f0ca386108cb7108d13b8909ba2ccc1b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 588b6a8f83d32e391b72b063f17983509821e4ad896be1ece4698f00f40d6aee2dd93cb8cf82b796201d52e796451a9ac0f657c42168b6c36612b1949cb6d1c6
|
7
|
+
data.tar.gz: a05a64fa12af04a87a5161b60b1874c3715b6d98b4df6eacbfa8d7f752bb23401a39f8eb10258edad59928f3dadfee07bcc8c7e9f2488f218f6e4dc7fef02b2a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.codeclimate.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
AllCops:
|
2
2
|
DisabledByDefault: true
|
3
|
+
TargetRubyVersion: 2.2
|
3
4
|
|
4
5
|
#################### Lint ################################
|
5
6
|
|
@@ -19,7 +20,7 @@ Lint/AmbiguousRegexpLiteral:
|
|
19
20
|
Lint/AssignmentInCondition:
|
20
21
|
Description: "Don't use assignment in conditions."
|
21
22
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
22
|
-
Enabled:
|
23
|
+
Enabled: true
|
23
24
|
|
24
25
|
Lint/BlockAlignment:
|
25
26
|
Description: 'Align block ends correctly.'
|
@@ -210,8 +211,8 @@ Metrics/AbcSize:
|
|
210
211
|
A calculated magnitude based on number of assignments,
|
211
212
|
branches, and conditions.
|
212
213
|
Reference: 'http://c2.com/cgi/wiki?AbcMetric'
|
213
|
-
Enabled:
|
214
|
-
Max:
|
214
|
+
Enabled: true
|
215
|
+
Max: 25
|
215
216
|
|
216
217
|
Metrics/BlockNesting:
|
217
218
|
Description: 'Avoid excessive block nesting'
|
@@ -335,7 +336,7 @@ Rails/FindBy:
|
|
335
336
|
|
336
337
|
Rails/FindEach:
|
337
338
|
Description: 'Prefer all.find_each over all.find.'
|
338
|
-
Enabled:
|
339
|
+
Enabled: true
|
339
340
|
|
340
341
|
Rails/HasAndBelongsToMany:
|
341
342
|
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
|
@@ -343,7 +344,7 @@ Rails/HasAndBelongsToMany:
|
|
343
344
|
|
344
345
|
Rails/Output:
|
345
346
|
Description: 'Checks for calls to puts, print, etc.'
|
346
|
-
Enabled:
|
347
|
+
Enabled: true
|
347
348
|
|
348
349
|
Rails/ReadWriteAttribute:
|
349
350
|
Description: >-
|
@@ -386,40 +387,40 @@ Style/AlignArray:
|
|
386
387
|
Align the elements of an array literal if they span more than
|
387
388
|
one line.
|
388
389
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
389
|
-
Enabled:
|
390
|
+
Enabled: true
|
390
391
|
|
391
392
|
Style/AlignHash:
|
392
393
|
Description: >-
|
393
394
|
Align the elements of a hash literal if they span more than
|
394
395
|
one line.
|
395
|
-
Enabled:
|
396
|
+
Enabled: true
|
396
397
|
|
397
398
|
Style/AlignParameters:
|
398
399
|
Description: >-
|
399
400
|
Align the parameters of a method call if they span more
|
400
401
|
than one line.
|
401
402
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
|
402
|
-
Enabled:
|
403
|
+
Enabled: true
|
403
404
|
|
404
405
|
Style/AndOr:
|
405
406
|
Description: 'Use &&/|| instead of and/or.'
|
406
407
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
|
407
|
-
Enabled:
|
408
|
+
Enabled: true
|
408
409
|
|
409
410
|
Style/ArrayJoin:
|
410
411
|
Description: 'Use Array#join instead of Array#*.'
|
411
412
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
|
412
|
-
Enabled:
|
413
|
+
Enabled: true
|
413
414
|
|
414
415
|
Style/AsciiComments:
|
415
416
|
Description: 'Use only ascii symbols in comments.'
|
416
417
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
417
|
-
Enabled:
|
418
|
+
Enabled: true
|
418
419
|
|
419
420
|
Style/AsciiIdentifiers:
|
420
421
|
Description: 'Use only ascii symbols in identifiers.'
|
421
422
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
422
|
-
Enabled:
|
423
|
+
Enabled: true
|
423
424
|
|
424
425
|
Style/Attr:
|
425
426
|
Description: 'Checks for uses of Module#attr.'
|
@@ -429,7 +430,7 @@ Style/Attr:
|
|
429
430
|
Style/BeginBlock:
|
430
431
|
Description: 'Avoid the use of BEGIN blocks.'
|
431
432
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
|
432
|
-
Enabled:
|
433
|
+
Enabled: true
|
433
434
|
|
434
435
|
Style/BarePercentLiterals:
|
435
436
|
Description: 'Checks if usage of %() or %Q() matches configuration.'
|
@@ -443,7 +444,7 @@ Style/BlockComments:
|
|
443
444
|
|
444
445
|
Style/BlockEndNewline:
|
445
446
|
Description: 'Put end statement of multiline block on its own line.'
|
446
|
-
Enabled:
|
447
|
+
Enabled: true
|
447
448
|
|
448
449
|
Style/BlockDelimiters:
|
449
450
|
Description: >-
|
@@ -460,7 +461,7 @@ Style/BracesAroundHashParameters:
|
|
460
461
|
Style/CaseEquality:
|
461
462
|
Description: 'Avoid explicit use of the case equality operator(===).'
|
462
463
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
463
|
-
Enabled:
|
464
|
+
Enabled: true
|
464
465
|
|
465
466
|
Style/CaseIndentation:
|
466
467
|
Description: 'Indentation of when in a case/when/[else/]end.'
|
@@ -470,12 +471,12 @@ Style/CaseIndentation:
|
|
470
471
|
Style/CharacterLiteral:
|
471
472
|
Description: 'Checks for uses of character literals.'
|
472
473
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
473
|
-
Enabled:
|
474
|
+
Enabled: true
|
474
475
|
|
475
476
|
Style/ClassAndModuleCamelCase:
|
476
477
|
Description: 'Use CamelCase for classes and modules.'
|
477
478
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
478
|
-
Enabled:
|
479
|
+
Enabled: true
|
479
480
|
|
480
481
|
Style/ClassAndModuleChildren:
|
481
482
|
Description: 'Checks style of children classes and modules.'
|
@@ -483,12 +484,13 @@ Style/ClassAndModuleChildren:
|
|
483
484
|
|
484
485
|
Style/ClassCheck:
|
485
486
|
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
486
|
-
Enabled:
|
487
|
+
Enabled: true
|
488
|
+
EnforcedStyle: kind_of?
|
487
489
|
|
488
490
|
Style/ClassMethods:
|
489
491
|
Description: 'Use self when defining module/class methods.'
|
490
492
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
|
491
|
-
Enabled:
|
493
|
+
Enabled: true
|
492
494
|
|
493
495
|
Style/ClassVars:
|
494
496
|
Description: 'Avoid the use of class variables.'
|
@@ -497,12 +499,12 @@ Style/ClassVars:
|
|
497
499
|
|
498
500
|
Style/ClosingParenthesisIndentation:
|
499
501
|
Description: 'Checks the indentation of hanging closing parentheses.'
|
500
|
-
Enabled:
|
502
|
+
Enabled: true
|
501
503
|
|
502
504
|
Style/ColonMethodCall:
|
503
505
|
Description: 'Do not use :: for method call.'
|
504
506
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
505
|
-
Enabled:
|
507
|
+
Enabled: true
|
506
508
|
|
507
509
|
Style/CommandLiteral:
|
508
510
|
Description: 'Use `` or %x around command literals.'
|
@@ -521,17 +523,17 @@ Style/CommentIndentation:
|
|
521
523
|
Style/ConstantName:
|
522
524
|
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
523
525
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
524
|
-
Enabled:
|
526
|
+
Enabled: true
|
525
527
|
|
526
528
|
Style/DefWithParentheses:
|
527
529
|
Description: 'Use def with parentheses when there are arguments.'
|
528
530
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
529
|
-
Enabled:
|
531
|
+
Enabled: true
|
530
532
|
|
531
|
-
Style/
|
533
|
+
Style/PreferredHashMethods:
|
532
534
|
Description: 'Checks for use of deprecated Hash methods.'
|
533
535
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
534
|
-
Enabled:
|
536
|
+
Enabled: true
|
535
537
|
|
536
538
|
Style/Documentation:
|
537
539
|
Description: 'Document classes and non-namespace modules.'
|
@@ -540,7 +542,8 @@ Style/Documentation:
|
|
540
542
|
Style/DotPosition:
|
541
543
|
Description: 'Checks the position of the dot in multi-line method calls.'
|
542
544
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
543
|
-
|
545
|
+
EnforcedStyle: trailing
|
546
|
+
Enabled: true
|
544
547
|
|
545
548
|
Style/DoubleNegation:
|
546
549
|
Description: 'Checks for uses of double negation (!!).'
|
@@ -553,28 +556,28 @@ Style/EachWithObject:
|
|
553
556
|
|
554
557
|
Style/ElseAlignment:
|
555
558
|
Description: 'Align elses and elsifs correctly.'
|
556
|
-
Enabled:
|
559
|
+
Enabled: true
|
557
560
|
|
558
561
|
Style/EmptyElse:
|
559
562
|
Description: 'Avoid empty else-clauses.'
|
560
|
-
Enabled:
|
563
|
+
Enabled: true
|
561
564
|
|
562
565
|
Style/EmptyLineBetweenDefs:
|
563
566
|
Description: 'Use empty lines between defs.'
|
564
567
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
565
|
-
Enabled:
|
568
|
+
Enabled: true
|
566
569
|
|
567
570
|
Style/EmptyLines:
|
568
571
|
Description: "Don't use several empty lines in a row."
|
569
|
-
Enabled:
|
572
|
+
Enabled: true
|
570
573
|
|
571
574
|
Style/EmptyLinesAroundAccessModifier:
|
572
575
|
Description: "Keep blank lines around access modifiers."
|
573
|
-
Enabled:
|
576
|
+
Enabled: true
|
574
577
|
|
575
578
|
Style/EmptyLinesAroundBlockBody:
|
576
579
|
Description: "Keeps track of empty lines around block bodies."
|
577
|
-
Enabled:
|
580
|
+
Enabled: true
|
578
581
|
|
579
582
|
Style/EmptyLinesAroundClassBody:
|
580
583
|
Description: "Keeps track of empty lines around class bodies."
|
@@ -586,31 +589,31 @@ Style/EmptyLinesAroundModuleBody:
|
|
586
589
|
|
587
590
|
Style/EmptyLinesAroundMethodBody:
|
588
591
|
Description: "Keeps track of empty lines around method bodies."
|
589
|
-
Enabled:
|
592
|
+
Enabled: true
|
590
593
|
|
591
594
|
Style/EmptyLiteral:
|
592
595
|
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
|
593
596
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
|
594
|
-
Enabled:
|
597
|
+
Enabled: true
|
595
598
|
|
596
599
|
Style/EndBlock:
|
597
600
|
Description: 'Avoid the use of END blocks.'
|
598
601
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
599
|
-
Enabled:
|
602
|
+
Enabled: true
|
600
603
|
|
601
604
|
Style/EndOfLine:
|
602
605
|
Description: 'Use Unix-style line endings.'
|
603
606
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
604
|
-
Enabled:
|
607
|
+
Enabled: true
|
605
608
|
|
606
609
|
Style/EvenOdd:
|
607
610
|
Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
|
608
611
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
609
|
-
Enabled:
|
612
|
+
Enabled: true
|
610
613
|
|
611
614
|
Style/ExtraSpacing:
|
612
615
|
Description: 'Do not use unnecessary spacing.'
|
613
|
-
Enabled:
|
616
|
+
Enabled: true
|
614
617
|
|
615
618
|
Style/FileName:
|
616
619
|
Description: 'Use snake_case for source file names.'
|
@@ -620,7 +623,7 @@ Style/FileName:
|
|
620
623
|
Style/InitialIndentation:
|
621
624
|
Description: >-
|
622
625
|
Checks the indentation of the first non-blank non-comment line in a file.
|
623
|
-
Enabled:
|
626
|
+
Enabled: true
|
624
627
|
|
625
628
|
Style/FirstParameterIndentation:
|
626
629
|
Description: 'Checks the indentation of the first parameter in a method call.'
|
@@ -629,35 +632,35 @@ Style/FirstParameterIndentation:
|
|
629
632
|
Style/FlipFlop:
|
630
633
|
Description: 'Checks for flip flops'
|
631
634
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
|
632
|
-
Enabled:
|
635
|
+
Enabled: true
|
633
636
|
|
634
637
|
Style/For:
|
635
638
|
Description: 'Checks use of for or each in multiline loops.'
|
636
639
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
|
637
|
-
Enabled:
|
640
|
+
Enabled: true
|
638
641
|
|
639
642
|
Style/FormatString:
|
640
643
|
Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
|
641
644
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
|
642
|
-
Enabled:
|
645
|
+
Enabled: true
|
643
646
|
|
644
647
|
Style/GlobalVars:
|
645
648
|
Description: 'Do not introduce global variables.'
|
646
649
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
647
650
|
Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
|
648
|
-
Enabled:
|
651
|
+
Enabled: true
|
649
652
|
|
650
653
|
Style/GuardClause:
|
651
654
|
Description: 'Check for conditionals that can be replaced with guard clauses'
|
652
655
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
653
|
-
Enabled:
|
656
|
+
Enabled: true
|
654
657
|
|
655
658
|
Style/HashSyntax:
|
656
659
|
Description: >-
|
657
660
|
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
658
661
|
{ :a => 1, :b => 2 }.
|
659
662
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
|
660
|
-
Enabled:
|
663
|
+
Enabled: true
|
661
664
|
|
662
665
|
Style/IfUnlessModifier:
|
663
666
|
Description: >-
|
@@ -669,31 +672,31 @@ Style/IfUnlessModifier:
|
|
669
672
|
Style/IfWithSemicolon:
|
670
673
|
Description: 'Do not use if x; .... Use the ternary operator instead.'
|
671
674
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
|
672
|
-
Enabled:
|
675
|
+
Enabled: true
|
673
676
|
|
674
677
|
Style/IndentationConsistency:
|
675
678
|
Description: 'Keep indentation straight.'
|
676
|
-
Enabled:
|
679
|
+
Enabled: true
|
677
680
|
|
678
681
|
Style/IndentationWidth:
|
679
682
|
Description: 'Use 2 spaces for indentation.'
|
680
683
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
681
|
-
Enabled:
|
684
|
+
Enabled: true
|
682
685
|
|
683
686
|
Style/IndentArray:
|
684
687
|
Description: >-
|
685
688
|
Checks the indentation of the first element in an array
|
686
689
|
literal.
|
687
|
-
Enabled:
|
690
|
+
Enabled: true
|
688
691
|
|
689
692
|
Style/IndentHash:
|
690
693
|
Description: 'Checks the indentation of the first key in a hash literal.'
|
691
|
-
Enabled:
|
694
|
+
Enabled: true
|
692
695
|
|
693
696
|
Style/InfiniteLoop:
|
694
697
|
Description: 'Use Kernel#loop for infinite loops.'
|
695
698
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
|
696
|
-
Enabled:
|
699
|
+
Enabled: true
|
697
700
|
|
698
701
|
Style/Lambda:
|
699
702
|
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
@@ -703,12 +706,12 @@ Style/Lambda:
|
|
703
706
|
Style/LambdaCall:
|
704
707
|
Description: 'Use lambda.call(...) instead of lambda.(...).'
|
705
708
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
|
706
|
-
Enabled:
|
709
|
+
Enabled: true
|
707
710
|
|
708
711
|
Style/LeadingCommentSpace:
|
709
712
|
Description: 'Comments should start with a space.'
|
710
713
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
711
|
-
Enabled:
|
714
|
+
Enabled: true
|
712
715
|
|
713
716
|
Style/LineEndConcatenation:
|
714
717
|
Description: >-
|
@@ -716,22 +719,22 @@ Style/LineEndConcatenation:
|
|
716
719
|
line end.
|
717
720
|
Enabled: false
|
718
721
|
|
719
|
-
Style/
|
722
|
+
Style/MethodCallWithoutArgsParentheses:
|
720
723
|
Description: 'Do not use parentheses for method calls with no arguments.'
|
721
724
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
722
|
-
Enabled:
|
725
|
+
Enabled: true
|
723
726
|
|
724
727
|
Style/MethodDefParentheses:
|
725
728
|
Description: >-
|
726
729
|
Checks if the method definitions have or don't have
|
727
730
|
parentheses.
|
728
731
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
729
|
-
Enabled:
|
732
|
+
Enabled: true
|
730
733
|
|
731
734
|
Style/MethodName:
|
732
735
|
Description: 'Use the configured style when naming methods.'
|
733
736
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
734
|
-
Enabled:
|
737
|
+
Enabled: true
|
735
738
|
|
736
739
|
Style/ModuleFunction:
|
737
740
|
Description: 'Checks for usage of `extend self` in modules.'
|
@@ -745,32 +748,32 @@ Style/MultilineBlockChain:
|
|
745
748
|
|
746
749
|
Style/MultilineBlockLayout:
|
747
750
|
Description: 'Ensures newlines after multiline block do statements.'
|
748
|
-
Enabled:
|
751
|
+
Enabled: true
|
749
752
|
|
750
753
|
Style/MultilineIfThen:
|
751
754
|
Description: 'Do not use then for multi-line if/unless.'
|
752
755
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
|
753
|
-
Enabled:
|
756
|
+
Enabled: true
|
754
757
|
|
755
758
|
Style/MultilineOperationIndentation:
|
756
759
|
Description: >-
|
757
760
|
Checks indentation of binary operations that span more than
|
758
761
|
one line.
|
759
|
-
Enabled:
|
762
|
+
Enabled: true
|
760
763
|
|
761
764
|
Style/MultilineTernaryOperator:
|
762
765
|
Description: >-
|
763
766
|
Avoid multi-line ?: (the ternary operator);
|
764
767
|
use if/unless instead.
|
765
768
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
|
766
|
-
Enabled:
|
769
|
+
Enabled: true
|
767
770
|
|
768
771
|
Style/NegatedIf:
|
769
772
|
Description: >-
|
770
773
|
Favor unless over if for negative conditions
|
771
774
|
(or control flow or).
|
772
775
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
|
773
|
-
Enabled:
|
776
|
+
Enabled: true
|
774
777
|
|
775
778
|
Style/NegatedWhile:
|
776
779
|
Description: 'Favor until over while for negative conditions.'
|
@@ -780,17 +783,17 @@ Style/NegatedWhile:
|
|
780
783
|
Style/NestedTernaryOperator:
|
781
784
|
Description: 'Use one expression per branch in a ternary operator.'
|
782
785
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
|
783
|
-
Enabled:
|
786
|
+
Enabled: true
|
784
787
|
|
785
788
|
Style/Next:
|
786
789
|
Description: 'Use `next` to skip iteration instead of a condition at the end.'
|
787
790
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
788
|
-
Enabled:
|
791
|
+
Enabled: true
|
789
792
|
|
790
793
|
Style/NilComparison:
|
791
794
|
Description: 'Prefer x.nil? to x == nil.'
|
792
795
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
793
|
-
Enabled:
|
796
|
+
Enabled: true
|
794
797
|
|
795
798
|
Style/NonNilCheck:
|
796
799
|
Description: 'Checks for redundant nil checks.'
|
@@ -800,7 +803,7 @@ Style/NonNilCheck:
|
|
800
803
|
Style/Not:
|
801
804
|
Description: 'Use ! instead of not.'
|
802
805
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
|
803
|
-
Enabled:
|
806
|
+
Enabled: true
|
804
807
|
|
805
808
|
Style/NumericLiterals:
|
806
809
|
Description: >-
|
@@ -814,7 +817,7 @@ Style/OneLineConditional:
|
|
814
817
|
Favor the ternary operator(?:) over
|
815
818
|
if/then/else/end constructs.
|
816
819
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
817
|
-
Enabled:
|
820
|
+
Enabled: true
|
818
821
|
|
819
822
|
Style/OpMethod:
|
820
823
|
Description: 'When defining binary operators, name the argument other.'
|
@@ -826,7 +829,7 @@ Style/OptionalArguments:
|
|
826
829
|
Checks for optional arguments that do not appear at the end
|
827
830
|
of the argument list
|
828
831
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
|
829
|
-
Enabled:
|
832
|
+
Enabled: true
|
830
833
|
|
831
834
|
Style/ParallelAssignment:
|
832
835
|
Description: >-
|
@@ -835,14 +838,14 @@ Style/ParallelAssignment:
|
|
835
838
|
matches on both sides of the assignment.
|
836
839
|
This also provides performance benefits
|
837
840
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
|
838
|
-
Enabled:
|
841
|
+
Enabled: true
|
839
842
|
|
840
843
|
Style/ParenthesesAroundCondition:
|
841
844
|
Description: >-
|
842
845
|
Don't use parentheses around the condition of an
|
843
846
|
if/unless/while.
|
844
847
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
|
845
|
-
Enabled:
|
848
|
+
Enabled: true
|
846
849
|
|
847
850
|
Style/PercentLiteralDelimiters:
|
848
851
|
Description: 'Use `%`-literal delimiters consistently'
|
@@ -871,17 +874,17 @@ Style/Proc:
|
|
871
874
|
Style/RaiseArgs:
|
872
875
|
Description: 'Checks the arguments passed to raise/fail.'
|
873
876
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
|
874
|
-
Enabled:
|
877
|
+
Enabled: true
|
875
878
|
|
876
879
|
Style/RedundantBegin:
|
877
880
|
Description: "Don't use begin blocks when they are not needed."
|
878
881
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
|
879
|
-
Enabled:
|
882
|
+
Enabled: true
|
880
883
|
|
881
884
|
Style/RedundantException:
|
882
885
|
Description: "Checks for an obsolete RuntimeException argument in raise/fail."
|
883
886
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
|
884
|
-
Enabled:
|
887
|
+
Enabled: true
|
885
888
|
|
886
889
|
Style/RedundantReturn:
|
887
890
|
Description: "Don't use return where it's not required."
|
@@ -900,24 +903,24 @@ Style/RegexpLiteral:
|
|
900
903
|
|
901
904
|
Style/RescueEnsureAlignment:
|
902
905
|
Description: 'Align rescues and ensures correctly.'
|
903
|
-
Enabled:
|
906
|
+
Enabled: true
|
904
907
|
|
905
908
|
Style/RescueModifier:
|
906
909
|
Description: 'Avoid using rescue in its modifier form.'
|
907
910
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
|
908
|
-
Enabled:
|
911
|
+
Enabled: true
|
909
912
|
|
910
913
|
Style/SelfAssignment:
|
911
914
|
Description: >-
|
912
915
|
Checks for places where self-assignment shorthand should have
|
913
916
|
been used.
|
914
917
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
915
|
-
Enabled:
|
918
|
+
Enabled: true
|
916
919
|
|
917
920
|
Style/Semicolon:
|
918
921
|
Description: "Don't use semicolons to terminate expressions."
|
919
922
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
|
920
|
-
Enabled:
|
923
|
+
Enabled: true
|
921
924
|
|
922
925
|
Style/SignalException:
|
923
926
|
Description: 'Checks for proper usage of fail and raise.'
|
@@ -932,7 +935,7 @@ Style/SingleLineBlockParams:
|
|
932
935
|
Style/SingleLineMethods:
|
933
936
|
Description: 'Avoid single-line methods.'
|
934
937
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
935
|
-
Enabled:
|
938
|
+
Enabled: true
|
936
939
|
|
937
940
|
Style/SpaceBeforeFirstArg:
|
938
941
|
Description: >-
|
@@ -943,43 +946,43 @@ Style/SpaceBeforeFirstArg:
|
|
943
946
|
Style/SpaceAfterColon:
|
944
947
|
Description: 'Use spaces after colons.'
|
945
948
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
946
|
-
Enabled:
|
949
|
+
Enabled: true
|
947
950
|
|
948
951
|
Style/SpaceAfterComma:
|
949
952
|
Description: 'Use spaces after commas.'
|
950
953
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
951
|
-
Enabled:
|
954
|
+
Enabled: true
|
952
955
|
|
953
956
|
Style/SpaceAroundKeyword:
|
954
957
|
Description: 'Use spaces around keywords.'
|
955
|
-
Enabled:
|
958
|
+
Enabled: true
|
956
959
|
|
957
960
|
Style/SpaceAfterMethodName:
|
958
961
|
Description: >-
|
959
962
|
Do not put a space between a method name and the opening
|
960
963
|
parenthesis in a method definition.
|
961
964
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
962
|
-
Enabled:
|
965
|
+
Enabled: true
|
963
966
|
|
964
967
|
Style/SpaceAfterNot:
|
965
968
|
Description: Tracks redundant space after the ! operator.
|
966
969
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
|
967
|
-
Enabled:
|
970
|
+
Enabled: true
|
968
971
|
|
969
972
|
Style/SpaceAfterSemicolon:
|
970
973
|
Description: 'Use spaces after semicolons.'
|
971
974
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
972
|
-
Enabled:
|
975
|
+
Enabled: true
|
973
976
|
|
974
977
|
Style/SpaceBeforeBlockBraces:
|
975
978
|
Description: >-
|
976
979
|
Checks that the left block brace has or doesn't have space
|
977
980
|
before it.
|
978
|
-
Enabled:
|
981
|
+
Enabled: true
|
979
982
|
|
980
983
|
Style/SpaceBeforeComma:
|
981
984
|
Description: 'No spaces before commas.'
|
982
|
-
Enabled:
|
985
|
+
Enabled: true
|
983
986
|
|
984
987
|
Style/SpaceBeforeComment:
|
985
988
|
Description: >-
|
@@ -989,18 +992,18 @@ Style/SpaceBeforeComment:
|
|
989
992
|
|
990
993
|
Style/SpaceBeforeSemicolon:
|
991
994
|
Description: 'No spaces before semicolons.'
|
992
|
-
Enabled:
|
995
|
+
Enabled: true
|
993
996
|
|
994
997
|
Style/SpaceInsideBlockBraces:
|
995
998
|
Description: >-
|
996
999
|
Checks that block braces have or don't have surrounding space.
|
997
1000
|
For blocks taking parameters, checks that the left brace has
|
998
1001
|
or doesn't have trailing space.
|
999
|
-
Enabled:
|
1002
|
+
Enabled: true
|
1000
1003
|
|
1001
1004
|
Style/SpaceAroundBlockParameters:
|
1002
1005
|
Description: 'Checks the spacing inside and after block parameters pipes.'
|
1003
|
-
Enabled:
|
1006
|
+
Enabled: true
|
1004
1007
|
|
1005
1008
|
Style/SpaceAroundEqualsInParameterDefault:
|
1006
1009
|
Description: >-
|
@@ -1008,12 +1011,12 @@ Style/SpaceAroundEqualsInParameterDefault:
|
|
1008
1011
|
have or don't have surrounding space depending on
|
1009
1012
|
configuration.
|
1010
1013
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
|
1011
|
-
Enabled:
|
1014
|
+
Enabled: true
|
1012
1015
|
|
1013
1016
|
Style/SpaceAroundOperators:
|
1014
1017
|
Description: 'Use a single space around operators.'
|
1015
1018
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1016
|
-
Enabled:
|
1019
|
+
Enabled: true
|
1017
1020
|
|
1018
1021
|
Style/SpaceInsideBrackets:
|
1019
1022
|
Description: 'No spaces after [ or before ].'
|
@@ -1023,27 +1026,27 @@ Style/SpaceInsideBrackets:
|
|
1023
1026
|
Style/SpaceInsideHashLiteralBraces:
|
1024
1027
|
Description: "Use spaces inside hash literal braces - or don't."
|
1025
1028
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
1026
|
-
Enabled:
|
1029
|
+
Enabled: true
|
1027
1030
|
|
1028
1031
|
Style/SpaceInsideParens:
|
1029
1032
|
Description: 'No spaces after ( or before ).'
|
1030
1033
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1031
|
-
Enabled:
|
1034
|
+
Enabled: true
|
1032
1035
|
|
1033
1036
|
Style/SpaceInsideRangeLiteral:
|
1034
1037
|
Description: 'No spaces inside range literals.'
|
1035
1038
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
1036
|
-
Enabled:
|
1039
|
+
Enabled: true
|
1037
1040
|
|
1038
1041
|
Style/SpaceInsideStringInterpolation:
|
1039
1042
|
Description: 'Checks for padding/surrounding spaces inside string interpolation.'
|
1040
1043
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
|
1041
|
-
Enabled:
|
1044
|
+
Enabled: true
|
1042
1045
|
|
1043
1046
|
Style/SpecialGlobalVars:
|
1044
1047
|
Description: 'Avoid Perl-style global variables.'
|
1045
1048
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
|
1046
|
-
Enabled:
|
1049
|
+
Enabled: true
|
1047
1050
|
|
1048
1051
|
Style/StringLiterals:
|
1049
1052
|
Description: 'Checks if uses of quotes match the configured preference.'
|
@@ -1059,25 +1062,25 @@ Style/StringLiteralsInInterpolation:
|
|
1059
1062
|
Style/StructInheritance:
|
1060
1063
|
Description: 'Checks for inheritance from Struct.new.'
|
1061
1064
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
|
1062
|
-
Enabled:
|
1065
|
+
Enabled: true
|
1063
1066
|
|
1064
1067
|
Style/SymbolLiteral:
|
1065
1068
|
Description: 'Use plain symbols instead of string symbols when possible.'
|
1066
|
-
Enabled:
|
1069
|
+
Enabled: true
|
1067
1070
|
|
1068
1071
|
Style/SymbolProc:
|
1069
1072
|
Description: 'Use symbols as procs instead of blocks when possible.'
|
1070
|
-
Enabled:
|
1073
|
+
Enabled: true
|
1071
1074
|
|
1072
1075
|
Style/Tab:
|
1073
1076
|
Description: 'No hard tabs.'
|
1074
1077
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
1075
|
-
Enabled:
|
1078
|
+
Enabled: true
|
1076
1079
|
|
1077
1080
|
Style/TrailingBlankLines:
|
1078
1081
|
Description: 'Checks trailing blank lines and final newline.'
|
1079
1082
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
1080
|
-
Enabled:
|
1083
|
+
Enabled: true
|
1081
1084
|
|
1082
1085
|
Style/TrailingCommaInArguments:
|
1083
1086
|
Description: 'Checks for trailing comma in parameter lists.'
|
@@ -1092,19 +1095,19 @@ Style/TrailingCommaInLiteral:
|
|
1092
1095
|
Style/TrailingWhitespace:
|
1093
1096
|
Description: 'Avoid trailing whitespace.'
|
1094
1097
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
1095
|
-
Enabled:
|
1098
|
+
Enabled: true
|
1096
1099
|
|
1097
1100
|
Style/TrivialAccessors:
|
1098
1101
|
Description: 'Prefer attr_* methods to trivial readers/writers.'
|
1099
1102
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
|
1100
|
-
Enabled:
|
1103
|
+
Enabled: true
|
1101
1104
|
|
1102
1105
|
Style/UnlessElse:
|
1103
1106
|
Description: >-
|
1104
1107
|
Do not use unless with else. Rewrite these with the positive
|
1105
1108
|
case first.
|
1106
1109
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
|
1107
|
-
Enabled:
|
1110
|
+
Enabled: true
|
1108
1111
|
|
1109
1112
|
Style/UnneededCapitalW:
|
1110
1113
|
Description: 'Checks for %W when interpolation is not needed.'
|
@@ -1119,19 +1122,19 @@ Style/TrailingUnderscoreVariable:
|
|
1119
1122
|
Description: >-
|
1120
1123
|
Checks for the usage of unneeded trailing underscores at the
|
1121
1124
|
end of parallel variable assignment.
|
1122
|
-
Enabled:
|
1125
|
+
Enabled: true
|
1123
1126
|
|
1124
1127
|
Style/VariableInterpolation:
|
1125
1128
|
Description: >-
|
1126
1129
|
Don't interpolate global, instance and class variables
|
1127
1130
|
directly in strings.
|
1128
1131
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
1129
|
-
Enabled:
|
1132
|
+
Enabled: true
|
1130
1133
|
|
1131
1134
|
Style/VariableName:
|
1132
1135
|
Description: 'Use the configured style when naming variables.'
|
1133
1136
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
1134
|
-
Enabled:
|
1137
|
+
Enabled: true
|
1135
1138
|
|
1136
1139
|
Style/WhenThen:
|
1137
1140
|
Description: 'Use when x then ... for one-line cases.'
|