Skip to content

Commit

Permalink
Only apply ZeitwerkFriendlyConstant cop to app directory by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Mar 1, 2024
1 parent 4b3075e commit 02524a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,8 @@ Rails/ZeitwerkFriendlyConstant:
Description: 'Ensure all constants defined in each file are independently loadable by Zeitwerk.'
Enabled: 'pending'
VersionAdded: '<<next>>'
Include:
- app/**/*.rb

# Accept `redirect_to(...) and return` and similar cases.
Style/AndOr:
Expand Down

0 comments on commit 02524a9

Please sign in to comment.