2 inherit_from: .rubocop_todo.yml
11 DisplayStyleGuide: true
12 TargetRubyVersion: '2.7'
27 Description: People have wide screens, use them.
30 Description: Beware of using after(:all) as it may cause state to leak between tests.
31 A necessary evil in acceptance testing.
33 - spec/acceptance/**/*.rb
35 Description: Prefer explicit :each argument, matching existing module's style
39 - spec/unit/facter/**/*.rb
40 Style/BlockDelimiters:
41 Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
43 EnforcedStyle: braces_for_chaining
44 Style/ClassAndModuleChildren:
45 Description: Compact style reduces the required amount of indentation.
46 EnforcedStyle: compact
48 Description: Enforce against empty else clauses, but allow `nil` for clarity.
51 Description: Following the main puppet project's style, prefer the % format format.
52 EnforcedStyle: percent
53 Style/FormatStringToken:
54 Description: Following the main puppet project's style, prefer the simpler template
55 tokens over annotated ones.
56 EnforcedStyle: template
58 Description: Prefer the keyword for easier discoverability.
59 EnforcedStyle: literal
61 Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
62 EnforcedStyle: percent_r
63 Style/TernaryParentheses:
64 Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
65 on complex expressions for better readability, but seriously consider breaking
67 EnforcedStyle: require_parentheses_when_complex
68 Style/TrailingCommaInArguments:
69 Description: Prefer always trailing comma on multiline argument lists. This makes
70 diffs, and re-ordering nicer.
71 EnforcedStyleForMultiline: comma
72 Style/TrailingCommaInArrayLiteral:
73 Description: Prefer always trailing comma on multiline literals. This makes diffs,
74 and re-ordering nicer.
75 EnforcedStyleForMultiline: comma
77 Description: Using percent style obscures symbolic intent of array's contents.
78 EnforcedStyle: brackets
80 EnforcedStyle: receive
83 - lib/puppet/parser/functions/**/*
86 EnforcedStyle: brackets
87 RSpec/MultipleExpectations:
89 Naming/MethodParameterName: