forked from redbooth/departure
-
Notifications
You must be signed in to change notification settings - Fork 53
/
.rubocop.yml
66 lines (48 loc) · 954 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
57
58
59
60
61
62
63
64
65
66
---
inherit_from:
- .rubocop_todo.yml
require:
- rubocop-performance
AllCops:
TargetRubyVersion: 2.4
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Max: 20
Exclude:
- 'spec/*'
- 'spec/**/*'
Metrics/BlockNesting:
Max: 4
Metrics/ClassLength:
Max: 250
Layout/LineLength:
Max: 120
Exclude:
- 'departure.gemspec'
- 'test_database.rb'
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 250
Metrics/ParameterLists:
Max: 5
Performance/Casecmp:
Enabled: false
Style/CommandLiteral:
Exclude:
- 'test_database.rb'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false # We never ended up being forced to do this for Ruby 3.x
Style/MultilineBlockChain:
Exclude:
- 'spec/integration_spec.rb'
Layout/MultilineMethodCallIndentation:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/RedundantPercentQ:
Exclude:
- 'departure.gemspec'