-
Notifications
You must be signed in to change notification settings - Fork 9
/
.rubocop.yml
70 lines (51 loc) · 1.03 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
require:
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
TargetRailsVersion: 6.1
Rails:
Enabled: true
Layout/LineLength:
Max: 160
Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/AbcSize:
Max: 40
Metrics/CyclomaticComplexity:
Max: 10
Metrics/ClassLength:
CountComments: false
Max: 300
Metrics/ModuleLength:
CountComments: false
Max: 300
Naming/VariableNumber:
Enabled: false
Rails/DynamicFindBy:
Whitelist:
- find_by_friendly_param
- find_by_name_or_alias
- find_by_name_or_alias_or_create
- find_by_normalized_path!
- find_by_slug
- find_by_sql
Rails/FilePath:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/Documentation:
Enabled: false
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/NumericPredicate:
Enabled: false