Merge pull request #931 from puppetlabs/pdksync_dependency_gems_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/ClassAndModuleChildren:
44   Description: Compact style reduces the required amount of indentation.
45   EnforcedStyle: compact
46 Style/EmptyElse:
47   Description: Enforce against empty else clauses, but allow `nil` for clarity.
48   EnforcedStyle: empty
49 Style/FormatString:
50   Description: Following the main puppet project's style, prefer the % format format.
51   EnforcedStyle: percent
52 Style/FormatStringToken:
53   Description: Following the main puppet project's style, prefer the simpler template
54     tokens over annotated ones.
55   EnforcedStyle: template
56 Style/Lambda:
57   Description: Prefer the keyword for easier discoverability.
58   EnforcedStyle: literal
59 Style/RegexpLiteral:
60   Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
61   EnforcedStyle: percent_r
62 Style/TernaryParentheses:
63   Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
64     on complex expressions for better readability, but seriously consider breaking
65     it up.
66   EnforcedStyle: require_parentheses_when_complex
67 Style/TrailingCommaInArguments:
68   Description: Prefer always trailing comma on multiline argument lists. This makes
69     diffs, and re-ordering nicer.
70   EnforcedStyleForMultiline: comma
71 Style/TrailingCommaInLiteral:
72   Description: Prefer always trailing comma on multiline literals. This makes diffs,
73     and re-ordering nicer.
74   EnforcedStyleForMultiline: comma
75 Style/SymbolArray:
76   Description: Using percent style obscures symbolic intent of array's contents.
77   EnforcedStyle: brackets
78 inherit_from: ".rubocop_todo.yml"
79 RSpec/MessageSpies:
80   EnforcedStyle: receive
81 Style/Documentation:
82   Exclude:
83   - lib/puppet/parser/functions/**/*
84   - spec/**/*
85 Style/WordArray:
86   EnforcedStyle: brackets
87 Style/CollectionMethods:
88   Enabled: true
89 Style/MethodCalledOnDoEndBlock:
90   Enabled: true
91 Style/StringMethods:
92   Enabled: true
93 GetText/DecorateFunctionMessage:
94   Enabled: false
95 GetText/DecorateStringFormattingUsingInterpolation:
96   Enabled: false
97 GetText/DecorateStringFormattingUsingPercent:
98   Enabled: false
99 Layout/EndOfLine:
100   Enabled: false
101 Layout/IndentHeredoc:
102   Enabled: false
103 Metrics/AbcSize:
104   Enabled: false
105 Metrics/BlockLength:
106   Enabled: false
107 Metrics/ClassLength:
108   Enabled: false
109 Metrics/CyclomaticComplexity:
110   Enabled: false
111 Metrics/MethodLength:
112   Enabled: false
113 Metrics/ModuleLength:
114   Enabled: false
115 Metrics/ParameterLists:
116   Enabled: false
117 Metrics/PerceivedComplexity:
118   Enabled: false
119 RSpec/DescribeClass:
120   Enabled: false
121 RSpec/ExampleLength:
122   Enabled: false
123 RSpec/MessageExpectation:
124   Enabled: false
125 RSpec/MultipleExpectations:
126   Enabled: false
127 RSpec/NestedGroups:
128   Enabled: false
129 Style/AsciiComments:
130   Enabled: false
131 Style/IfUnlessModifier:
132   Enabled: false
133 Style/SymbolProc:
134   Enabled: false