-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
40 lines (33 loc) · 959 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require:
- rubocop-rspec
- rubocop-rake
- rubocop-performance
AllCops:
# note additional conf in spec/
TargetRubyVersion: 2.5
NewCops: enable
SuggestExtensions: false
Exclude:
- gemfiles/*
- lib/deprecation_collector/web/views/*.template.rb
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
# Style/StringLiteralsInInterpolation:
# Enabled: true
# EnforcedStyle: double_quotes
Layout/LineLength:
Max: 120
Metrics/ClassLength: { Max: 230 }
Metrics/MethodLength: { Max: 22 }
Metrics/AbcSize: { Max: 24 }
Metrics/CyclomaticComplexity: { Max: 9 }
Metrics/PerceivedComplexity: { Max: 9 }
Metrics/ParameterLists: { CountKeywordArgs: false }
RSpec/ExampleLength: { Enabled: false }
RSpec/MultipleExpectations: { Enabled: false }
RSpec/MessageSpies: { Enabled: false }
RSpec/BeforeAfterAll: { Enabled: false }
RSpec/StubbedMock: { Enabled: false }
RSpec/NestedGroups: { Max: 4 }
Style/Lambda: { Enabled: false }