Reduce severity of HasManyOrHasOneDependent rule

This is actually a hack. We want Hound to warn us about this rule;
however, we don't want to be notified about our many existing offenses.

Ideally we would add the `dependent` option to all existing models.
However, this is extra tricky because adding this option would change
existing behavior.
This commit is contained in:
Javi Martín
2019-10-25 03:41:00 +02:00
parent c06186a111
commit dd0dbee73b
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1 @@
inherit_from: .rubocop_basic.yml
Rails/HasManyOrHasOneDependent:
Enabled: true

View File

@@ -218,6 +218,10 @@ Rails/FindBy:
Rails/FindEach:
Enabled: true
Rails/HasManyOrHasOneDependent:
Enabled: true
Severity: refactor
Rails/HttpPositionalArguments:
Enabled: true