(maint) - add back gems removed by pdk update
[puppet-modules/puppetlabs-apt.git] / .rubocop.yml
1 ---
2 require:
3 - rubocop-rspec
4 - rubocop-i18n
5 AllCops:
6   DisplayCopNames: true
7   TargetRubyVersion: '2.1'
8   Include:
9   - "./**/*.rb"
10   Exclude:
11   - bin/*
12   - ".vendor/**/*"
13   - "**/Gemfile"
14   - "**/Rakefile"
15   - pkg/**/*
16   - spec/fixtures/**/*
17   - vendor/**/*
18   - "**/Puppetfile"
19   - "**/Vagrantfile"
20   - "**/Guardfile"
21 Metrics/LineLength:
22   Description: People have wide screens, use them.
23   Max: 200
24 GetText:
25   Enabled: false
26 GetText/DecorateString:
27   Description: We don't want to decorate test output.
28   Exclude:
29   - spec/**/*
30   Enabled: false
31 RSpec/BeforeAfterAll:
32   Description: Beware of using after(:all) as it may cause state to leak between tests.
33     A necessary evil in acceptance testing.
34   Exclude:
35   - spec/acceptance/**/*.rb
36 RSpec/HookArgument:
37   Description: Prefer explicit :each argument, matching existing module's style
38   EnforcedStyle: each
39 Style/BlockDelimiters:
40   Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
41     be consistent then.
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
46   Enabled: true
47 Style/ClassAndModuleChildren:
48   Description: Compact style reduces the required amount of indentation.
49   EnforcedStyle: compact
50 Style/EmptyElse:
51   Description: Enforce against empty else clauses, but allow `nil` for clarity.
52   EnforcedStyle: empty
53 Style/FormatString:
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
60 Style/Lambda:
61   Description: Prefer the keyword for easier discoverability.
62   EnforcedStyle: literal
63 Style/RegexpLiteral:
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
69     it up.
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
79 Style/SymbolArray:
80   Description: Using percent style obscures symbolic intent of array's contents.
81   EnforcedStyle: brackets
82 inherit_from: ".rubocop_todo.yml"
83 RSpec/MessageSpies:
84   EnforcedStyle: receive
85 Style/Documentation:
86   Exclude:
87   - lib/puppet/parser/functions/**/*
88   - spec/**/*
89 Style/WordArray:
90   EnforcedStyle: brackets
91 Style/CollectionMethods:
92   Enabled: true
93 Style/MethodCalledOnDoEndBlock:
94   Enabled: true
95 Style/StringMethods:
96   Enabled: true
97 GetText/DecorateFunctionMessage:
98   Enabled: false
99 GetText/DecorateStringFormattingUsingInterpolation:
100   Enabled: false
101 GetText/DecorateStringFormattingUsingPercent:
102   Enabled: false
103 Layout/EndOfLine:
104   Enabled: false
105 Layout/IndentHeredoc:
106   Enabled: false
107 Metrics/AbcSize:
108   Enabled: false
109 Metrics/BlockLength:
110   Enabled: false
111 Metrics/ClassLength:
112   Enabled: false
113 Metrics/CyclomaticComplexity:
114   Enabled: false
115 Metrics/MethodLength:
116   Enabled: false
117 Metrics/ModuleLength:
118   Enabled: false
119 Metrics/ParameterLists:
120   Enabled: false
121 Metrics/PerceivedComplexity:
122   Enabled: false
123 RSpec/DescribeClass:
124   Enabled: false
125 RSpec/ExampleLength:
126   Enabled: false
127 RSpec/MessageExpectation:
128   Enabled: false
129 RSpec/MultipleExpectations:
130   Enabled: false
131 RSpec/NestedGroups:
132   Enabled: false
133 Style/AsciiComments:
134   Enabled: false
135 Style/IfUnlessModifier:
136   Enabled: false
137 Style/SymbolProc:
138   Enabled: false