Add rubocop binstub, simplify configuration (#30407)

This commit is contained in:
Matt Jankowski 2024-06-13 10:27:17 -04:00 committed by GitHub
parent 45abddb302
commit 3a191b3797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 210 additions and 227 deletions

27
.rubocop/rails.yml Normal file
View file

@ -0,0 +1,27 @@
---
Rails/FilePath:
EnforcedStyle: arguments
Rails/HttpStatus:
EnforcedStyle: numeric
Rails/LexicallyScopedActionFilter:
Exclude:
- app/controllers/auth/* # Conflicts with `Lint/UselessMethodDefinition` for inherited controller actions
Rails/NegateInclude:
Enabled: false
Rails/RakeEnvironment:
Exclude: # Tasks are doing local work which do not need full env loaded
- lib/tasks/auto_annotate_models.rake
- lib/tasks/emojis.rake
- lib/tasks/mastodon.rake
- lib/tasks/repo.rake
- lib/tasks/statistics.rake
Rails/SkipsModelValidations:
Enabled: false
Rails/UnusedIgnoredColumns:
Enabled: false # Preserve ability to migrate from arbitrary old versions