7 TargetRubyVersion: '2.1'
22 Description: People have wide screens, use them.
26 GetText/DecorateString:
27 Description: We don't want to decorate test output.
31 Description: Beware of using after(:all) as it may cause state to leak between tests.
32 A necessary evil in acceptance testing.
34 - spec/acceptance/**/*.rb
36 Description: Prefer explicit :each argument, matching existing module's style
38 Style/BlockDelimiters:
39 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
41 EnforcedStyle: braces_for_chaining
42 Style/ClassAndModuleChildren:
43 Description: Compact style reduces the required amount of indentation.
44 EnforcedStyle: compact
46 Description: Enforce against empty else clauses, but allow `nil` for clarity.
49 Description: Following the main puppet project's style, prefer the % format format.
50 EnforcedStyle: percent
51 Style/FormatStringToken:
52 Description: Following the main puppet project's style, prefer the simpler template
53 tokens over annotated ones.
54 EnforcedStyle: template
56 Description: Prefer the keyword for easier discoverability.
57 EnforcedStyle: literal
59 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
60 EnforcedStyle: percent_r
61 Style/TernaryParentheses:
62 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
63 on complex expressions for better readability, but seriously consider breaking
65 EnforcedStyle: require_parentheses_when_complex
66 Style/TrailingCommaInArguments:
67 Description: Prefer always trailing comma on multiline argument lists. This makes
68 diffs, and re-ordering nicer.
69 EnforcedStyleForMultiline: comma
70 Style/TrailingCommaInLiteral:
71 Description: Prefer always trailing comma on multiline literals. This makes diffs,
72 and re-ordering nicer.
73 EnforcedStyleForMultiline: comma
75 Description: Using percent style obscures symbolic intent of array's contents.
76 EnforcedStyle: brackets
77 inherit_from: ".rubocop_todo.yml"
79 EnforcedStyle: receive
82 - lib/puppet/parser/functions/**/*
85 EnforcedStyle: brackets
86 Style/CollectionMethods:
88 Style/MethodCalledOnDoEndBlock:
102 Metrics/CyclomaticComplexity:
104 Metrics/MethodLength:
106 Metrics/ModuleLength:
108 Metrics/ParameterLists:
110 Metrics/PerceivedComplexity:
116 RSpec/MessageExpectation:
118 RSpec/MultipleExpectations:
124 Style/IfUnlessModifier: