.rubocop.yml 7.44 KB
Newer Older
1
require: rubocop-rspec
2
AllCops:
3
  TargetRubyVersion: 1.9
4 5 6
  Include:
    - ./**/*.rb
  Exclude:
7
    - files/**/*
8
    - vendor/**/*
9
    - .vendor/**/*
10 11
    - pkg/**/*
    - spec/fixtures/**/*
Tim Meusel's avatar
Tim Meusel committed
12
Lint/ConditionPosition:
Tim Meusel's avatar
Tim Meusel committed
13
  Enabled: True
14

Tim Meusel's avatar
Tim Meusel committed
15
Lint/ElseLayout:
Tim Meusel's avatar
Tim Meusel committed
16
  Enabled: True
17

Tim Meusel's avatar
Tim Meusel committed
18
Lint/UnreachableCode:
Tim Meusel's avatar
Tim Meusel committed
19
  Enabled: True
20

Tim Meusel's avatar
Tim Meusel committed
21
Lint/UselessComparison:
Tim Meusel's avatar
Tim Meusel committed
22
  Enabled: True
23

Tim Meusel's avatar
Tim Meusel committed
24
Lint/EnsureReturn:
Tim Meusel's avatar
Tim Meusel committed
25
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
26 27

Lint/HandleExceptions:
Tim Meusel's avatar
Tim Meusel committed
28
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
29 30

Lint/LiteralInCondition:
Tim Meusel's avatar
Tim Meusel committed
31
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
32 33

Lint/ShadowingOuterLocalVariable:
Tim Meusel's avatar
Tim Meusel committed
34
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
35 36

Lint/LiteralInInterpolation:
Tim Meusel's avatar
Tim Meusel committed
37
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
38 39

Style/HashSyntax:
Tim Meusel's avatar
Tim Meusel committed
40
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
41 42

Style/RedundantReturn:
Tim Meusel's avatar
Tim Meusel committed
43
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
44 45

Lint/AmbiguousOperator:
Tim Meusel's avatar
Tim Meusel committed
46
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
47 48

Lint/AssignmentInCondition:
Tim Meusel's avatar
Tim Meusel committed
49
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
50 51

Style/SpaceBeforeComment:
Tim Meusel's avatar
Tim Meusel committed
52
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
53 54

Style/AndOr:
Tim Meusel's avatar
Tim Meusel committed
55
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
56 57

Style/RedundantSelf:
Tim Meusel's avatar
Tim Meusel committed
58
  Enabled: True
59

Tim Meusel's avatar
Tim Meusel committed
60
Metrics/BlockLength:
61 62
  Enabled: False

63 64
# Method length is not necessarily an indicator of code quality
Metrics/MethodLength:
Tim Meusel's avatar
Tim Meusel committed
65
  Enabled: False
66

67 68
# Module length is not necessarily an indicator of code quality
Metrics/ModuleLength:
Tim Meusel's avatar
Tim Meusel committed
69
  Enabled: False
70

Tim Meusel's avatar
Tim Meusel committed
71
Style/WhileUntilModifier:
Tim Meusel's avatar
Tim Meusel committed
72
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
73 74

Lint/AmbiguousRegexpLiteral:
Tim Meusel's avatar
Tim Meusel committed
75
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
76

Spencer Krum's avatar
Spencer Krum committed
77
Security/Eval:
Tim Meusel's avatar
Tim Meusel committed
78
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
79 80

Lint/BlockAlignment:
Tim Meusel's avatar
Tim Meusel committed
81
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
82 83

Lint/DefEndAlignment:
Tim Meusel's avatar
Tim Meusel committed
84
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
85 86

Lint/EndAlignment:
Tim Meusel's avatar
Tim Meusel committed
87
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
88 89

Lint/DeprecatedClassMethods:
Tim Meusel's avatar
Tim Meusel committed
90
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
91 92

Lint/Loop:
Tim Meusel's avatar
Tim Meusel committed
93
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
94 95

Lint/ParenthesesAsGroupedExpression:
Tim Meusel's avatar
Tim Meusel committed
96
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
97 98

Lint/RescueException:
Tim Meusel's avatar
Tim Meusel committed
99
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
100 101

Lint/StringConversionInInterpolation:
Tim Meusel's avatar
Tim Meusel committed
102
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
103 104

Lint/UnusedBlockArgument:
Tim Meusel's avatar
Tim Meusel committed
105
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
106 107

Lint/UnusedMethodArgument:
Tim Meusel's avatar
Tim Meusel committed
108
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
109 110

Lint/UselessAccessModifier:
Tim Meusel's avatar
Tim Meusel committed
111
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
112 113

Lint/UselessAssignment:
Tim Meusel's avatar
Tim Meusel committed
114
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
115 116

Lint/Void:
Tim Meusel's avatar
Tim Meusel committed
117
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
118 119

Style/AccessModifierIndentation:
Tim Meusel's avatar
Tim Meusel committed
120
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
121 122

Style/AccessorMethodName:
Tim Meusel's avatar
Tim Meusel committed
123
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
124 125

Style/Alias:
Tim Meusel's avatar
Tim Meusel committed
126
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
127 128

Style/AlignArray:
Tim Meusel's avatar
Tim Meusel committed
129
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
130 131

Style/AlignHash:
Tim Meusel's avatar
Tim Meusel committed
132
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
133 134

Style/AlignParameters:
Tim Meusel's avatar
Tim Meusel committed
135
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
136 137

Metrics/BlockNesting:
Tim Meusel's avatar
Tim Meusel committed
138
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
139 140

Style/AsciiComments:
Tim Meusel's avatar
Tim Meusel committed
141
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
142 143

Style/Attr:
Tim Meusel's avatar
Tim Meusel committed
144
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
145 146

Style/BracesAroundHashParameters:
Tim Meusel's avatar
Tim Meusel committed
147
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
148 149

Style/CaseEquality:
Tim Meusel's avatar
Tim Meusel committed
150
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
151 152

Style/CaseIndentation:
Tim Meusel's avatar
Tim Meusel committed
153
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
154 155

Style/CharacterLiteral:
Tim Meusel's avatar
Tim Meusel committed
156
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
157 158

Style/ClassAndModuleCamelCase:
Tim Meusel's avatar
Tim Meusel committed
159
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
160 161

Style/ClassAndModuleChildren:
Tim Meusel's avatar
Tim Meusel committed
162
  Enabled: False
Tim Meusel's avatar
Tim Meusel committed
163 164

Style/ClassCheck:
Tim Meusel's avatar
Tim Meusel committed
165
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
166

167 168
# Class length is not necessarily an indicator of code quality
Metrics/ClassLength:
Tim Meusel's avatar
Tim Meusel committed
169
  Enabled: False
170

Tim Meusel's avatar
Tim Meusel committed
171
Style/ClassMethods:
Tim Meusel's avatar
Tim Meusel committed
172
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
173 174

Style/ClassVars:
Tim Meusel's avatar
Tim Meusel committed
175
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
176 177

Style/WhenThen:
Tim Meusel's avatar
Tim Meusel committed
178
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
179 180

Style/WordArray:
Tim Meusel's avatar
Tim Meusel committed
181
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
182 183

Style/UnneededPercentQ:
Tim Meusel's avatar
Tim Meusel committed
184
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
185 186

Style/Tab:
Tim Meusel's avatar
Tim Meusel committed
187
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
188 189

Style/SpaceBeforeSemicolon:
Tim Meusel's avatar
Tim Meusel committed
190
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
191 192

Style/TrailingBlankLines:
Tim Meusel's avatar
Tim Meusel committed
193
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
194 195

Style/SpaceInsideBlockBraces:
Tim Meusel's avatar
Tim Meusel committed
196
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
197 198

Style/SpaceInsideBrackets:
Tim Meusel's avatar
Tim Meusel committed
199
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
200 201

Style/SpaceInsideHashLiteralBraces:
Tim Meusel's avatar
Tim Meusel committed
202
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
203 204

Style/SpaceInsideParens:
Tim Meusel's avatar
Tim Meusel committed
205
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
206 207

Style/LeadingCommentSpace:
Tim Meusel's avatar
Tim Meusel committed
208
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
209 210

Style/SpaceBeforeFirstArg:
Tim Meusel's avatar
Tim Meusel committed
211
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
212 213

Style/SpaceAfterColon:
Tim Meusel's avatar
Tim Meusel committed
214
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
215 216

Style/SpaceAfterComma:
Tim Meusel's avatar
Tim Meusel committed
217
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
218 219

Style/SpaceAfterMethodName:
Tim Meusel's avatar
Tim Meusel committed
220
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
221 222

Style/SpaceAfterNot:
Tim Meusel's avatar
Tim Meusel committed
223
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
224 225

Style/SpaceAfterSemicolon:
Tim Meusel's avatar
Tim Meusel committed
226
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
227 228

Style/SpaceAroundEqualsInParameterDefault:
Tim Meusel's avatar
Tim Meusel committed
229
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
230 231

Style/SpaceAroundOperators:
Tim Meusel's avatar
Tim Meusel committed
232
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
233 234

Style/SpaceBeforeBlockBraces:
Tim Meusel's avatar
Tim Meusel committed
235
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
236 237

Style/SpaceBeforeComma:
Tim Meusel's avatar
Tim Meusel committed
238
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
239 240

Style/CollectionMethods:
Tim Meusel's avatar
Tim Meusel committed
241
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
242 243

Style/CommentIndentation:
Tim Meusel's avatar
Tim Meusel committed
244
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
245 246

Style/ColonMethodCall:
Tim Meusel's avatar
Tim Meusel committed
247
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
248 249

Style/CommentAnnotation:
Tim Meusel's avatar
Tim Meusel committed
250
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
251 252 253

# 'Complexity' is very relative
Metrics/CyclomaticComplexity:
Tim Meusel's avatar
Tim Meusel committed
254
  Enabled: False
Tim Meusel's avatar
Tim Meusel committed
255 256

Style/ConstantName:
Tim Meusel's avatar
Tim Meusel committed
257
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
258 259

Style/Documentation:
Tim Meusel's avatar
Tim Meusel committed
260
  Enabled: False
Tim Meusel's avatar
Tim Meusel committed
261 262

Style/DefWithParentheses:
Tim Meusel's avatar
Tim Meusel committed
263
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
264

Tim Meusel's avatar
Tim Meusel committed
265
Style/PreferredHashMethods:
Tim Meusel's avatar
Tim Meusel committed
266
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
267 268 269 270 271

Style/DotPosition:
  EnforcedStyle: trailing

Style/DoubleNegation:
Tim Meusel's avatar
Tim Meusel committed
272
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
273 274

Style/EachWithObject:
Tim Meusel's avatar
Tim Meusel committed
275
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
276 277

Style/EmptyLineBetweenDefs:
Tim Meusel's avatar
Tim Meusel committed
278
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
279 280

Style/IndentArray:
Tim Meusel's avatar
Tim Meusel committed
281
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
282 283

Style/IndentHash:
Tim Meusel's avatar
Tim Meusel committed
284
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
285 286

Style/IndentationConsistency:
Tim Meusel's avatar
Tim Meusel committed
287
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
288 289

Style/IndentationWidth:
Tim Meusel's avatar
Tim Meusel committed
290
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
291 292

Style/EmptyLines:
Tim Meusel's avatar
Tim Meusel committed
293
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
294 295

Style/EmptyLinesAroundAccessModifier:
Tim Meusel's avatar
Tim Meusel committed
296
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
297 298

Style/EmptyLiteral:
Tim Meusel's avatar
Tim Meusel committed
299
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
300 301 302

# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Tim Meusel's avatar
Tim Meusel committed
303
  Enabled: False
304

Spencer Krum's avatar
Spencer Krum committed
305
Style/MethodCallWithoutArgsParentheses:
Tim Meusel's avatar
Tim Meusel committed
306
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
307 308

Style/MethodDefParentheses:
Tim Meusel's avatar
Tim Meusel committed
309
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
310 311

Style/LineEndConcatenation:
Tim Meusel's avatar
Tim Meusel committed
312
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
313 314

Style/TrailingWhitespace:
Tim Meusel's avatar
Tim Meusel committed
315
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
316 317

Style/StringLiterals:
Tim Meusel's avatar
Tim Meusel committed
318
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
319 320

Style/TrailingCommaInArguments:
Tim Meusel's avatar
Tim Meusel committed
321
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
322 323

Style/TrailingCommaInLiteral:
Tim Meusel's avatar
Tim Meusel committed
324
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
325 326

Style/GlobalVars:
Tim Meusel's avatar
Tim Meusel committed
327
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
328 329

Style/GuardClause:
Tim Meusel's avatar
Tim Meusel committed
330
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
331 332

Style/IfUnlessModifier:
Tim Meusel's avatar
Tim Meusel committed
333
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
334 335

Style/MultilineIfThen:
Tim Meusel's avatar
Tim Meusel committed
336
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
337 338

Style/NegatedIf:
Tim Meusel's avatar
Tim Meusel committed
339
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
340 341

Style/NegatedWhile:
Tim Meusel's avatar
Tim Meusel committed
342
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
343 344

Style/Next:
Tim Meusel's avatar
Tim Meusel committed
345
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
346 347

Style/SingleLineBlockParams:
Tim Meusel's avatar
Tim Meusel committed
348
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
349 350

Style/SingleLineMethods:
Tim Meusel's avatar
Tim Meusel committed
351
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
352 353

Style/SpecialGlobalVars:
Tim Meusel's avatar
Tim Meusel committed
354
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
355 356

Style/TrivialAccessors:
Tim Meusel's avatar
Tim Meusel committed
357
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
358 359

Style/UnlessElse:
Tim Meusel's avatar
Tim Meusel committed
360
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
361 362

Style/VariableInterpolation:
Tim Meusel's avatar
Tim Meusel committed
363
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
364 365

Style/VariableName:
Tim Meusel's avatar
Tim Meusel committed
366
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
367 368

Style/WhileUntilDo:
Tim Meusel's avatar
Tim Meusel committed
369
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
370 371

Style/EvenOdd:
Tim Meusel's avatar
Tim Meusel committed
372
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
373 374

Style/FileName:
Tim Meusel's avatar
Tim Meusel committed
375
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
376 377

Style/For:
Tim Meusel's avatar
Tim Meusel committed
378
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
379 380

Style/Lambda:
Tim Meusel's avatar
Tim Meusel committed
381
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
382 383

Style/MethodName:
Tim Meusel's avatar
Tim Meusel committed
384
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
385 386

Style/MultilineTernaryOperator:
Tim Meusel's avatar
Tim Meusel committed
387
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
388 389

Style/NestedTernaryOperator:
Tim Meusel's avatar
Tim Meusel committed
390
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
391 392

Style/NilComparison:
Tim Meusel's avatar
Tim Meusel committed
393
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
394 395

Style/FormatString:
Tim Meusel's avatar
Tim Meusel committed
396
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
397 398

Style/MultilineBlockChain:
Tim Meusel's avatar
Tim Meusel committed
399
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
400 401

Style/Semicolon:
Tim Meusel's avatar
Tim Meusel committed
402
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
403 404

Style/SignalException:
Tim Meusel's avatar
Tim Meusel committed
405
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
406 407

Style/NonNilCheck:
Tim Meusel's avatar
Tim Meusel committed
408
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
409 410

Style/Not:
Tim Meusel's avatar
Tim Meusel committed
411
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
412 413

Style/NumericLiterals:
Tim Meusel's avatar
Tim Meusel committed
414
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
415 416

Style/OneLineConditional:
Tim Meusel's avatar
Tim Meusel committed
417
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
418 419

Style/OpMethod:
Tim Meusel's avatar
Tim Meusel committed
420
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
421 422

Style/ParenthesesAroundCondition:
Tim Meusel's avatar
Tim Meusel committed
423
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
424 425

Style/PercentLiteralDelimiters:
Tim Meusel's avatar
Tim Meusel committed
426
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
427 428

Style/PerlBackrefs:
Tim Meusel's avatar
Tim Meusel committed
429
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
430 431

Style/PredicateName:
Tim Meusel's avatar
Tim Meusel committed
432
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
433 434

Style/RedundantException:
Tim Meusel's avatar
Tim Meusel committed
435
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
436 437

Style/SelfAssignment:
Tim Meusel's avatar
Tim Meusel committed
438
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
439 440

Style/Proc:
Tim Meusel's avatar
Tim Meusel committed
441
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
442 443

Style/RaiseArgs:
Tim Meusel's avatar
Tim Meusel committed
444
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
445 446

Style/RedundantBegin:
Tim Meusel's avatar
Tim Meusel committed
447
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
448 449

Style/RescueModifier:
Tim Meusel's avatar
Tim Meusel committed
450
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
451 452

# based on https://github.com/voxpupuli/modulesync_config/issues/168
453
Style/RegexpLiteral:
Tim Meusel's avatar
Tim Meusel committed
454
  EnforcedStyle: percent_r
Tim Meusel's avatar
Tim Meusel committed
455
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
456 457

Lint/UnderscorePrefixedVariableName:
Tim Meusel's avatar
Tim Meusel committed
458
  Enabled: True
459

Tim Meusel's avatar
Tim Meusel committed
460
Metrics/ParameterLists:
Tim Meusel's avatar
Tim Meusel committed
461
  Enabled: False
462

Tim Meusel's avatar
Tim Meusel committed
463
Lint/RequireParentheses:
Tim Meusel's avatar
Tim Meusel committed
464
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
465 466

Style/SpaceBeforeFirstArg:
Tim Meusel's avatar
Tim Meusel committed
467
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
468 469

Style/ModuleFunction:
Tim Meusel's avatar
Tim Meusel committed
470
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
471 472

Lint/Debugger:
Tim Meusel's avatar
Tim Meusel committed
473
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
474 475

Style/IfWithSemicolon:
Tim Meusel's avatar
Tim Meusel committed
476
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
477 478

Style/Encoding:
Tim Meusel's avatar
Tim Meusel committed
479
  Enabled: True
480 481

Style/BlockDelimiters:
Tim Meusel's avatar
Tim Meusel committed
482
  Enabled: True
483 484

Style/MultilineBlockLayout:
Tim Meusel's avatar
Tim Meusel committed
485
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
486 487 488 489 490 491 492

# 'Complexity' is very relative
Metrics/AbcSize:
  Enabled: False

# 'Complexity' is very relative
Metrics/PerceivedComplexity:
493
  Enabled: False
494

Tim Meusel's avatar
Tim Meusel committed
495
Lint/UselessAssignment:
Tim Meusel's avatar
Tim Meusel committed
496
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
497 498

Style/ClosingParenthesisIndentation:
Tim Meusel's avatar
Tim Meusel committed
499
  Enabled: True
Tim Meusel's avatar
Tim Meusel committed
500 501

# RSpec
502 503 504 505 506 507 508 509

# We don't use rspec in this way
RSpec/DescribeClass:
  Enabled: False

# Example length is not necessarily an indicator of code quality
RSpec/ExampleLength:
  Enabled: False
Tim Meusel's avatar
Tim Meusel committed
510 511 512

RSpec/NamedSubject:
  Enabled: False
Tim Meusel's avatar
Tim Meusel committed
513 514 515 516 517 518 519 520

# disabled for now since they cause a lot of issues
# these issues aren't easy to fix
RSpec/RepeatedDescription:
  Enabled: False

RSpec/NestedGroups:
  Enabled: False
521 522 523 524

# disable Yaml safe_load. This is needed to support ruby2.0.0 development envs
Security/YAMLLoad:
  Enabled: false