Disable Rails/SkipsModelValidations cop (#28712)

This commit is contained in:
Matt Jankowski 2024-01-15 08:46:47 -05:00 committed by GitHub
parent b5afbe0a61
commit a2f02a0775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 46 deletions

View file

@ -109,9 +109,10 @@ Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/auth/*'
# Reason: There are appropriate times to use these features
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsskipsmodelvalidations
Rails/SkipsModelValidations:
Exclude:
- 'db/*migrate/**/*'
Enabled: false
# Reason: We want to preserve the ability to migrate from arbitrary old versions,
# and cannot guarantee that every installation has run every migration as they upgrade.