config/default.yml in rubocop-rails-2.4.2 vs config/default.yml in rubocop-rails-2.5.0

- old
+ new

@@ -266,10 +266,20 @@ Enabled: true VersionAdded: '0.63' Include: - app/controllers/**/*.rb +Rails/IndexBy: + Description: 'Prefer `index_by` over `each_with_object` or `map`.' + Enabled: true + VersionAdded: '2.5' + +Rails/IndexWith: + Description: 'Prefer `index_with` over `each_with_object` or `map`.' + Enabled: true + VersionAdded: '2.5' + Rails/InverseOf: Description: 'Checks for associations where the inverse cannot be determined automatically.' Enabled: true VersionAdded: '0.52' Include: @@ -344,10 +354,12 @@ Safe: false VersionAdded: '2.4' Include: - '**/Rakefile' - '**/*.rake' + Exclude: + - 'lib/capistrano/tasks/**/*.rake' Rails/ReadWriteAttribute: Description: >- Checks for read_attribute(:attr) and write_attribute(:attr, val). @@ -379,10 +391,14 @@ Rails/RefuteMethods: Description: 'Use `assert_not` methods instead of `refute` methods.' Enabled: true VersionAdded: '0.56' + EnforcedStyle: assert_not + SupportedStyles: + - assert_not + - refute Include: - '**/test/**/*' Rails/RelativeDateConstant: Description: 'Do not assign relative date to constants.' @@ -493,9 +509,16 @@ EnforcedStyle: conservative SupportedStyles: - conservative - aggressive AutoCorrect: false + +Rails/UniqueValidationWithoutIndex: + Description: 'Uniqueness validation should be with a unique index.' + Enabled: true + VersionAdded: '2.5' + Include: + - app/models/**/*.rb Rails/UnknownEnv: Description: 'Use correct environment name.' Enabled: true VersionAdded: '0.51'