7 TargetRubyVersion: '2.4'
22 Description: People have wide screens, use them.
25 Description: Beware of using after(:all) as it may cause state to leak between tests.
26 A necessary evil in acceptance testing.
28 - spec/acceptance/**/*.rb
30 Description: Prefer explicit :each argument, matching existing module's style
32 Style/BlockDelimiters:
33 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
35 EnforcedStyle: braces_for_chaining
36 Style/ClassAndModuleChildren:
37 Description: Compact style reduces the required amount of indentation.
38 EnforcedStyle: compact
40 Description: Enforce against empty else clauses, but allow `nil` for clarity.
43 Description: Following the main puppet project's style, prefer the % format format.
44 EnforcedStyle: percent
45 Style/FormatStringToken:
46 Description: Following the main puppet project's style, prefer the simpler template
47 tokens over annotated ones.
48 EnforcedStyle: template
50 Description: Prefer the keyword for easier discoverability.
51 EnforcedStyle: literal
53 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
54 EnforcedStyle: percent_r
55 Style/TernaryParentheses:
56 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
57 on complex expressions for better readability, but seriously consider breaking
59 EnforcedStyle: require_parentheses_when_complex
60 Style/TrailingCommaInArguments:
61 Description: Prefer always trailing comma on multiline argument lists. This makes
62 diffs, and re-ordering nicer.
63 EnforcedStyleForMultiline: comma
64 Style/TrailingCommaInArrayLiteral:
65 Description: Prefer always trailing comma on multiline literals. This makes diffs,
66 and re-ordering nicer.
67 EnforcedStyleForMultiline: comma
69 Description: Using percent style obscures symbolic intent of array's contents.
70 EnforcedStyle: brackets
72 EnforcedStyle: receive
75 - lib/puppet/parser/functions/**/*
78 EnforcedStyle: brackets
79 Performance/AncestorsInclude:
81 Performance/BigDecimalWithNumericArgument:
83 Performance/BlockGivenWithExplicitBlock:
87 Performance/CaseWhenSplat:
91 Performance/CollectionLiteralInLoop:
95 Performance/CompareWithBlock:
97 Performance/ConstantRegexp:
103 Performance/DoubleStartEndWith:
107 Performance/FixedSize:
111 Performance/MethodObjectAsBlock:
113 Performance/RangeInclude:
115 Performance/RedundantBlockCall:
117 Performance/RedundantMatch:
119 Performance/RedundantMerge:
121 Performance/RedundantSortBlock:
123 Performance/RedundantStringChars:
125 Performance/RegexpMatch:
127 Performance/ReverseEach:
129 Performance/ReverseFirst:
133 Performance/SortReverse:
137 Performance/StartWith:
139 Performance/StringInclude:
141 Performance/StringReplacement:
145 Performance/TimesMap:
147 Style/CollectionMethods:
149 Style/MethodCalledOnDoEndBlock:
153 Bundler/InsecureProtocolSource:
155 Gemspec/DuplicatedAssignment:
157 Gemspec/OrderedDependencies:
159 Gemspec/RequiredRubyVersion:
161 Gemspec/RubyVersionGlobalsUsage:
163 Layout/ArgumentAlignment:
165 Layout/BeginEndAlignment:
167 Layout/ClosingHeredocIndentation:
171 Layout/EmptyLineAfterGuardClause:
173 Layout/EmptyLinesAroundArguments:
175 Layout/EmptyLinesAroundAttributeAccessor:
179 Layout/FirstArgumentIndentation:
181 Layout/HashAlignment:
183 Layout/HeredocIndentation:
185 Layout/LeadingEmptyLines:
187 Layout/SpaceAroundMethodCallOperator:
189 Layout/SpaceInsideArrayLiteralBrackets:
191 Layout/SpaceInsideReferenceBrackets:
197 Lint/ConstantDefinitionInBlock:
199 Lint/DeprecatedOpenSSLConstant:
201 Lint/DisjunctiveAssignmentInConstructor:
203 Lint/DuplicateBranch:
205 Lint/DuplicateElsifCondition:
207 Lint/DuplicateRegexpCharacterClassElement:
209 Lint/DuplicateRequire:
211 Lint/DuplicateRescueException:
217 Lint/EmptyConditionalBody:
221 Lint/ErbNewArguments:
223 Lint/FloatComparison:
225 Lint/HashCompareByIdentity:
227 Lint/IdentityComparison:
229 Lint/InterpolationCheck:
231 Lint/MissingCopEnableDirective:
233 Lint/MixedRegexpCaptureTypes:
235 Lint/NestedPercentLiteral:
237 Lint/NoReturnInBeginEndBlocks:
239 Lint/NonDeterministicRequireOrder:
241 Lint/OrderedMagicComments:
243 Lint/OutOfRangeRegexpRef:
247 Lint/RedundantCopEnableDirective:
249 Lint/RedundantRequireStatement:
251 Lint/RedundantSafeNavigation:
253 Lint/RedundantWithIndex:
255 Lint/RedundantWithObject:
257 Lint/RegexpAsCondition:
259 Lint/ReturnInVoidContext:
261 Lint/SafeNavigationConsistency:
263 Lint/SafeNavigationWithEmpty:
267 Lint/SendWithMixinArgument:
269 Lint/ShadowedArgument:
271 Lint/StructNewOverride:
273 Lint/ToEnumArguments:
277 Lint/TopLevelReturnWithArgument:
279 Lint/TrailingCommaInAttributeDeclaration:
281 Lint/UnexpectedBlockArity:
283 Lint/UnmodifiedReduceAccumulator:
285 Lint/UnreachableLoop:
287 Lint/UriEscapeUnescape:
291 Lint/UselessMethodDefinition:
301 Metrics/CyclomaticComplexity:
303 Metrics/MethodLength:
305 Metrics/ModuleLength:
307 Metrics/ParameterLists:
309 Metrics/PerceivedComplexity:
311 Migration/DepartmentName:
313 Naming/AccessorMethodName:
315 Naming/BlockParameterName:
317 Naming/HeredocDelimiterCase:
319 Naming/HeredocDelimiterNaming:
321 Naming/MemoizedInstanceVariableName:
323 Naming/MethodParameterName:
325 Naming/RescuedExceptionsVariableName:
329 RSpec/Capybara/CurrentPathExpectation:
331 RSpec/Capybara/FeatureMethods:
333 RSpec/Capybara/VisibilityMatcher:
337 RSpec/ContextWording:
343 RSpec/EmptyLineAfterExample:
345 RSpec/EmptyLineAfterExampleGroup:
347 RSpec/EmptyLineAfterHook:
351 RSpec/ExampleWithoutDescription:
357 RSpec/FactoryBot/AttributeDefinedStatically:
359 RSpec/FactoryBot/CreateList:
361 RSpec/FactoryBot/FactoryClassName:
363 RSpec/HooksBeforeExamples:
365 RSpec/ImplicitBlockExpectation:
367 RSpec/ImplicitSubject:
369 RSpec/LeakyConstantDeclaration:
371 RSpec/LetBeforeExamples:
373 RSpec/MissingExampleGroupArgument:
375 RSpec/MultipleExpectations:
377 RSpec/MultipleMemoizedHelpers:
379 RSpec/MultipleSubjects:
383 RSpec/PredicateMatcher:
389 RSpec/RepeatedExampleGroupBody:
391 RSpec/RepeatedExampleGroupDescription:
393 RSpec/RepeatedIncludeExample:
395 RSpec/ReturnFromStub:
397 RSpec/SharedExamples:
401 RSpec/UnspecifiedException:
403 RSpec/VariableDefinition:
411 Style/AccessModifierDeclarations:
413 Style/AccessorGrouping:
415 Style/ArgumentsForwarding:
419 Style/BisectedAttrAccessor:
423 Style/ClassEqualityComparison:
425 Style/CollectionCompact:
427 Style/ColonMethodDefinition:
429 Style/CombinableLoops:
431 Style/CommentedKeyword:
435 Style/DocumentDynamicEvalDefinition:
437 Style/DoubleCopDisableDirective:
439 Style/EmptyBlockParameter:
441 Style/EmptyLambdaParameter:
445 Style/EvalWithLocation:
447 Style/ExpandPathArguments:
449 Style/ExplicitBlockArgument:
451 Style/ExponentialNotation:
455 Style/GlobalStdStream:
457 Style/HashAsLastArrayItem:
461 Style/HashTransformKeys:
463 Style/HashTransformValues:
465 Style/IfUnlessModifier:
467 Style/KeywordParametersOrder:
473 Style/MultilineWhenThen:
475 Style/NegatedIfElseCondition:
481 Style/NumericPredicate:
483 Style/OptionalBooleanParameter:
487 Style/RandomWithOffset:
489 Style/RedundantArgument:
491 Style/RedundantAssignment:
493 Style/RedundantCondition:
495 Style/RedundantConditional:
497 Style/RedundantFetchBlock:
499 Style/RedundantFileExtensionInRequire:
501 Style/RedundantRegexpCharacterClass:
503 Style/RedundantRegexpEscape:
505 Style/RedundantSelfAssignment:
509 Style/RescueStandardError:
511 Style/SingleArgumentDig:
513 Style/SlicingWithRange:
515 Style/SoleNestedConditional:
519 Style/StringConcatenation:
527 Style/TrailingBodyOnClass:
529 Style/TrailingBodyOnMethodDefinition:
531 Style/TrailingBodyOnModule:
533 Style/TrailingCommaInHashLiteral:
535 Style/TrailingMethodEndStatement: