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