7 TargetRubyVersion: '2.1'
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/TrailingCommaInLiteral:
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
71 inherit_from: ".rubocop_todo.yml"
73 EnforcedStyle: receive
76 - lib/puppet/parser/functions/**/*
79 EnforcedStyle: brackets
80 Style/CollectionMethods:
82 Style/MethodCalledOnDoEndBlock:
96 Metrics/CyclomaticComplexity:
100 Metrics/ModuleLength:
102 Metrics/ParameterLists:
104 Metrics/PerceivedComplexity:
110 RSpec/MessageExpectation:
112 RSpec/MultipleExpectations:
118 Style/IfUnlessModifier: