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