-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
60 lines (48 loc) · 1.07 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
require: rubocop-rails
AllCops:
NewCops: enable
Exclude:
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- '.git/**/*'
- 'bin/**/*'
- 'pkg/**/*'
Layout/EndOfLine:
EnforcedStyle: lf
Style/Lambda:
EnforcedStyle: line_count_dependent
# If we want to have environment dependency, we can add it ourselves
# but we don't need to slow down tasks that don't need it by loading it
Rails/RakeEnvironment:
Enabled: false
# We know what we're doing when we omit join models...
Rails/HasAndBelongsToMany:
Enabled: false
Metrics/ClassLength:
Exclude:
# tests are supposed to be a bit longer...
- 'test/**/*'
Metrics/BlockLength:
Exclude:
- 'test/**/*'
Rails/SquishedSQLHeredocs:
Exclude:
- 'db/migrate/*.rb'
Metrics/MethodLength:
Max: 15 # otherwise it's often hard to build hashes
Exclude:
- 'test/**/*'
- 'db/**/*'
Metrics/AbcSize:
Exclude:
- 'test/**/*'
- 'db/**/*'
Rails/SkipsModelValidations:
Exclude:
- 'test/**/*'
Style/OpenStructUse:
Exclude:
- 'test/**/*'
Style/AsciiComments:
Enabled: false