chore: Add custom RuboCop cop to enforce one class per file (#12947)

This commit is contained in:
Vinay Keerthi
2025-11-26 12:53:04 +05:30
committed by GitHub
parent 7b20ecd27b
commit 94a9e4e067
3 changed files with 92 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ plugins:
require:
- ./rubocop/use_from_email.rb
- ./rubocop/custom_cop_location.rb
- ./rubocop/one_class_per_file.rb
Layout/LineLength:
Max: 150
@@ -205,6 +206,9 @@ UseFromEmail:
CustomCopLocation:
Enabled: true
Style/OneClassPerFile:
Enabled: true
AllCops:
NewCops: enable
Exclude: