-
Notifications
You must be signed in to change notification settings - Fork 15
/
.rubocop.yml
79 lines (59 loc) · 1.91 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
69
70
71
72
73
74
75
76
77
78
79
inherit_from: .rubocop_todo.yml
# Should remove when this issue has been resolved:
# https://github.com/bbatsov/rubocop/issues/1544
Lint/ShadowingOuterLocalVariable:
Enabled: false
#---------------------------
# Style configuration
#---------------------------
# Offense count: 169
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/HashSyntax:
Enabled: true
EnforcedStyle: ruby19
# Cop supports --auto-correct.
Style/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyle: no_space
# I think this one is broken...
Style/FileName:
Enabled: false
#---------------------------
# Don't intend to fix these:
#---------------------------
# Cop supports --auto-correct.
# Reason: Double spaces can be useful for grouping code
Style/EmptyLines:
Enabled: false
# Cop supports --auto-correct.
# Reason: I have very big opinions on this one. See:
# https://github.com/bbatsov/ruby-style-guide/issues/329
# https://github.com/bbatsov/ruby-style-guide/pull/325
Style/NegatedIf:
Enabled: false
# Cop supports --auto-correct.
# Reason: I'm fine either way on this, but could maybe be convinced that this should be enforced
Style/Not:
Enabled: false
# Cop supports --auto-correct.
# Reason: I'm fine with this
Style/PerlBackrefs:
Enabled: false
# Configuration parameters: Methods.
# Reason: We should be able to specify full variable names, even if it's only one line
Style/SingleLineBlockParams:
Enabled: false
# Offense count: 1
# Reason: Switched `extend self` to `module_function` in id_property.rb but that caused errors
Style/ModuleFunction:
Enabled: false
# Configuration parameters: AllowSafeAssignment.
# Reason: I'm a proud user of assignment in conditionals.
Lint/AssignmentInCondition:
Enabled: false
# Reason: I'm proud to be part of the double negative Ruby tradition
Style/DoubleNegation:
Enabled: false
Style/MultilineBlockChain:
Enabled: false