Add .rubocop.yml to git
This commit is contained in:
parent
900363b783
commit
318a0fa9d7
|
@ -8,4 +8,4 @@
|
|||
/spec/reports/
|
||||
/tmp/
|
||||
spec/examples.txt
|
||||
.rubocop.yml
|
||||
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
AllCops:
|
||||
TargetRubyVersion: 2.4
|
||||
|
||||
Style/EachWithObject:
|
||||
Enabled: false
|
||||
|
||||
Style/StringLiterals:
|
||||
Enabled: true
|
||||
EnforcedStyle: single_quotes
|
||||
|
||||
Style/Alias:
|
||||
Enabled: false
|
||||
|
||||
Style/LambdaCall:
|
||||
Enabled: false
|
||||
|
||||
Style/StabbyLambdaParentheses:
|
||||
Enabled: false
|
||||
|
||||
Style/FormatString:
|
||||
Enabled: false
|
||||
|
||||
Layout/SpaceInLambdaLiteral:
|
||||
Enabled: false
|
||||
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
Enabled: true
|
||||
EnforcedStyle: indented
|
||||
|
||||
Metrics/LineLength:
|
||||
Max: 100
|
||||
|
||||
Metrics/MethodLength:
|
||||
Max: 22
|
||||
|
||||
Metrics/ClassLength:
|
||||
Max: 150
|
||||
|
||||
Metrics/AbcSize:
|
||||
Max: 20
|
||||
|
||||
Metrics/BlockLength:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- 'spec/**/*_spec.rb'
|
||||
|
||||
Metrics/CyclomaticComplexity:
|
||||
Enabled: true
|
||||
Max: 10
|
||||
|
||||
Lint/BooleanSymbol:
|
||||
Enabled: false
|
||||
|
||||
Style/AccessModifierDeclarations:
|
||||
Enabled: false
|
||||
|
||||
Style/BlockDelimiters:
|
||||
EnforcedStyle: semantic
|
||||
|
Loading…
Reference in New Issue