Skip to content

Commit bcf4946

Browse files
AZQ1994claude
andcommitted
Disable Style/OneClassPerFile
Newer RuboCop releases activated Style/OneClassPerFile by default, which flags two intentional patterns in this codebase: - The ActiveRecord::Associations::Preloader::Association reopen in lib/simple_master.rb, which is a monkey-patch and not a new class. - STI subclass families colocated in a single model file in the rails_sample. Both patterns are deliberate, so disable the cop project-wide. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 42c339d commit bcf4946

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Style/Lambda:
6060
Style/MultilineBlockChain:
6161
Enabled: false
6262

63+
Style/OneClassPerFile:
64+
Enabled: false
65+
6366
Style/StringLiterals:
6467
Enabled: false
6568

0 commit comments

Comments
 (0)