-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
executable file
·56 lines (56 loc) · 1.24 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
52
53
54
55
56
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
Style/FrozenStringLiteralComment:
Enabled: false
Layout/LeadingCommentSpace:
Enabled: false
Layout/LineLength:
Max: 200
# If AbcSize > 50, really really really really really really really complex
Metrics/AbcSize:
Max: 50
# Use the default setting
Metrics/BlockNesting:
Enabled: true
Metrics/BlockLength:
Max: 200
Exclude:
# RuboCop's default
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
# In many cases, config/routes.rb has very long blocks
- 'config/routes.rb'
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 30
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: true
Max: 4
Metrics/PerceivedComplexity:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Layout/BlockAlignment:
Enabled: false
Layout/DefEndAlignment:
Enabled: false
Layout/EndAlignment:
Enabled: false
Layout/ClosingHeredocIndentation:
Enabled: false
Layout/LeadingEmptyLines:
Enabled: false
Layout/SpaceInsideStringInterpolation:
EnforcedStyle: space