(maint) - Updating loc tests to include Japanese translations
[puppet-modules/puppetlabs-apt.git] / .rubocop.yml
1 ---
2 require:
3 - rubocop-i18n
4 - rubocop-rspec
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/DecorateString:
25   Description: We don't want to decorate test output.
26   Exclude:
27   - spec/*
28 RSpec/BeforeAfterAll:
29   Description: Beware of using after(:all) as it may cause state to leak between tests.
30     A necessary evil in acceptance testing.
31   Exclude:
32   - spec/acceptance/**/*.rb
33 RSpec/HookArgument:
34   Description: Prefer explicit :each argument, matching existing module's style
35   EnforcedStyle: each
36 Style/BlockDelimiters:
37   Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
38     be consistent then.
39   EnforcedStyle: braces_for_chaining
40 Style/ClassAndModuleChildren:
41   Description: Compact style reduces the required amount of indentation.
42   EnforcedStyle: compact
43 Style/EmptyElse:
44   Description: Enforce against empty else clauses, but allow `nil` for clarity.
45   EnforcedStyle: empty
46 Style/FormatString:
47   Description: Following the main puppet project's style, prefer the % format format.
48   EnforcedStyle: percent
49 Style/FormatStringToken:
50   Description: Following the main puppet project's style, prefer the simpler template
51     tokens over annotated ones.
52   EnforcedStyle: template
53 Style/Lambda:
54   Description: Prefer the keyword for easier discoverability.
55   EnforcedStyle: literal
56 Style/RegexpLiteral:
57   Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
58   EnforcedStyle: percent_r
59 Style/TernaryParentheses:
60   Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
61     on complex expressions for better readability, but seriously consider breaking
62     it up.
63   EnforcedStyle: require_parentheses_when_complex
64 Style/TrailingCommaInArguments:
65   Description: Prefer always trailing comma on multiline argument lists. This makes
66     diffs, and re-ordering nicer.
67   EnforcedStyleForMultiline: comma
68 Style/TrailingCommaInLiteral:
69   Description: Prefer always trailing comma on multiline literals. This makes diffs,
70     and re-ordering nicer.
71   EnforcedStyleForMultiline: comma
72 Style/SymbolArray:
73   Description: Using percent style obscures symbolic intent of array's contents.
74   EnforcedStyle: brackets
75 inherit_from: ".rubocop_todo.yml"
76 RSpec/MessageSpies:
77   EnforcedStyle: receive
78 Style/Documentation:
79   Exclude:
80   - lib/puppet/parser/functions/**/*
81   - spec/**/*
82 Style/WordArray:
83   EnforcedStyle: brackets
84 Style/CollectionMethods:
85   Enabled: true
86 Style/MethodCalledOnDoEndBlock:
87   Enabled: true
88 Style/StringMethods:
89   Enabled: true
90 Layout/EndOfLine:
91   Enabled: false
92 Layout/IndentHeredoc:
93   Enabled: false
94 Metrics/AbcSize:
95   Enabled: false
96 Metrics/BlockLength:
97   Enabled: false
98 Metrics/ClassLength:
99   Enabled: false
100 Metrics/CyclomaticComplexity:
101   Enabled: false
102 Metrics/MethodLength:
103   Enabled: false
104 Metrics/ModuleLength:
105   Enabled: false
106 Metrics/ParameterLists:
107   Enabled: false
108 Metrics/PerceivedComplexity:
109   Enabled: false
110 RSpec/DescribeClass:
111   Enabled: false
112 RSpec/ExampleLength:
113   Enabled: false
114 RSpec/MessageExpectation:
115   Enabled: false
116 RSpec/MultipleExpectations:
117   Enabled: false
118 RSpec/NestedGroups:
119   Enabled: false
120 Style/AsciiComments:
121   Enabled: false
122 Style/IfUnlessModifier:
123   Enabled: false
124 Style/SymbolProc:
125   Enabled: false