-
Notifications
You must be signed in to change notification settings - Fork 73
/
.rubocop.yml
44 lines (34 loc) · 959 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
inherit_from: []
inherit_gem:
standard: config/base.yml
require:
- standard
AllCops:
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
- 'node_modules/**/*'
# Opting out of this one. Standard's desired behaviour (one indent when multi line)
# can be weird in some contexts, cf token_authentication.rb`
Layout/ArrayAlignment:
Enabled: false
# Allowing returns
Style/RedundantReturn:
Enabled: false
# Leave trailing commas.
# The case where they're not appropriate are too few to justify switching
# (at least, for now).
# https://github.com/penelopezone/rubyfmt/issues/154
Style/TrailingCommaInArguments:
Enabled: true
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
Enabled: true
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: consistent_comma
Style/NegatedIf:
Enabled: false
Style/ConditionalAssignment:
Enabled: false