Add .rubocop.yml to git

This commit is contained in:
Piotr Solnica 2019-10-21 10:32:17 +02:00
parent 900363b783
commit 318a0fa9d7
No known key found for this signature in database
GPG Key ID: 66BF2FDA7BA0F29C
2 changed files with 60 additions and 1 deletions

2
.gitignore vendored
View File

@ -8,4 +8,4 @@
/spec/reports/
/tmp/
spec/examples.txt
.rubocop.yml

59
.rubocop.yml Normal file
View File

@ -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