Commit 7845d49
committed
Enable RuboCop style cops
- enable [Style/AmbiguousEndlessMethodDefinition](https://docs.rubocop.org/rubocop/cops_style.html#styleambiguousendlessmethoddefinition)
- enable [Style/AndOr](https://docs.rubocop.org/rubocop/cops_style.html#styleandor)
- enable [Style/ArrayCoercion](https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion)
- enable [Style/Attr](https://docs.rubocop.org/rubocop/cops_style.html#styleattr)
- enable [Style/BisectedAttrAccessor](https://docs.rubocop.org/rubocop/cops_style.html#stylebisectedattraccessor)
- enable [Style/BlockComments](https://docs.rubocop.org/rubocop/cops_style.html#styleblockcomments)
- enable [Style/CharacterLiteral](https://docs.rubocop.org/rubocop/cops_style.html#stylecharacterliteral)
- enable [Style/ClassAndModuleChildren](https://docs.rubocop.org/rubocop/cops_style.html#styleclassandmodulechildren)
- enable [Style/ClassMethodsDefinitions](https://docs.rubocop.org/rubocop/cops_style.html#styleclassmethodsdefinitions)
- enable [Style/ClassMethods](https://docs.rubocop.org/rubocop/cops_style.html#styleclassmethods)
- enable [Style/ClassVars](https://docs.rubocop.org/rubocop/cops_style.html#styleclassvars)
- enable [Style/ColonMethodCall](https://docs.rubocop.org/rubocop/cops_style.html#stylecolonmethodcall)
- enable [Style/ColonMethodDefinition](https://docs.rubocop.org/rubocop/cops_style.html#stylecolonmethoddefinition)
- enable [Style/CombinableDefined](https://docs.rubocop.org/rubocop/cops_style.html#stylecombinabledefined)
- enable [Style/DateTime](https://docs.rubocop.org/rubocop/cops_style.html#styledatetime)
- enable [Style/DefWithParentheses](https://docs.rubocop.org/rubocop/cops_style.html#styledefwithparentheses)
- enable [Style/DigChain](https://docs.rubocop.org/rubocop/cops_style.html#styledigchain)
- enable [Style/EndlessMethod](https://docs.rubocop.org/rubocop/cops_style.html#styleendlessmethod)
- enable [Style/GlobalVars](https://docs.rubocop.org/rubocop/cops_style.html#styleglobalvars)
- enable [Style/HashSyntax](https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax)
- enable [Style/MagicCommentFormat](https://docs.rubocop.org/rubocop/cops_style.html#stylemagiccommentformat)
- enable [Style/MethodDefParentheses](https://docs.rubocop.org/rubocop/cops_style.html#stylemethoddefparentheses)
- enable [Style/RedundantBegin](https://docs.rubocop.org/rubocop/cops_style.html#styleredundantbegin)
- enable [Style/RedundantReturn](https://docs.rubocop.org/rubocop/cops_style.html#styleredundantreturn)
- enable [Style/RedundantSelf](https://docs.rubocop.org/rubocop/cops_style.html#styleredundantself)
- enable [Style/Semicolon](https://docs.rubocop.org/rubocop/cops_style.html#stylesemicolon)
- enable [Style/SymbolLiteral](https://docs.rubocop.org/rubocop/cops_style.html#stylesymbolliteral)
- enable [Style/TrailingBodyOnClass](https://docs.rubocop.org/rubocop/cops_style.html#styletrailingbodyonclass)
- enable [Style/TrailingBodyOnMethodDefinition](https://docs.rubocop.org/rubocop/cops_style.html#styletrailingbodyonmethoddefinition)
- enable [Style/TrailingBodyOnModule](https://docs.rubocop.org/rubocop/cops_style.html#styletrailingbodyonmodule)
- enable [Style/TrailingMethodEndStatement](https://docs.rubocop.org/rubocop/cops_style.html#styletrailingmethodendstatement)
- enable [Style/UnlessElse](https://docs.rubocop.org/rubocop/cops_style.html#styleunlesselse)
- enable [Style/VariableInterpolation](https://docs.rubocop.org/rubocop/cops_style.html#stylevariableinterpolation)1 parent f801c39 commit 7845d49
File tree
6 files changed
+53
-123
lines changed- bin
- gemfiles
- lib/rubocop/cop/lint
- test
- fixtures
6 files changed
+53
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 618 | + | |
622 | 619 | | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | 637 | | |
641 | 638 | | |
642 | 639 | | |
643 | 640 | | |
644 | 641 | | |
645 | 642 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | 643 | | |
650 | 644 | | |
651 | 645 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | 646 | | |
656 | 647 | | |
657 | 648 | | |
| |||
663 | 654 | | |
664 | 655 | | |
665 | 656 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | 657 | | |
673 | 658 | | |
674 | 659 | | |
675 | 660 | | |
676 | 661 | | |
677 | 662 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 663 | | |
| 664 | + | |
682 | 665 | | |
683 | 666 | | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | 667 | | |
688 | 668 | | |
689 | 669 | | |
| |||
692 | 672 | | |
693 | 673 | | |
694 | 674 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | 675 | | |
702 | | - | |
| 676 | + | |
703 | 677 | | |
704 | 678 | | |
705 | 679 | | |
| |||
731 | 705 | | |
732 | 706 | | |
733 | 707 | | |
734 | | - | |
735 | | - | |
| 708 | + | |
| 709 | + | |
736 | 710 | | |
737 | 711 | | |
738 | | - | |
| 712 | + | |
739 | 713 | | |
740 | 714 | | |
741 | 715 | | |
| |||
795 | 769 | | |
796 | 770 | | |
797 | 771 | | |
798 | | - | |
| 772 | + | |
799 | 773 | | |
800 | 774 | | |
801 | 775 | | |
| |||
858 | 832 | | |
859 | 833 | | |
860 | 834 | | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | 835 | | |
865 | 836 | | |
866 | 837 | | |
| |||
887 | 858 | | |
888 | 859 | | |
889 | 860 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | 861 | | |
894 | 862 | | |
895 | 863 | | |
| |||
947 | 915 | | |
948 | 916 | | |
949 | 917 | | |
950 | | - | |
| 918 | + | |
951 | 919 | | |
952 | 920 | | |
953 | 921 | | |
| |||
976 | 944 | | |
977 | 945 | | |
978 | 946 | | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | 947 | | |
983 | 948 | | |
984 | 949 | | |
| |||
1140 | 1105 | | |
1141 | 1106 | | |
1142 | 1107 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | 1108 | | |
1147 | 1109 | | |
1148 | 1110 | | |
| |||
1215 | 1177 | | |
1216 | 1178 | | |
1217 | 1179 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | 1180 | | |
1225 | 1181 | | |
1226 | 1182 | | |
| |||
1264 | 1220 | | |
1265 | 1221 | | |
1266 | 1222 | | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | 1223 | | |
1271 | 1224 | | |
1272 | 1225 | | |
| |||
1305 | 1258 | | |
1306 | 1259 | | |
1307 | 1260 | | |
1308 | | - | |
1309 | 1261 | | |
1310 | 1262 | | |
1311 | 1263 | | |
1312 | | - | |
1313 | 1264 | | |
1314 | 1265 | | |
1315 | 1266 | | |
| |||
1330 | 1281 | | |
1331 | 1282 | | |
1332 | 1283 | | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | 1284 | | |
1337 | 1285 | | |
1338 | 1286 | | |
1339 | 1287 | | |
1340 | 1288 | | |
1341 | 1289 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | 1290 | | |
1352 | 1291 | | |
1353 | 1292 | | |
| |||
1360 | 1299 | | |
1361 | 1300 | | |
1362 | 1301 | | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | 1302 | | |
1367 | 1303 | | |
1368 | 1304 | | |
1369 | 1305 | | |
1370 | 1306 | | |
1371 | 1307 | | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | 1308 | | |
1376 | 1309 | | |
1377 | 1310 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | 1311 | | |
1382 | 1312 | | |
1383 | 1313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments