Pārlūkot izejas kodu

chore(rubocop): allow use of `YAML.load` for `_mapdata.rb` [skip ci]

* Automated using https://github.com/myii/ssf-formula/pull/296
tags/v1.2.1
Daniel Dehennin pirms 3 gadiem
vecāks
revīzija
990970bd1a
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +3
    -0
      .rubocop.yml
  2. +1
    -1
      test/integration/default/controls/_mapdata.rb

+ 3
- 0
.rubocop.yml Parādīt failu

@@ -12,5 +12,8 @@ Metrics/BlockLength:
- describe
# Increase from default of `25`
Max: 30
Security/YAMLLoad:
Exclude:
- test/integration/**/_mapdata.rb

# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`

+ 1
- 1
test/integration/default/controls/_mapdata.rb Parādīt failu

@@ -23,7 +23,7 @@ control 'firewalld._mapdata' do
mapdata_file_path = "_mapdata/#{platform_finger}.yaml"
# Load the mapdata from profile, into a YAML structure
# https://docs.chef.io/inspec/profiles/#profile-files
mapdata_file_yaml = YAML.safe_load(inspec.profile.file(mapdata_file_path))
mapdata_file_yaml = YAML.load(inspec.profile.file(mapdata_file_path))
# Dump the YAML back into a string for comparison
mapdata_file_dump = YAML.dump(mapdata_file_yaml)


Notiek ielāde…
Atcelt
Saglabāt