Skip to content

Instantly share code, notes, and snippets.

@karloku
Created February 25, 2016 06:56
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 karloku/7776105e8ccc38405ecc to your computer and use it in GitHub Desktop.
Save karloku/7776105e8ccc38405ecc to your computer and use it in GitHub Desktop.
My Rails .rubocop.yml
# This is the configuration used to check the rubocop source code.
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'lib/templates/**/*'
- 'config/deploy.rb'
- 'config/deploy/*.rb'
TargetRubyVersion: 2.3
Rails:
Enabled: true
# UTF-8 is the default encoding in Ruby 2.0
Style/Encoding:
Enabled: false
Style/SignalException:
EnforcedStyle: semantic
# 80 characters limit is too strict
Metrics/LineLength:
Max: 140
# A Hash literal do not wrap spaces({aaa: bbb}), as a difference with a inline block({ ... })
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment