Skip to content

Instantly share code, notes, and snippets.

@infertux
Last active October 12, 2017 01:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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