Configure RuboCop
This commit is contained in:
parent
da5437f5fb
commit
87c2499d7e
1 changed files with 38 additions and 0 deletions
38
.rubocop.yml
38
.rubocop.yml
|
@ -1,3 +1,41 @@
|
|||
AllCops:
|
||||
TargetRubyVersion: 2.3
|
||||
DisplayCopNames: true
|
||||
|
||||
Exclude:
|
||||
- vendor/**/*
|
||||
|
||||
Layout/AccessModifierIndentation:
|
||||
EnforcedStyle: outdent
|
||||
|
||||
Layout/MultilineOperationIndentation:
|
||||
Exclude:
|
||||
- ext/**/*
|
||||
|
||||
Metrics/BlockLength:
|
||||
Exclude:
|
||||
- tox.gemspec
|
||||
- spec/**/*
|
||||
|
||||
Metrics/LineLength:
|
||||
Max: 120
|
||||
|
||||
Style/AndOr:
|
||||
Exclude:
|
||||
- ext/**/*
|
||||
|
||||
Style/DoubleNegation:
|
||||
Enabled: false
|
||||
|
||||
Style/GlobalVars:
|
||||
Exclude:
|
||||
- ext/**/*
|
||||
|
||||
Style/TrailingCommaInArguments:
|
||||
EnforcedStyleForMultiline: comma
|
||||
|
||||
Style/TrailingCommaInLiteral:
|
||||
EnforcedStyleForMultiline: comma
|
||||
|
||||
Style/VariableInterpolation:
|
||||
Enabled: false
|
||||
|
|
Reference in a new issue