Skip to content

Commit 98076d3

Browse files
committed
fix(rubocop): fix violations using rubocop -a
```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 ```
1 parent e32294b commit 98076d3

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

test/integration/default/controls/config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
title 'Verify haproxy configuration'
24

35
describe file('/etc/haproxy/haproxy.cfg') do
@@ -6,4 +8,3 @@
68
its('group') { should eq 'root' }
79
its('mode') { should cmp '0644' }
810
end
9-

test/integration/default/controls/package.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# frozen_string_literal: true
2+
13
title 'Verify haproxy installation'
24

35
describe package('haproxy') do
4-
it { should be_installed }
6+
it { should be_installed }
57
end
6-
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# frozen_string_literal: true
2+
13
title 'Verify haproxy service'
24

35
describe service('haproxy') do
46
it { should be_installed }
57
it { should be_enabled }
68
it { should be_running }
79
end
8-
9-

0 commit comments

Comments
 (0)