Skip to content

Instantly share code, notes, and snippets.

@voodooGQ
Created November 20, 2017 19:49
Show Gist options
  • Save voodooGQ/103f98dd7b43252ac5ff39d295bc45c5 to your computer and use it in GitHub Desktop.
Save voodooGQ/103f98dd7b43252ac5ff39d295bc45c5 to your computer and use it in GitHub Desktop.
Github Rubocop Adendum
inherit_gem:
rubocop-github:
- config/default.yml
- config/rails.yml
AllCops:
Exclude:
- 'bin/*'
- 'Gemfile'
- 'Guardfile'
DisplayCopNames: true
# Metrics
Metrics/MethodLength:
Max: 40 # Should probably be another method at this point
Metrics/BlockLength:
Max: 30 # Probably a way to shorten up the block
Metrics/ModuleLength:
Max: 200
Metrics/ClassLength:
Max: 125
# Style
Style/GuardClause:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/DoubleNegation:
Enabled: false
# Layout
Layout/ExtraSpacing:
Enabled: false # Allows for aligning assignment equals
Layout/SpaceAroundOperators:
Enabled: false # Allows for aligning assignment equals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment