-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.rubocop.yml
56 lines (41 loc) · 872 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- config/initializers/forbidden_yaml.rb
- !ruby/regexp /(vendor|bundle|bin|db)\/.*/
- spec/support/warden.rb
- spec/**/*
- frontend/**/*
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.3
Rails:
Enabled: true
Metrics/AbcSize:
Max: 20
Metrics/ClassLength:
Max: 100
Exclude:
- spec/**/*.rb
Metrics/CyclomaticComplexity:
Max: 6
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 20
Metrics/PerceivedComplexity:
Max: 10
Style/AlignHash:
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/Documentation:
Enabled: false
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/FrozenStringLiteralComment:
Enabled: false
Rails/Validation:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false