-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
48 lines (38 loc) · 956 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
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'bin/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- !ruby/regexp /old_and_unused\.rb$/
TargetRubyVersion: 2.3
Metrics/LineLength:
Max: 120
Metrics/BlockLength:
Enabled: true
Exclude:
- spec/**/*
- app/api/evopark_api/**/endpoints/*
Style/SignalException:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/MultilineOperationIndentation:
EnforcedStyle: aligned
Metrics/AbcSize:
Max: 16.5
# helps for methods that return more complex hashes or use log statements
Metrics/MethodLength:
Max: 15
# We need multiline lambdas with `->` for scope declarations
Style/Lambda:
Enabled: false
# Since it's useful in certain situations and not in most, we can catch those during review
Style/RescueModifier:
Enabled: false
# Sometimes, german umlauts can be useful. Also: UTF-8, bitches!
Style/AsciiComments:
Enabled: false