|
1 | 1 | require: |
2 | | - - rubocop-rails |
3 | 2 | - rubocop-performance |
4 | 3 |
|
5 | 4 | AllCops: |
@@ -113,10 +112,6 @@ Metrics/CyclomaticComplexity: |
113 | 112 | of test cases needed to validate a method. |
114 | 113 | Enabled: false |
115 | 114 |
|
116 | | -Rails/Delegate: |
117 | | - Description: 'Prefer delegate method for delegations.' |
118 | | - Enabled: false |
119 | | - |
120 | 115 | Style/PreferredHashMethods: |
121 | 116 | Description: 'Checks for use of deprecated Hash methods.' |
122 | 117 | StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key' |
@@ -586,54 +581,6 @@ Performance/StringReplacement: |
586 | 581 | Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code' |
587 | 582 | Enabled: false |
588 | 583 |
|
589 | | -# Rails |
590 | | - |
591 | | -Rails/ActionFilter: |
592 | | - Description: 'Enforces consistent use of action filter methods.' |
593 | | - Enabled: false |
594 | | - |
595 | | -Rails/Date: |
596 | | - Description: >- |
597 | | - Checks the correct usage of date aware methods, |
598 | | - such as Date.today, Date.current etc. |
599 | | - Enabled: false |
600 | | - |
601 | | -Rails/FindBy: |
602 | | - Description: 'Prefer find_by over where.first.' |
603 | | - Enabled: false |
604 | | - |
605 | | -Rails/FindEach: |
606 | | - Description: 'Prefer all.find_each over all.find.' |
607 | | - Enabled: false |
608 | | - |
609 | | -Rails/HasAndBelongsToMany: |
610 | | - Description: 'Prefer has_many :through to has_and_belongs_to_many.' |
611 | | - Enabled: false |
612 | | - |
613 | | -Rails/Output: |
614 | | - Description: 'Checks for calls to puts, print, etc.' |
615 | | - Enabled: false |
616 | | - |
617 | | -Rails/ReadWriteAttribute: |
618 | | - Description: >- |
619 | | - Checks for read_attribute(:attr) and |
620 | | - write_attribute(:attr, val). |
621 | | - Enabled: false |
622 | | - |
623 | | -Rails/ScopeArgs: |
624 | | - Description: 'Checks the arguments of ActiveRecord scopes.' |
625 | | - Enabled: false |
626 | | - |
627 | | -Rails/TimeZone: |
628 | | - Description: 'Checks the correct usage of time zone aware methods.' |
629 | | - StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time' |
630 | | - Reference: 'http://danilenko.org/2012/7/6/rails_timezones' |
631 | | - Enabled: false |
632 | | - |
633 | | -Rails/Validation: |
634 | | - Description: 'Use validates :attribute, hash of validations.' |
635 | | - Enabled: false |
636 | | - |
637 | 584 | # Disabled temporarily while we bring code base inline |
638 | 585 | Layout/ArgumentAlignment: |
639 | 586 | Enabled: false |
@@ -794,9 +741,6 @@ Naming/RescuedExceptionsVariableName: |
794 | 741 | Naming/VariableNumber: |
795 | 742 | Enabled: false |
796 | 743 |
|
797 | | -Rails/SkipsModelValidations: |
798 | | - Enabled: false |
799 | | - |
800 | 744 | Style/AccessorGrouping: |
801 | 745 | Enabled: false |
802 | 746 |
|
|
0 commit comments