-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
58 lines (46 loc) · 1.01 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
AllCops:
TargetRubyVersion: 2.6.5
Exclude:
- bin/**/*
- db/schema.rb
- db/seeds.rb
- node_modules/**/*
- storage/**/*
# We don't need to alphabetize gems
Bundler/OrderedGems:
Enabled: false
Layout/ExtraSpacing:
Enabled: false
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Metrics/AbcSize:
Exclude:
- db/migrate/**/*
Metrics/BlockLength:
Max: 50
Exclude:
- config/environments/**/*
- config/routes.rb
- db/migrate/**/*
Metrics/ClassLength:
Max: 150
Exclude:
- db/migrate/**/*
# Allow more room than the default value of 80.
Layout/LineLength:
Max: 120
Metrics/MethodLength:
Exclude:
- db/migrate/**/*
- test/**/*
Metrics/ModuleLength:
Exclude:
- test/**/*
# Avoid offenses for default Rails files like config/application.rb
Style/Documentation:
Enabled: false
# Match the style that Rails generators use
Style/EmptyMethod:
EnforcedStyle: expanded