fix: Add custom rubocop rules for email fetch (#8987)

This commit is contained in:
Shivam Mishra
2024-02-24 01:28:02 +05:30
committed by GitHub
parent 1de3ff1a6d
commit fa305d76e8
3 changed files with 46 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- ./rubocop/use_from_email.rb
- ./rubocop/custom_cop_location.rb
Layout/LineLength:
Max: 150
@@ -140,6 +142,16 @@ RSpec/MultipleExpectations:
RSpec/MultipleMemoizedHelpers:
Max: 14
# custom rules
UseFromEmail:
Enabled: true
Exclude:
- 'app/models/user.rb'
- 'app/models/contact.rb'
CustomCopLocation:
Enabled: true
AllCops:
NewCops: enable
Exclude: