Skip to content

Instantly share code, notes, and snippets.

@infertux
Last active October 12, 2017 01:17
Show Gist options
  • Save infertux/cdd2ccc6e0a0cd94f458 to your computer and use it in GitHub Desktop.
Save infertux/cdd2ccc6e0a0cd94f458 to your computer and use it in GitHub Desktop.
My curated Rubocop config
# See https://github.com/bbatsov/rubocop
# Add this to the top of your .rubocop.yml:
# inherit_from:
# - https://gist.githubusercontent.com/infertux/cdd2ccc6e0a0cd94f458/raw
# AllCops
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'db/schema.rb'
- 'vendor/**/*'
# Metrics
Metrics:
Enabled: false
# Lint
Lint/AmbiguousRegexpLiteral:
Exclude: [features/**/*] # allow "Given /^I am a cuke$/"
Lint/DefEndAlignment:
Enabled: false
Lint/EndAlignment:
Enabled: false
# Style
Style/AccessModifierIndentation:
EnforcedStyle: outdent
Style/AndOr:
Enabled: false
Style/ClosingParenthesisIndentation:
Enabled: false
Style/Documentation:
Enabled: false
Style/ElseAlignment:
Enabled: false
Style/GlobalVars:
AllowedVariables: [$redis]
Style/IndentationWidth:
Enabled: false
Style/MultilineMethodCallBraceLayout:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/PredicateName:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
Style/TrivialAccessors:
ExactNameMatch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment