Skip to content

Instantly share code, notes, and snippets.

@brantz
Created September 27, 2018 14:15
Show Gist options
  • Save brantz/1a632ea389f61cc08745b3064a3bd774 to your computer and use it in GitHub Desktop.
Save brantz/1a632ea389f61cc08745b3064a3bd774 to your computer and use it in GitHub Desktop.
.rubocop.yml WIP
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'db/schema.rb'
- 'config/**/*.rb'
- 'bin/*'
Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
Enabled: false
Style/RedundantSelf:
Enabled: false
IndentationWidth:
Enabled: false
EndAlignment:
Enabled: false
Layout/ElseAlignment:
Enabled: false
Layout/IndentHash:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 50
Metrics/BlockLength:
Max: 50
Exclude:
- 'spec/**/*'
Metrics/AbcSize:
Enabled: false
@texasjusticar
Copy link

Actually here is mine that I've been using for a few days.

Lint/UnderscorePrefixedVariableName:
  Enabled: false

Style/RedundantSelf:
  Enabled: false

Metrics/LineLength:
  Max: 120

Metrics/MethodLength:
  Max: 50

Metrics/BlockLength:
  Max: 50
  Exclude:
    - 'spec/**/*'

Metrics/AbcSize:
  Enabled: false

Style/SymbolArray:
  Enabled: false

Style/WordArray:
  Enabled: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment