-
Notifications
You must be signed in to change notification settings - Fork 14
/
.rubocop.yml
141 lines (101 loc) · 2.31 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'bin/*'
# Documentation will or will not be added on whim
Documentation:
Enabled: false
# Disable all metrics.
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Enabled: false
Layout/AlignHash:
Enabled: false
Layout/CommentIndentation:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
Layout/MultilineAssignmentLayout:
Enabled: true
EnforcedStyle: new_line
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/SpaceBeforeSemicolon:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
# Whens are empty even with comments
Lint/EmptyWhen:
Enabled: false
# Allow extra parameters
Lint/UnusedMethodArgument:
Enabled: false
# Allow extra parameters
Lint/UnusedBlockArgument:
Enabled: false
# Allow 'Pokémon-style' exception handling
Lint/RescueException:
Enabled: false
# http://stackoverflow.com/questions/4763121/should-i-use-alias-or-alias-method
Style/Alias:
Enabled: false
Style/AndOr:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BarePercentLiterals:
Enabled: false
Style/BlockComments:
Enabled: false
# Prefer compact module/class defs
Style/ClassAndModuleChildren:
Enabled: false
# Allow CamelCase constants as well as SCREAMING_SNAKE_CASE
Naming/ConstantName:
Enabled: false
Naming/MemoizedInstanceVariableName:
Enabled: false
Style/EmptyLiteral:
Enabled: false
Style/FormatStringToken:
Enabled: false
# I don't understand this one
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalVars:
Enabled: false
# Allowing JavaScript-esque chaining
Style/MultilineBlockChain:
Enabled: false
# Prefer |m, e| for the `reduce` block arguments
Style/SingleLineBlockParams:
Methods:
- reduce: [m, e]
- inject: [m, e]
# Allow % quoting
Style/UnneededPercentQ:
Enabled: false
# Ignore `eval` in the examples folder
Security/Eval:
Exclude:
- src/commands/eval.rb