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:
93 Performance/CompareWithBlock:
95 Performance/ConstantRegexp:
101 Performance/DoubleStartEndWith:
105 Performance/FixedSize:
109 Performance/MethodObjectAsBlock:
111 Performance/RangeInclude:
113 Performance/RedundantBlockCall:
115 Performance/RedundantMatch:
117 Performance/RedundantMerge:
119 Performance/RedundantSortBlock:
121 Performance/RedundantStringChars:
123 Performance/RegexpMatch:
125 Performance/ReverseEach:
127 Performance/ReverseFirst:
131 Performance/SortReverse:
135 Performance/StartWith:
137 Performance/StringInclude:
139 Performance/StringReplacement:
143 Performance/TimesMap:
145 Style/CollectionMethods:
147 Style/MethodCalledOnDoEndBlock:
151 Bundler/InsecureProtocolSource:
153 Gemspec/DuplicatedAssignment:
155 Gemspec/OrderedDependencies:
157 Gemspec/RequiredRubyVersion:
159 Gemspec/RubyVersionGlobalsUsage:
161 Layout/ArgumentAlignment:
163 Layout/BeginEndAlignment:
165 Layout/ClosingHeredocIndentation:
169 Layout/EmptyLineAfterGuardClause:
171 Layout/EmptyLinesAroundArguments:
173 Layout/EmptyLinesAroundAttributeAccessor:
177 Layout/FirstArgumentIndentation:
179 Layout/HashAlignment:
181 Layout/HeredocIndentation:
183 Layout/LeadingEmptyLines:
185 Layout/SpaceAroundMethodCallOperator:
187 Layout/SpaceInsideArrayLiteralBrackets:
189 Layout/SpaceInsideReferenceBrackets:
195 Lint/ConstantDefinitionInBlock:
197 Lint/DeprecatedOpenSSLConstant:
199 Lint/DisjunctiveAssignmentInConstructor:
201 Lint/DuplicateBranch:
203 Lint/DuplicateElsifCondition:
205 Lint/DuplicateRegexpCharacterClassElement:
207 Lint/DuplicateRequire:
209 Lint/DuplicateRescueException:
215 Lint/EmptyConditionalBody:
219 Lint/ErbNewArguments:
221 Lint/FloatComparison:
223 Lint/HashCompareByIdentity:
225 Lint/IdentityComparison:
227 Lint/InterpolationCheck:
229 Lint/MissingCopEnableDirective:
231 Lint/MixedRegexpCaptureTypes:
233 Lint/NestedPercentLiteral:
235 Lint/NoReturnInBeginEndBlocks:
237 Lint/NonDeterministicRequireOrder:
239 Lint/OrderedMagicComments:
241 Lint/OutOfRangeRegexpRef:
245 Lint/RedundantCopEnableDirective:
247 Lint/RedundantRequireStatement:
249 Lint/RedundantSafeNavigation:
251 Lint/RedundantWithIndex:
253 Lint/RedundantWithObject:
255 Lint/RegexpAsCondition:
257 Lint/ReturnInVoidContext:
259 Lint/SafeNavigationConsistency:
261 Lint/SafeNavigationWithEmpty:
265 Lint/SendWithMixinArgument:
267 Lint/ShadowedArgument:
269 Lint/StructNewOverride:
271 Lint/ToEnumArguments:
275 Lint/TopLevelReturnWithArgument:
277 Lint/TrailingCommaInAttributeDeclaration:
279 Lint/UnexpectedBlockArity:
281 Lint/UnmodifiedReduceAccumulator:
283 Lint/UnreachableLoop:
285 Lint/UriEscapeUnescape:
289 Lint/UselessMethodDefinition:
299 Metrics/CyclomaticComplexity:
301 Metrics/MethodLength:
303 Metrics/ModuleLength:
305 Metrics/ParameterLists:
307 Metrics/PerceivedComplexity:
309 Migration/DepartmentName:
311 Naming/BlockParameterName:
313 Naming/HeredocDelimiterCase:
315 Naming/HeredocDelimiterNaming:
317 Naming/MemoizedInstanceVariableName:
319 Naming/MethodParameterName:
321 Naming/RescuedExceptionsVariableName:
325 RSpec/Capybara/CurrentPathExpectation:
327 RSpec/Capybara/FeatureMethods:
329 RSpec/Capybara/VisibilityMatcher:
333 RSpec/ContextWording:
339 RSpec/EmptyLineAfterExample:
341 RSpec/EmptyLineAfterExampleGroup:
343 RSpec/EmptyLineAfterHook:
347 RSpec/ExampleWithoutDescription:
353 RSpec/FactoryBot/AttributeDefinedStatically:
355 RSpec/FactoryBot/CreateList:
357 RSpec/FactoryBot/FactoryClassName:
359 RSpec/HooksBeforeExamples:
361 RSpec/ImplicitBlockExpectation:
363 RSpec/ImplicitSubject:
365 RSpec/LeakyConstantDeclaration:
367 RSpec/LetBeforeExamples:
369 RSpec/MissingExampleGroupArgument:
371 RSpec/MultipleExpectations:
373 RSpec/MultipleMemoizedHelpers:
375 RSpec/MultipleSubjects:
379 RSpec/PredicateMatcher:
385 RSpec/RepeatedExampleGroupBody:
387 RSpec/RepeatedExampleGroupDescription:
389 RSpec/RepeatedIncludeExample:
391 RSpec/ReturnFromStub:
393 RSpec/SharedExamples:
397 RSpec/UnspecifiedException:
399 RSpec/VariableDefinition:
407 Style/AccessModifierDeclarations:
409 Style/AccessorGrouping:
411 Style/ArgumentsForwarding:
415 Style/BisectedAttrAccessor:
419 Style/ClassEqualityComparison:
421 Style/CollectionCompact:
423 Style/ColonMethodDefinition:
425 Style/CombinableLoops:
427 Style/CommentedKeyword:
431 Style/DocumentDynamicEvalDefinition:
433 Style/DoubleCopDisableDirective:
435 Style/EmptyBlockParameter:
437 Style/EmptyLambdaParameter:
441 Style/EvalWithLocation:
443 Style/ExpandPathArguments:
445 Style/ExplicitBlockArgument:
447 Style/ExponentialNotation:
451 Style/GlobalStdStream:
453 Style/HashAsLastArrayItem:
457 Style/HashTransformKeys:
459 Style/HashTransformValues:
461 Style/IfUnlessModifier:
463 Style/KeywordParametersOrder:
469 Style/MultilineWhenThen:
471 Style/NegatedIfElseCondition:
477 Style/NumericPredicate:
479 Style/OptionalBooleanParameter:
483 Style/RandomWithOffset:
485 Style/RedundantArgument:
487 Style/RedundantAssignment:
489 Style/RedundantCondition:
491 Style/RedundantConditional:
493 Style/RedundantFetchBlock:
495 Style/RedundantFileExtensionInRequire:
497 Style/RedundantRegexpCharacterClass:
499 Style/RedundantRegexpEscape:
501 Style/RedundantSelfAssignment:
505 Style/RescueStandardError:
507 Style/SingleArgumentDig:
509 Style/SlicingWithRange:
511 Style/SoleNestedConditional:
515 Style/StringConcatenation:
523 Style/TrailingBodyOnClass:
525 Style/TrailingBodyOnMethodDefinition:
527 Style/TrailingBodyOnModule:
529 Style/TrailingCommaInHashLiteral:
531 Style/TrailingMethodEndStatement: