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