-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
51 lines (51 loc) · 1.02 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
AllCops:
TargetRubyVersion: 2.3
TargetRailsVersion: 4.2
Exclude:
- 'Dangerfile'
- 'vendor/**.rb'
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
IndentationWidth: 4
Layout/CaseIndentation:
EnforcedStyle: end
IndentOneStep: true
# Enabled: false
Layout/FirstParameterIndentation:
IndentationWidth: 4
Layout/IndentHash:
IndentationWidth: 4
Layout/MultilineMethodCallIndentation:
IndentationWidth: 4
EnforcedStyle: indented_relative_to_receiver
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/EmptyElse:
EnforcedStyle: empty
Style/FormatStringToken:
EnforcedStyle: template
Metrics/LineLength:
Max: 180
Metrics/ClassLength:
Max: 150
Metrics/CyclomaticComplexity:
Max: 7
Metrics/MethodLength:
Max: 20
Metrics/ModuleLength:
Max: 150
Metrics/ParameterLists:
Max: 5
CountKeywordArgs: true
Metrics/PerceivedComplexity:
Max: 8
Metrics/AbcSize:
Max: 17
Metrics/BlockLength:
ExcludedMethods:
- context
- describe
- namespace
- resources
- it
- configure