瀏覽代碼

fix(inspec): make rubocop happy

* test/integration/default/controls/services_spec.rb: favor modifier
  if usage when having a single-line body.

* test/integration/default/controls/config_spec.rb: add frozen string
  literal comment.

* test/integration/default/controls/packages_spec.rb: ditoo.

* test/integration/default/controls/services_spec.rb: ditoo.
tags/v1.1.0
Daniel Dehennin 4 年之前
父節點
當前提交
2cfb5a74f3
共有 3 個檔案被更改,包括 7 行新增3 行删除
  1. +2
    -0
      test/integration/default/controls/config_spec.rb
  2. +2
    -0
      test/integration/default/controls/packages_spec.rb
  3. +3
    -3
      test/integration/default/controls/services_spec.rb

+ 2
- 0
test/integration/default/controls/config_spec.rb 查看文件

@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Overide by Platform
root_group =
case platform[:family]

+ 2
- 0
test/integration/default/controls/packages_spec.rb 查看文件

@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Overide by Platform
package_name =
case platform[:family]

+ 3
- 3
test/integration/default/controls/services_spec.rb 查看文件

@@ -1,8 +1,8 @@
# frozen_string_literal: true

# Overide by Platform
service_name = 'sshd'
if platform[:family] == 'debian'
service_name = 'ssh'
end
service_name = 'ssh' if platform[:family] == 'debian'

control 'openssh service' do
impact 0.5

Loading…
取消
儲存