5 TargetRubyVersion: '2.1'
20 Description: People have wide screens, use them.
23 Description: Beware of using after(:all) as it may cause state to leak between tests.
24 A necessary evil in acceptance testing.
26 - spec/acceptance/**/*.rb
28 Description: Prefer explicit :each argument, matching existing module's style
30 Style/BlockDelimiters:
31 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
33 EnforcedStyle: braces_for_chaining
34 Style/ClassAndModuleChildren:
35 Description: Compact style reduces the required amount of indentation.
36 EnforcedStyle: compact
38 Description: Enforce against empty else clauses, but allow `nil` for clarity.
41 Description: Following the main puppet project's style, prefer the % format format.
42 EnforcedStyle: percent
43 Style/FormatStringToken:
44 Description: Following the main puppet project's style, prefer the simpler template
45 tokens over annotated ones.
46 EnforcedStyle: template
48 Description: Prefer the keyword for easier discoverability.
49 EnforcedStyle: literal
51 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
52 EnforcedStyle: percent_r
53 Style/TernaryParentheses:
54 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
55 on complex expressions for better readability, but seriously consider breaking
57 EnforcedStyle: require_parentheses_when_complex
58 Style/TrailingCommaInArguments:
59 Description: Prefer always trailing comma on multiline argument lists. This makes
60 diffs, and re-ordering nicer.
61 EnforcedStyleForMultiline: comma
62 Style/TrailingCommaInLiteral:
63 Description: Prefer always trailing comma on multiline literals. This makes diffs,
64 and re-ordering nicer.
65 EnforcedStyleForMultiline: comma
67 Description: Using percent style obscures symbolic intent of array's contents.
68 EnforcedStyle: brackets
70 EnforcedStyle: receive
73 - lib/puppet/parser/functions/**/*
75 EnforcedStyle: brackets
76 Style/CollectionMethods:
78 Style/MethodCalledOnDoEndBlock:
90 Metrics/CyclomaticComplexity:
96 Metrics/ParameterLists:
98 Metrics/PerceivedComplexity:
104 RSpec/MessageExpectation:
106 RSpec/MultipleExpectations:
112 Style/IfUnlessModifier: