-
Notifications
You must be signed in to change notification settings - Fork 12
/
.rubocop.yml
68 lines (50 loc) · 1.41 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
61
62
63
64
65
66
67
68
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- spec/fixtures/**/*
TargetRubyVersion: 2.3
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent
Layout/HeredocIndentation:
EnforcedStyle: squiggly
Layout/MultilineMethodCallBraceLayout:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# We use the symbols `:true` and `:false` in S-expressions.
Lint/BooleanSymbol:
Enabled: false
# Not useful compared to e.g. AbcSize
Metrics/BlockLength:
Enabled: false
# Not useful compared to e.g. AbcSize
Metrics/ClassLength:
Enabled: false
# Not useful compared to e.g. AbcSize
Metrics/MethodLength:
Enabled: false
# Not useful compared to e.g. AbcSize
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Max: 6
# EOS is a well-known delimiter and thus satisfactory.
Naming/HeredocDelimiterNaming:
Enabled: false
# Prefer semantic delimiters, but avoid `end.x`. Too subtle to lint.
Style/BlockDelimiters:
Enabled: false
Style/Documentation:
Exclude:
- "spec/**/*"
# Too subtle to lint. Avoid postfix operators unless line is very simple.
Style/IfUnlessModifier:
Enabled: false
# Guard clauses are great, but this is too subtle to lint.
Style/GuardClause:
Enabled: false
# Too subtle to lint. Avoid postfix operators unless line is very simple.
Style/WhileUntilModifier:
Enabled: false