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.
32 Description: Beware of using after(:all) as it may cause state to leak between tests.
33 A necessary evil in acceptance testing.
35 - spec/acceptance/**/*.rb
37 Description: Prefer explicit :each argument, matching existing module's style
39 Style/BlockDelimiters:
40 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
42 EnforcedStyle: braces_for_chaining
43 Style/BracesAroundHashParameters:
44 Description: Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
45 See https://github.com/rubocop-hq/rubocop/pull/7643
47 Style/ClassAndModuleChildren:
48 Description: Compact style reduces the required amount of indentation.
49 EnforcedStyle: compact
51 Description: Enforce against empty else clauses, but allow `nil` for clarity.
54 Description: Following the main puppet project's style, prefer the % format format.
55 EnforcedStyle: percent
56 Style/FormatStringToken:
57 Description: Following the main puppet project's style, prefer the simpler template
58 tokens over annotated ones.
59 EnforcedStyle: template
61 Description: Prefer the keyword for easier discoverability.
62 EnforcedStyle: literal
64 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
65 EnforcedStyle: percent_r
66 Style/TernaryParentheses:
67 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
68 on complex expressions for better readability, but seriously consider breaking
70 EnforcedStyle: require_parentheses_when_complex
71 Style/TrailingCommaInArguments:
72 Description: Prefer always trailing comma on multiline argument lists. This makes
73 diffs, and re-ordering nicer.
74 EnforcedStyleForMultiline: comma
75 Style/TrailingCommaInLiteral:
76 Description: Prefer always trailing comma on multiline literals. This makes diffs,
77 and re-ordering nicer.
78 EnforcedStyleForMultiline: comma
80 Description: Using percent style obscures symbolic intent of array's contents.
81 EnforcedStyle: brackets
82 inherit_from: ".rubocop_todo.yml"
84 EnforcedStyle: receive
87 - lib/puppet/parser/functions/**/*
90 EnforcedStyle: brackets
91 Style/CollectionMethods:
93 Style/MethodCalledOnDoEndBlock:
97 GetText/DecorateFunctionMessage:
99 GetText/DecorateStringFormattingUsingInterpolation:
101 GetText/DecorateStringFormattingUsingPercent:
105 Layout/IndentHeredoc:
113 Metrics/CyclomaticComplexity:
115 Metrics/MethodLength:
117 Metrics/ModuleLength:
119 Metrics/ParameterLists:
121 Metrics/PerceivedComplexity:
127 RSpec/MessageExpectation:
129 RSpec/MultipleExpectations:
135 Style/IfUnlessModifier: