Skip to content

Commit 02524a9

Browse files
committed
Only apply ZeitwerkFriendlyConstant cop to app directory by default
1 parent 4b3075e commit 02524a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ Rails/ZeitwerkFriendlyConstant:
12231223
Description: 'Ensure all constants defined in each file are independently loadable by Zeitwerk.'
12241224
Enabled: 'pending'
12251225
VersionAdded: '<<next>>'
1226+
Include:
1227+
- app/**/*.rb
12261228

12271229
# Accept `redirect_to(...) and return` and similar cases.
12281230
Style/AndOr:

0 commit comments

Comments
 (0)