Skip to content

Instantly share code, notes, and snippets.

@smapira
Last active July 28, 2020 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smapira/d07bd6464241cc559bef1548895b9af0 to your computer and use it in GitHub Desktop.
Save smapira/d07bd6464241cc559bef1548895b9af0 to your computer and use it in GitHub Desktop.
rubocop.yml for new rails project
AllCops:
Exclude:
- 'vendor/**/*'
- 'db/seeds.rb'
- 'db/seeds/**/*'
- 'db/schema.rb'
- 'db/migrate/**/*'
- 'node_modules/**/*'
- 'config/initializers/**/*'
- 'bin/**/*'
- !ruby/regexp /old_and_unused\.rb$/
TargetRubyVersion: 2.7
TargetRailsVersion: 6.0
AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Layout/LineLength:
AutoCorrect: true
Max: 100
IgnoredPatterns: ['\A#'] # Ignore comment line.
Metrics/BlockLength:
AutoCorrect: true
Max: 100
Metrics/MethodLength:
AutoCorrect: true
Max: 20
Metrics/ModuleLength:
Max: 180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment