source: other-projects/hathitrust/vagrant-hadoop-cluster/trunk/modules/stdlib/.rubocop.yml@ 30903

Last change on this file since 30903 was 30903, checked in by davidb, 8 years ago

Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details

File size: 7.1 KB
Line 
1require: rubocop-rspec
2AllCops:
3 TargetRubyVersion: 1.9
4 Include:
5 - ./**/*.rb
6 Exclude:
7 - vendor/**/*
8 - .vendor/**/*
9 - pkg/**/*
10 - spec/fixtures/**/*
11Lint/ConditionPosition:
12 Enabled: True
13
14Lint/ElseLayout:
15 Enabled: True
16
17Lint/UnreachableCode:
18 Enabled: True
19
20Lint/UselessComparison:
21 Enabled: True
22
23Lint/EnsureReturn:
24 Enabled: True
25
26Lint/HandleExceptions:
27 Enabled: True
28
29Lint/LiteralInCondition:
30 Enabled: True
31
32Lint/ShadowingOuterLocalVariable:
33 Enabled: True
34
35Lint/LiteralInInterpolation:
36 Enabled: True
37
38Style/HashSyntax:
39 Enabled: True
40
41Style/RedundantReturn:
42 Enabled: True
43
44Lint/AmbiguousOperator:
45 Enabled: True
46
47Lint/AssignmentInCondition:
48 Enabled: True
49
50Style/SpaceBeforeComment:
51 Enabled: True
52
53Style/AndOr:
54 Enabled: True
55
56Style/RedundantSelf:
57 Enabled: True
58
59# Method length is not necessarily an indicator of code quality
60Metrics/MethodLength:
61 Enabled: False
62
63# Module length is not necessarily an indicator of code quality
64Metrics/ModuleLength:
65 Enabled: False
66
67Style/WhileUntilModifier:
68 Enabled: True
69
70Lint/AmbiguousRegexpLiteral:
71 Enabled: True
72
73Lint/Eval:
74 Enabled: True
75
76Lint/BlockAlignment:
77 Enabled: True
78
79Lint/DefEndAlignment:
80 Enabled: True
81
82Lint/EndAlignment:
83 Enabled: True
84
85Lint/DeprecatedClassMethods:
86 Enabled: True
87
88Lint/Loop:
89 Enabled: True
90
91Lint/ParenthesesAsGroupedExpression:
92 Enabled: True
93
94Lint/RescueException:
95 Enabled: True
96
97Lint/StringConversionInInterpolation:
98 Enabled: True
99
100Lint/UnusedBlockArgument:
101 Enabled: True
102
103Lint/UnusedMethodArgument:
104 Enabled: True
105
106Lint/UselessAccessModifier:
107 Enabled: True
108
109Lint/UselessAssignment:
110 Enabled: True
111
112Lint/Void:
113 Enabled: True
114
115Style/AccessModifierIndentation:
116 Enabled: True
117
118Style/AccessorMethodName:
119 Enabled: True
120
121Style/Alias:
122 Enabled: True
123
124Style/AlignArray:
125 Enabled: True
126
127Style/AlignHash:
128 Enabled: True
129
130Style/AlignParameters:
131 Enabled: True
132
133Metrics/BlockNesting:
134 Enabled: True
135
136Style/AsciiComments:
137 Enabled: True
138
139Style/Attr:
140 Enabled: True
141
142Style/BracesAroundHashParameters:
143 Enabled: True
144
145Style/CaseEquality:
146 Enabled: True
147
148Style/CaseIndentation:
149 Enabled: True
150
151Style/CharacterLiteral:
152 Enabled: True
153
154Style/ClassAndModuleCamelCase:
155 Enabled: True
156
157Style/ClassAndModuleChildren:
158 Enabled: False
159
160Style/ClassCheck:
161 Enabled: True
162
163# Class length is not necessarily an indicator of code quality
164Metrics/ClassLength:
165 Enabled: False
166
167Style/ClassMethods:
168 Enabled: True
169
170Style/ClassVars:
171 Enabled: True
172
173Style/WhenThen:
174 Enabled: True
175
176Style/WordArray:
177 Enabled: True
178
179Style/UnneededPercentQ:
180 Enabled: True
181
182Style/Tab:
183 Enabled: True
184
185Style/SpaceBeforeSemicolon:
186 Enabled: True
187
188Style/TrailingBlankLines:
189 Enabled: True
190
191Style/SpaceInsideBlockBraces:
192 Enabled: True
193
194Style/SpaceInsideBrackets:
195 Enabled: True
196
197Style/SpaceInsideHashLiteralBraces:
198 Enabled: True
199
200Style/SpaceInsideParens:
201 Enabled: True
202
203Style/LeadingCommentSpace:
204 Enabled: True
205
206Style/SpaceBeforeFirstArg:
207 Enabled: True
208
209Style/SpaceAfterColon:
210 Enabled: True
211
212Style/SpaceAfterComma:
213 Enabled: True
214
215Style/SpaceAfterMethodName:
216 Enabled: True
217
218Style/SpaceAfterNot:
219 Enabled: True
220
221Style/SpaceAfterSemicolon:
222 Enabled: True
223
224Style/SpaceAroundEqualsInParameterDefault:
225 Enabled: True
226
227Style/SpaceAroundOperators:
228 Enabled: True
229
230Style/SpaceBeforeBlockBraces:
231 Enabled: True
232
233Style/SpaceBeforeComma:
234 Enabled: True
235
236Style/CollectionMethods:
237 Enabled: True
238
239Style/CommentIndentation:
240 Enabled: True
241
242Style/ColonMethodCall:
243 Enabled: True
244
245Style/CommentAnnotation:
246 Enabled: True
247
248# 'Complexity' is very relative
249Metrics/CyclomaticComplexity:
250 Enabled: False
251
252Style/ConstantName:
253 Enabled: True
254
255Style/Documentation:
256 Enabled: False
257
258Style/DefWithParentheses:
259 Enabled: True
260
261Style/PreferredHashMethods:
262 Enabled: True
263
264Style/DotPosition:
265 EnforcedStyle: trailing
266
267Style/DoubleNegation:
268 Enabled: True
269
270Style/EachWithObject:
271 Enabled: True
272
273Style/EmptyLineBetweenDefs:
274 Enabled: True
275
276Style/IndentArray:
277 Enabled: True
278
279Style/IndentHash:
280 Enabled: True
281
282Style/IndentationConsistency:
283 Enabled: True
284
285Style/IndentationWidth:
286 Enabled: True
287
288Style/EmptyLines:
289 Enabled: True
290
291Style/EmptyLinesAroundAccessModifier:
292 Enabled: True
293
294Style/EmptyLiteral:
295 Enabled: True
296
297# Configuration parameters: AllowURI, URISchemes.
298Metrics/LineLength:
299 Enabled: False
300
301Style/MethodCallParentheses:
302 Enabled: True
303
304Style/MethodDefParentheses:
305 Enabled: True
306
307Style/LineEndConcatenation:
308 Enabled: True
309
310Style/TrailingWhitespace:
311 Enabled: True
312
313Style/StringLiterals:
314 Enabled: True
315
316Style/TrailingCommaInArguments:
317 Enabled: True
318
319Style/TrailingCommaInLiteral:
320 Enabled: True
321
322Style/GlobalVars:
323 Enabled: True
324
325Style/GuardClause:
326 Enabled: True
327
328Style/IfUnlessModifier:
329 Enabled: True
330
331Style/MultilineIfThen:
332 Enabled: True
333
334Style/NegatedIf:
335 Enabled: True
336
337Style/NegatedWhile:
338 Enabled: True
339
340Style/Next:
341 Enabled: True
342
343Style/SingleLineBlockParams:
344 Enabled: True
345
346Style/SingleLineMethods:
347 Enabled: True
348
349Style/SpecialGlobalVars:
350 Enabled: True
351
352Style/TrivialAccessors:
353 Enabled: True
354
355Style/UnlessElse:
356 Enabled: True
357
358Style/VariableInterpolation:
359 Enabled: True
360
361Style/VariableName:
362 Enabled: True
363
364Style/WhileUntilDo:
365 Enabled: True
366
367Style/EvenOdd:
368 Enabled: True
369
370Style/FileName:
371 Enabled: True
372
373Style/For:
374 Enabled: True
375
376Style/Lambda:
377 Enabled: True
378
379Style/MethodName:
380 Enabled: True
381
382Style/MultilineTernaryOperator:
383 Enabled: True
384
385Style/NestedTernaryOperator:
386 Enabled: True
387
388Style/NilComparison:
389 Enabled: True
390
391Style/FormatString:
392 Enabled: True
393
394Style/MultilineBlockChain:
395 Enabled: True
396
397Style/Semicolon:
398 Enabled: True
399
400Style/SignalException:
401 Enabled: True
402
403Style/NonNilCheck:
404 Enabled: True
405
406Style/Not:
407 Enabled: True
408
409Style/NumericLiterals:
410 Enabled: True
411
412Style/OneLineConditional:
413 Enabled: True
414
415Style/OpMethod:
416 Enabled: True
417
418Style/ParenthesesAroundCondition:
419 Enabled: True
420
421Style/PercentLiteralDelimiters:
422 Enabled: True
423
424Style/PerlBackrefs:
425 Enabled: True
426
427Style/PredicateName:
428 Enabled: True
429
430Style/RedundantException:
431 Enabled: True
432
433Style/SelfAssignment:
434 Enabled: True
435
436Style/Proc:
437 Enabled: True
438
439Style/RaiseArgs:
440 Enabled: True
441
442Style/RedundantBegin:
443 Enabled: True
444
445Style/RescueModifier:
446 Enabled: True
447
448# based on https://github.com/voxpupuli/modulesync_config/issues/168
449Style/RegexpLiteral:
450 EnforcedStyle: percent_r
451 Enabled: True
452
453Lint/UnderscorePrefixedVariableName:
454 Enabled: True
455
456Metrics/ParameterLists:
457 Enabled: False
458
459Lint/RequireParentheses:
460 Enabled: True
461
462Style/SpaceBeforeFirstArg:
463 Enabled: True
464
465Style/ModuleFunction:
466 Enabled: True
467
468Lint/Debugger:
469 Enabled: True
470
471Style/IfWithSemicolon:
472 Enabled: True
473
474Style/Encoding:
475 Enabled: True
476
477Style/BlockDelimiters:
478 Enabled: True
479
480Style/MultilineBlockLayout:
481 Enabled: True
482
483# 'Complexity' is very relative
484Metrics/AbcSize:
485 Enabled: False
486
487# 'Complexity' is very relative
488Metrics/PerceivedComplexity:
489 Enabled: False
490
491Lint/UselessAssignment:
492 Enabled: True
493
494Style/ClosingParenthesisIndentation:
495 Enabled: False
496
497# RSpec
498
499# We don't use rspec in this way
500RSpec/DescribeClass:
501 Enabled: False
502
503# Example length is not necessarily an indicator of code quality
504RSpec/ExampleLength:
505 Enabled: False
506
507RSpec/NamedSubject:
508 Enabled: False
Note: See TracBrowser for help on using the repository browser.