Commit 98076d3
committed
fix(rubocop): fix violations using
```bash
Inspecting 5 files
Scanning /home/imran/Salt/formulas/haproxy-formula/Gemfile
.Scanning /home/imran/Salt/formulas/haproxy-formula/bin/kitchen
.Scanning /home/imran/Salt/formulas/haproxy-formula/test/integration/default/controls/config.rb
CScanning /home/imran/Salt/formulas/haproxy-formula/test/integration/default/controls/package.rb
CScanning /home/imran/Salt/formulas/haproxy-formula/test/integration/default/controls/service.rb
C
Offenses:
test/integration/default/controls/config.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
title 'Verify haproxy configuration'
^
test/integration/default/controls/config.rb:9:1: C: Layout/TrailingEmptyLines: 1 trailing blank lines detected.
test/integration/default/controls/package.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
title 'Verify haproxy installation'
^
test/integration/default/controls/package.rb:4:1: C: Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
it { should be_installed }
^^^^
test/integration/default/controls/package.rb:6:1: C: Layout/TrailingEmptyLines: 1 trailing blank lines detected.
test/integration/default/controls/service.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
title 'Verify haproxy service'
^
test/integration/default/controls/service.rb:8:1: C: Layout/TrailingEmptyLines: 2 trailing blank lines detected.
5 files inspected, 7 offenses detected
```rubocop -a
1 parent e32294b commit 98076d3
3 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | | - | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
0 commit comments