diff options
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 3c765d5b1d..08d1c875dc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +require: './ci/custom_cops/lib/custom_cops' + AllCops: TargetRubyVersion: 2.4 # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop @@ -7,6 +9,17 @@ AllCops: - '**/templates/**/*' - '**/vendor/**/*' - 'actionpack/lib/action_dispatch/journey/parser.rb' + - 'railties/test/fixtures/tmp/**/*' + +# Prefer assert_not_x over refute_x +CustomCops/RefuteNot: + Include: + - '**/*_test.rb' + +# Prefer assert_not over assert ! +CustomCops/AssertNot: + Include: + - '**/*_test.rb' # Prefer &&/|| over and/or. Style/AndOr: |