Skip to content

Instantly share code, notes, and snippets.

@seratch
Last active August 29, 2015 14:10
Show Gist options
  • Save seratch/afb5f1701a8656994666 to your computer and use it in GitHub Desktop.
Save seratch/afb5f1701a8656994666 to your computer and use it in GitHub Desktop.
.rubocop.yml
AllCops:
# Include gemspec and Rakefile
Include:
- '**/*.rb'
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'app/views/**/*'
- 'node_modules/**/*'
- 'front/**/*'
- 'vendor/**/*'
- 'Guardfile'
RunRailsCops: true
AsciiComments:
Enabled: false
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Max: 5
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 80
Style/AsciiComments:
Enabled: false
Style/Blocks:
Enabled: false
# Respect RubyMine formatter
Style/CaseIndentation:
Enabled: false
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
Style/EmptyLinesAroundBody:
Enabled: false
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
# Name reduce block params |a, e|.
Style/SingleLineBlockParams:
Enabled: false
# Respect RubyMine formatter
Style/SpaceInsideHashLiteralBraces:
Enabled: false
# Cannot deal with AR#eager_load
Style/SymbolProc:
Enabled: false
# Final newline missing.
Style/TrailingBlankLines:
Enabled: false
TrivialAccessors:
Enabled: true
ExactNameMatch: true
Style/SpaceInsideBlockBraces:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/AlignArray:
Enabled: false
# Do not prefix writer method names with set_
Style/AccessorMethodName:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment