My project is extending open-source classes from a third-party gem that we don\'t want to hold to the same coding standards as our own code. Refactoring the gem code isn\'t
For your convenience, here is the .rubocop.yml I frequently used.
See formal explanation of .rubocop.yml here.
AllCops:
Exclude:
- Berksfile
- recipes/basic.rb
- attributes/*.rb
# Customize rules
Metrics/LineLength:
Max: 95
MethodLength:
Max: 35
Metrics/AbcSize:
Enabled: false
BlockLength:
Max: 70
I constantly bump by rubocop errors and warning. Thus I've published this post.
Common Rubocop Errors: Improve Your Ruby Code Quality