Created
September 8, 2017 09:51
-
-
Save pachacamac/7e76d40dded32bffb53b627c1e4160ba to your computer and use it in GitHub Desktop.
rubocop config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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