Skip to content

Instantly share code, notes, and snippets.

Created September 15, 2016 18:02
Show Gist options
  • Save anonymous/8e3fd136a5802186cc67be3e375a364f to your computer and use it in GitHub Desktop.
Save anonymous/8e3fd136a5802186cc67be3e375a364f to your computer and use it in GitHub Desktop.
# Built-in config:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# We do not typically use/need class documentation
Documentation:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 15
Metrics/ModuleLength:
Exclude:
- 'spec/**/*_spec.rb'
Style/RaiseArgs:
Enabled: false
Metrics/ParameterLists:
Max: 6
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
# Run rails specific checks
# https://github.com/bbatsov/rubocop#rails
Rails:
Enabled: true
AllCops:
TargetRubyVersion: 2.2
Include:
# Include important files that don't end in .rb
- '**/Rakefile'
- '**/config.ru'
Exclude:
# exclude files in /vendor because some CI systems put gems in here e.g.
# TravisCI
- 'vendor/**/*'
# exclude the autogenerated schema file as we don't have any control over
# its format
- 'db/schema.rb'
- 'bin/**/*'
- 'doc/**/*'
- 'db/migrate/**/*'
- 'db/seeds.rb'
- 'features/**/*.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment