Skip to content

Instantly share code, notes, and snippets.

@trejo08
Last active September 10, 2018 17:39
Show Gist options
  • Save trejo08/5cb5934be81cf970684a494bbf459391 to your computer and use it in GitHub Desktop.
Save trejo08/5cb5934be81cf970684a494bbf459391 to your computer and use it in GitHub Desktop.
Preffered Rubocop configuration for rails
## Prefered rubocop conf for rails
## Source: https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
inherit_gem:
rubocop-rails_config:
- config/rails.yml
AllCops:
RubyInterpreters:
- ruby
TargetRubyVersion: 2.4
Layout/IndentationConsistency:
EnforcedStyle: rails
SupportedStyles:
- normal
- rails
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/FrozenStringLiteralComment:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
EnforcedStyle: no_empty_lines
SupportedStyles:
- empty_lines
- no_empty_lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment