This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.rubocop.yml
162 lines (120 loc) · 3.13 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
AllCops:
Exclude:
- 'pkg/**/*'
- 'vendor/**/*'
- 'bench/**/*'
Lint/AmbiguousRegexpLiteral:
Enabled: false
Lint/AmbiguousOperator:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
# FIXME: lower by fixing the biggest offenders
Metrics/LineLength:
Max: 184
Metrics/MethodLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# def_delegators’ first symbol is the target, the rest are calls
Style/AlignParameters:
Enabled: false
# FIXME: should this be normalised to `EnforcedStyle: semantic`?
Style/BlockDelimiters:
Enabled: false
# including parametrised modules looks much better without this alignment
Style/ClosingParenthesisIndentation:
Enabled: false
Style/ConstantName:
Exclude:
- yaks/lib/yaks/breaking_changes.rb
Style/Documentation:
Enabled: false
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Style/FileName:
Exclude:
- yaks-html/lib/yaks-html.rb
- yaks-sinatra/lib/yaks-sinatra.rb
- yaks-transit/lib/yaks-transit.rb
# including parametrised modules looks much better without this indentation
Style/FirstParameterIndentation:
Enabled: false
Style/FormatString:
EnforcedStyle: percent
Style/GlobalVars:
Exclude:
- bench/bench.rb
- bench/bench_1000.rb
Style/HashSyntax:
Exclude:
- Rakefile
# some arrays need deeper indenting for readability
Style/IndentArray:
Enabled: false
Style/IndentationWidth:
Exclude:
- yaks/lib/yaks/breaking_changes.rb
# the codebase uses -> consistently
Style/Lambda:
Enabled: false
# FIXME: figure out why fixing this blows tests up
Style/MethodCallParentheses:
Enabled: false
Style/ModuleFunction:
Exclude:
- yaks/lib/yaks/util.rb
Style/MultilineBlockChain:
Enabled: false
Style/PercentLiteralDelimiters:
Exclude:
- yaks/lib/yaks/breaking_changes.rb
- yaks/spec/unit/yaks/config_spec.rb
PreferredDelimiters:
'%i': '[]'
'%w': '[]'
'%W': '[]'
Style/PerlBackrefs:
Enabled: false
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/SignalException:
EnforcedStyle: only_raise
Style/SpaceBeforeSemicolon:
Enabled: false
# FIXME: this should be enforced to either space or no_space
Style/SpaceBeforeBlockBraces:
Enabled: false
# FIXME: this should be enforced to either space or no_space
Style/SpaceInsideBlockBraces:
Enabled: false
# FIXME: make a call whether to fix this one or not
Style/SpaceInsideBrackets:
Enabled: false
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/SpaceInsideStringInterpolation:
Enabled: false
# FIXME: enforce either single_quotes (fewer fixes) or double_quotes
Style/StringLiterals:
Enabled: false
Style/UnneededPercentQ:
Exclude:
- yaks/lib/yaks/breaking_changes.rb
Style/TrailingComma:
Enabled: false
# Allow redundant braces in foo.bar({"qux" => "quz"}), when writing
# e.g. JSON tests this can be more explicit and clear
Style/BracesAroundHashParameters:
Exclude:
- yaks/spec/**/*
Style/SpaceInsideStringInterpolation:
Enabled: false
Style/LambdaCall:
Enabled: false