Révision 8f5d09ec
Linting
.rubocop.yml | ||
---|---|---|
11 | 11 |
- "**/Gemfile" |
12 | 12 |
- "**/Rakefile" |
13 | 13 |
- pkg/**/* |
14 |
- spec/classes/*_spec.rb |
|
14 | 15 |
- spec/fixtures/**/* |
15 | 16 |
- vendor/**/* |
16 | 17 |
- "**/Puppetfile" |
... | ... | |
24 | 25 |
A necessary evil in acceptance testing. |
25 | 26 |
Exclude: |
26 | 27 |
- spec/acceptance/**/*.rb |
27 |
Layout/MultilineBlockLayout: |
|
28 |
Exclude: |
|
29 |
- spec/classes/*_spec.rb |
|
30 |
Style/HashSyntax: |
|
31 |
Exclude: |
|
32 |
- spec/classes/*_spec.rb |
|
33 |
Layout/BlockEndNewline: |
|
34 |
Exclude: |
|
35 |
- spec/classes/*_spec.rb |
|
36 | 28 |
RSpec/HookArgument: |
37 | 29 |
Description: Prefer explicit :each argument, matching existing module's style |
38 | 30 |
EnforcedStyle: each |
... | ... | |
59 | 51 |
Style/RegexpLiteral: |
60 | 52 |
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168 |
61 | 53 |
EnforcedStyle: percent_r |
62 |
Exclude: |
|
63 |
- spec/classes/*_spec.rb |
|
64 | 54 |
Style/TernaryParentheses: |
65 | 55 |
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses |
66 | 56 |
on complex expressions for better readability, but seriously consider breaking |
spec/classes/router_spec.rb | ||
---|---|---|
7 | 7 |
context "on #{os}" do |
8 | 8 |
let(:facts) { os_facts } |
9 | 9 |
|
10 |
context "as router" do
|
|
11 |
let(:pre_condition) {
|
|
10 |
context 'as router' do
|
|
11 |
let(:pre_condition) do
|
|
12 | 12 |
""" |
13 | 13 |
# inet-filter-chain-default_fwd |
14 | 14 |
nftables::rule{ |
... | ... | |
31 | 31 |
content => 'oifname eth0 masquerade'; |
32 | 32 |
} |
33 | 33 |
""" |
34 |
}
|
|
34 |
end
|
|
35 | 35 |
|
36 | 36 |
it { is_expected.to compile } |
37 | 37 |
|
Formats disponibles : Unified diff