2 inherit_from: .rubocop_todo.yml
9 TargetRubyVersion: '2.6'
24 Description: People have wide screens, use them.
27 Description: Beware of using after(:all) as it may cause state to leak between tests.
28 A necessary evil in acceptance testing.
30 - spec/acceptance/**/*.rb
32 Description: Prefer explicit :each argument, matching existing module's style
36 - spec/unit/facter/**/*.rb
37 Style/BlockDelimiters:
38 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
40 EnforcedStyle: braces_for_chaining
41 Style/ClassAndModuleChildren:
42 Description: Compact style reduces the required amount of indentation.
43 EnforcedStyle: compact
45 Description: Enforce against empty else clauses, but allow `nil` for clarity.
48 Description: Following the main puppet project's style, prefer the % format format.
49 EnforcedStyle: percent
50 Style/FormatStringToken:
51 Description: Following the main puppet project's style, prefer the simpler template
52 tokens over annotated ones.
53 EnforcedStyle: template
55 Description: Prefer the keyword for easier discoverability.
56 EnforcedStyle: literal
58 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
59 EnforcedStyle: percent_r
60 Style/TernaryParentheses:
61 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
62 on complex expressions for better readability, but seriously consider breaking
64 EnforcedStyle: require_parentheses_when_complex
65 Style/TrailingCommaInArguments:
66 Description: Prefer always trailing comma on multiline argument lists. This makes
67 diffs, and re-ordering nicer.
68 EnforcedStyleForMultiline: comma
69 Style/TrailingCommaInArrayLiteral:
70 Description: Prefer always trailing comma on multiline literals. This makes diffs,
71 and re-ordering nicer.
72 EnforcedStyleForMultiline: comma
74 Description: Using percent style obscures symbolic intent of array's contents.
75 EnforcedStyle: brackets
77 EnforcedStyle: receive
80 - lib/puppet/parser/functions/**/*
83 EnforcedStyle: brackets
84 Performance/AncestorsInclude:
86 Performance/BigDecimalWithNumericArgument:
88 Performance/BlockGivenWithExplicitBlock:
90 Performance/CaseWhenSplat:
92 Performance/ConstantRegexp:
94 Performance/MethodObjectAsBlock:
96 Performance/RedundantSortBlock:
98 Performance/RedundantStringChars:
100 Performance/ReverseFirst:
102 Performance/SortReverse:
106 Performance/StringInclude:
110 Style/CollectionMethods:
112 Style/MethodCalledOnDoEndBlock:
118 Bundler/InsecureProtocolSource:
120 Capybara/CurrentPathExpectation:
122 Capybara/VisibilityMatcher:
124 Gemspec/DuplicatedAssignment:
126 Gemspec/OrderedDependencies:
128 Gemspec/RequiredRubyVersion:
130 Gemspec/RubyVersionGlobalsUsage:
132 Layout/ArgumentAlignment:
134 Layout/BeginEndAlignment:
136 Layout/ClosingHeredocIndentation:
140 Layout/EmptyLineAfterGuardClause:
142 Layout/EmptyLinesAroundArguments:
144 Layout/EmptyLinesAroundAttributeAccessor:
148 Layout/FirstArgumentIndentation:
150 Layout/HashAlignment:
152 Layout/HeredocIndentation:
154 Layout/LeadingEmptyLines:
156 Layout/SpaceAroundMethodCallOperator:
158 Layout/SpaceInsideArrayLiteralBrackets:
160 Layout/SpaceInsideReferenceBrackets:
166 Lint/ConstantDefinitionInBlock:
168 Lint/DeprecatedOpenSSLConstant:
170 Lint/DisjunctiveAssignmentInConstructor:
172 Lint/DuplicateElsifCondition:
174 Lint/DuplicateRequire:
176 Lint/DuplicateRescueException:
178 Lint/EmptyConditionalBody:
182 Lint/ErbNewArguments:
184 Lint/FloatComparison:
186 Lint/HashCompareByIdentity:
188 Lint/IdentityComparison:
190 Lint/InterpolationCheck:
192 Lint/MissingCopEnableDirective:
194 Lint/MixedRegexpCaptureTypes:
196 Lint/NestedPercentLiteral:
198 Lint/NonDeterministicRequireOrder:
200 Lint/OrderedMagicComments:
202 Lint/OutOfRangeRegexpRef:
206 Lint/RedundantCopEnableDirective:
208 Lint/RedundantRequireStatement:
210 Lint/RedundantSafeNavigation:
212 Lint/RedundantWithIndex:
214 Lint/RedundantWithObject:
216 Lint/RegexpAsCondition:
218 Lint/ReturnInVoidContext:
220 Lint/SafeNavigationConsistency:
222 Lint/SafeNavigationWithEmpty:
226 Lint/SendWithMixinArgument:
228 Lint/ShadowedArgument:
230 Lint/StructNewOverride:
234 Lint/TopLevelReturnWithArgument:
236 Lint/TrailingCommaInAttributeDeclaration:
238 Lint/UnreachableLoop:
240 Lint/UriEscapeUnescape:
244 Lint/UselessMethodDefinition:
252 Metrics/BlockNesting:
256 Metrics/CyclomaticComplexity:
258 Metrics/MethodLength:
260 Metrics/ModuleLength:
262 Metrics/ParameterLists:
264 Metrics/PerceivedComplexity:
266 Migration/DepartmentName:
268 Naming/AccessorMethodName:
270 Naming/BlockParameterName:
272 Naming/HeredocDelimiterCase:
274 Naming/HeredocDelimiterNaming:
276 Naming/MemoizedInstanceVariableName:
278 Naming/MethodParameterName:
280 Naming/RescuedExceptionsVariableName:
282 Naming/VariableNumber:
284 Performance/BindCall:
286 Performance/DeletePrefix:
288 Performance/DeleteSuffix:
290 Performance/InefficientHashSearch:
292 Performance/UnfreezeString:
294 Performance/UriDefaultParser:
298 RSpec/Capybara/FeatureMethods:
300 RSpec/ContainExactly:
304 RSpec/ContextWording:
310 RSpec/EmptyLineAfterExample:
312 RSpec/EmptyLineAfterExampleGroup:
314 RSpec/EmptyLineAfterHook:
318 RSpec/ExampleWithoutDescription:
324 RSpec/FactoryBot/AttributeDefinedStatically:
326 RSpec/FactoryBot/CreateList:
328 RSpec/FactoryBot/FactoryClassName:
330 RSpec/HooksBeforeExamples:
332 RSpec/ImplicitBlockExpectation:
334 RSpec/ImplicitSubject:
336 RSpec/LeakyConstantDeclaration:
338 RSpec/LetBeforeExamples:
342 RSpec/MissingExampleGroupArgument:
344 RSpec/MultipleExpectations:
346 RSpec/MultipleMemoizedHelpers:
348 RSpec/MultipleSubjects:
352 RSpec/PredicateMatcher:
358 RSpec/RepeatedExampleGroupBody:
360 RSpec/RepeatedExampleGroupDescription:
362 RSpec/RepeatedIncludeExample:
364 RSpec/ReturnFromStub:
366 RSpec/SharedExamples:
370 RSpec/UnspecifiedException:
372 RSpec/VariableDefinition:
380 Style/AccessModifierDeclarations:
382 Style/AccessorGrouping:
384 Style/BisectedAttrAccessor:
388 Style/ClassEqualityComparison:
390 Style/ColonMethodDefinition:
392 Style/CombinableLoops:
394 Style/CommentedKeyword:
398 Style/DoubleCopDisableDirective:
400 Style/EmptyBlockParameter:
402 Style/EmptyLambdaParameter:
406 Style/EvalWithLocation:
408 Style/ExpandPathArguments:
410 Style/ExplicitBlockArgument:
412 Style/ExponentialNotation:
416 Style/FrozenStringLiteralComment:
418 Style/GlobalStdStream:
420 Style/HashAsLastArrayItem:
424 Style/HashTransformKeys:
426 Style/HashTransformValues:
428 Style/IfUnlessModifier:
430 Style/KeywordParametersOrder:
436 Style/MultilineWhenThen:
440 Style/NumericPredicate:
442 Style/OptionalBooleanParameter:
446 Style/RandomWithOffset:
448 Style/RedundantAssignment:
450 Style/RedundantCondition:
452 Style/RedundantConditional:
454 Style/RedundantFetchBlock:
456 Style/RedundantFileExtensionInRequire:
458 Style/RedundantRegexpCharacterClass:
460 Style/RedundantRegexpEscape:
462 Style/RedundantSelfAssignment:
466 Style/RescueStandardError:
468 Style/SingleArgumentDig:
470 Style/SlicingWithRange:
472 Style/SoleNestedConditional:
476 Style/StringConcatenation:
482 Style/TrailingBodyOnClass:
484 Style/TrailingBodyOnMethodDefinition:
486 Style/TrailingBodyOnModule:
488 Style/TrailingCommaInHashLiteral:
490 Style/TrailingMethodEndStatement:
496 Capybara/NegationMatcher:
498 Capybara/SpecificActions:
500 Capybara/SpecificFinders:
502 Capybara/SpecificMatcher:
504 Gemspec/DeprecatedAttributeAssignment:
506 Gemspec/DevelopmentDependencies:
510 Layout/LineContinuationLeadingSpace:
512 Layout/LineContinuationSpacing:
514 Layout/LineEndStringConcatenationIndentation:
516 Layout/SpaceBeforeBrackets:
518 Lint/AmbiguousAssignment:
520 Lint/AmbiguousOperatorPrecedence:
524 Lint/ConstantOverwrittenInRescue:
526 Lint/DeprecatedConstants:
528 Lint/DuplicateBranch:
530 Lint/DuplicateMagicComment:
532 Lint/DuplicateRegexpCharacterClassElement:
540 Lint/IncompatibleIoSelectWithFiberScheduler:
542 Lint/LambdaWithoutLiteralBlock:
544 Lint/NoReturnInBeginEndBlocks:
546 Lint/NonAtomicFileOperation:
548 Lint/NumberedParameterAssignment:
550 Lint/OrAssignmentToConstant:
552 Lint/RedundantDirGlobSort:
554 Lint/RefinementImportMethods:
556 Lint/RequireRangeParentheses:
558 Lint/RequireRelativeSelfPath:
560 Lint/SymbolConversion:
562 Lint/ToEnumArguments:
566 Lint/UnexpectedBlockArity:
568 Lint/UnmodifiedReduceAccumulator:
572 Lint/UselessRuby2Keywords:
574 Metrics/CollectionLiteralLength:
576 Naming/BlockForwarding:
578 Performance/CollectionLiteralInLoop:
580 Performance/ConcurrentMonotonicTime:
582 Performance/MapCompact:
584 Performance/RedundantEqualityComparisonBlock:
586 Performance/RedundantSplitRegexpArgument:
588 Performance/StringIdentifierArgument:
598 RSpec/DuplicatedMetadata:
600 RSpec/ExcessiveDocstringSpacing:
602 RSpec/FactoryBot/ConsistentParenthesesStyle:
604 RSpec/FactoryBot/FactoryNameStyle:
606 RSpec/FactoryBot/SyntaxMethods:
608 RSpec/IdenticalEqualityAssertion:
610 RSpec/NoExpectationExample:
612 RSpec/PendingWithoutReason:
614 RSpec/Rails/AvoidSetupHook:
616 RSpec/Rails/HaveHttpStatus:
618 RSpec/Rails/InferredSpecType:
620 RSpec/Rails/MinitestAssertions:
622 RSpec/Rails/TravelAround:
624 RSpec/RedundantAround:
626 RSpec/SkipBlockInsideExample:
630 RSpec/SubjectDeclaration:
632 RSpec/VerifiedDoubleReference:
634 Security/CompoundHash:
638 Style/ArgumentsForwarding:
640 Style/ArrayIntersect:
642 Style/CollectionCompact:
644 Style/ComparableClamp:
646 Style/ConcatArrayLiterals:
650 Style/DocumentDynamicEvalDefinition:
666 Style/HashConversion:
670 Style/IfWithBooleanLiteralBranches:
674 Style/MagicCommentFormat:
676 Style/MapCompactWithConditionalBlock:
682 Style/MinMaxComparison:
684 Style/MultilineInPatternThen:
686 Style/NegatedIfElseCondition:
688 Style/NestedFileDirname:
692 Style/NumberedParameters:
694 Style/NumberedParametersLimit:
700 Style/OperatorMethodCall:
704 Style/RedundantArgument:
706 Style/RedundantConstantBase:
708 Style/RedundantDoubleSplatHashBraces:
712 Style/RedundantHeredocDelimiterQuotes:
714 Style/RedundantInitialize:
716 Style/RedundantSelfAssignmentBranch:
718 Style/RedundantStringEscape:
720 Style/SelectByRegexp: