Revert "pdksync - Update using 1.5.0"
[puppet-modules/puppetlabs-apt.git] / .rubocop.yml
1 ---
2 require: rubocop-rspec
3 AllCops:
4   DisplayCopNames: true
5   TargetRubyVersion: '2.1'
6   Include:
7   - "./**/*.rb"
8   Exclude:
9   - bin/*
10   - ".vendor/**/*"
11   - Gemfile
12   - Rakefile
13   - pkg/**/*
14   - spec/fixtures/**/*
15   - vendor/**/*
16 Metrics/LineLength:
17   Description: People have wide screens, use them.
18   Max: 200
19 RSpec/BeforeAfterAll:
20   Description: Beware of using after(:all) as it may cause state to leak between tests.
21     A necessary evil in acceptance testing.
22   Exclude:
23   - spec/acceptance/**/*.rb
24 RSpec/HookArgument:
25   Description: Prefer explicit :each argument, matching existing module's style
26   EnforcedStyle: each
27 Style/BlockDelimiters:
28   Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
29     be consistent then.
30   EnforcedStyle: braces_for_chaining
31 Style/ClassAndModuleChildren:
32   Description: Compact style reduces the required amount of indentation.
33   EnforcedStyle: compact
34 Style/EmptyElse:
35   Description: Enforce against empty else clauses, but allow `nil` for clarity.
36   EnforcedStyle: empty
37 Style/FormatString:
38   Description: Following the main puppet project's style, prefer the % format format.
39   EnforcedStyle: percent
40 Style/FormatStringToken:
41   Description: Following the main puppet project's style, prefer the simpler template
42     tokens over annotated ones.
43   EnforcedStyle: template
44 Style/Lambda:
45   Description: Prefer the keyword for easier discoverability.
46   EnforcedStyle: literal
47 Style/RegexpLiteral:
48   Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
49   EnforcedStyle: percent_r
50 Style/TernaryParentheses:
51   Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
52     on complex expressions for better readability, but seriously consider breaking
53     it up.
54   EnforcedStyle: require_parentheses_when_complex
55 Style/TrailingCommaInArguments:
56   Description: Prefer always trailing comma on multiline argument lists. This makes
57     diffs, and re-ordering nicer.
58   EnforcedStyleForMultiline: comma
59 Style/TrailingCommaInLiteral:
60   Description: Prefer always trailing comma on multiline literals. This makes diffs,
61     and re-ordering nicer.
62   EnforcedStyleForMultiline: comma
63 Style/SymbolArray:
64   Description: Using percent style obscures symbolic intent of array's contents.
65   EnforcedStyle: brackets
66 Style/CollectionMethods:
67   Enabled: true
68 Style/MethodCalledOnDoEndBlock:
69   Enabled: true
70 Style/StringMethods:
71   Enabled: true
72 Layout/EndOfLine:
73   Enabled: false
74 Metrics/AbcSize:
75   Enabled: false
76 Metrics/BlockLength:
77   Enabled: false
78 Metrics/ClassLength:
79   Enabled: false
80 Metrics/CyclomaticComplexity:
81   Enabled: false
82 Metrics/MethodLength:
83   Enabled: false
84 Metrics/ModuleLength:
85   Enabled: false
86 Metrics/ParameterLists:
87   Enabled: false
88 Metrics/PerceivedComplexity:
89   Enabled: false
90 RSpec/DescribeClass:
91   Enabled: false
92 RSpec/ExampleLength:
93   Enabled: false
94 RSpec/MessageExpectation:
95   Enabled: false
96 RSpec/MultipleExpectations:
97   Enabled: false
98 RSpec/NestedGroups:
99   Enabled: false
100 Style/AsciiComments:
101   Enabled: false
102 Style/IfUnlessModifier:
103   Enabled: false
104 Style/SymbolProc:
105   Enabled: false