Skip to content

Instantly share code, notes, and snippets.

@cdale77
Created May 25, 2016 17:29
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 cdale77/d4dd75c6914f80ecf1ccc271aba4e246 to your computer and use it in GitHub Desktop.
Save cdale77/d4dd75c6914f80ecf1ccc271aba4e246 to your computer and use it in GitHub Desktop.
Rubocop configuration file
AllCops:
Exclude:
- 'db/**/*'
TargetRubyVersion: 2.3
Rails:
Enabled: true
########################## Lint ################################
Lint/AssignmentInCondition:
Enabled: false
Lint/EndAlignment:
AlignWith: variable
Lint/HandleExceptions:
Enabled: false
########################## Metrics ################################
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
########################## Styles ################################
Style/AlignParameters:
Enabled: false
Style/AlignHash:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/ClosingParenthesisIndentation:
Enabled: false
Style/CommentIndentation:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyLinesAroundBlockBody:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/EmptyLinesAroundModuleBody:
Enabled: false
Style/EmptyLinesAroundMethodBody:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/IndentArray:
Enabled: false
Style/Lambda:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/MultilineMethodCallIndentation:
EnforcedStyle: aligned
Style/MultilineOperationIndentation:
EnforcedStyle: aligned
Style/MutableConstant:
Enabled: false
Style/Next:
Enabled: false
Style/PredicateName:
NamePrefixBlacklist:
- is_
- have_
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': '{}'
'%q': '{}'
'%Q': '{}'
'%r': '<>'
'%s': '{}'
'%w': '{}'
'%W': '{}'
'%x': '{}'
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/TrailingCommaInLiteral:
Enabled: false
Style/UnneededPercentQ:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment