Skip to content

Instantly share code, notes, and snippets.

@pachacamac
Created September 8, 2017 09:51
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 pachacamac/7e76d40dded32bffb53b627c1e4160ba to your computer and use it in GitHub Desktop.
Save pachacamac/7e76d40dded32bffb53b627c1e4160ba to your computer and use it in GitHub Desktop.
rubocop config
AllCops:
RunRailsCops: true
TargetRubyVersion: 2.4
Style/Encoding:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 12
Metrics/ClassLength:
Max: 500
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
Enabled: true
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/ParenthesesAroundCondition:
AllowSafeAssignment: false
Lint/AssignmentInCondition:
AllowSafeAssignment: false
Style/SignalException:
EnforcedStyle: only_raise
Lint/HandleExceptions:
Enabled: false
Style/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
# { ... } for multi-line blocks is okay, follow Weirichs rule instead:
# https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
Style/BlockDelimiters:
Enabled: false
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/SingleLineBlockParams:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: true
Style/OpMethod:
Enabled: false
Lint/Debugger:
Enabled: false
Style/MethodDefParentheses:
Enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment