lib/salus/processor.rb
def report_overall_scan
      failed_scans = @report.to_h[:scans].map do |scan, info|
        scan if info['passed'] == false
      end.compact

      if (failed_scans & @config.enforced_scanners.to_a).any?
        @report.scan_passed('overall', false)
      else
        @report.scan_passed('overall', true)
      end
    end
# Adds a true/false status for the success of the "overall" scan.
# We report true if all enforced scanners passed, else false.
Adds a true/false status for the success of the "overall" scan.
We report true if all enforced scanners passed, else false.
Adds a true / false status for the success of the " overall " scan . We report true if all enforced scanners passed else false .
def report_overall_scan
      failed_scans = @report.to_h[:scans].map do |scan, info|
        scan if info['passed'] == false
      end.compact
      if (failed_scans & @config.enforced_scanners.to_a).any?
        @report.scan_passed('overall', false)
      else
        @report.scan_passed('overall', true)
      end
    end
def report_overall_scan failed_scans = @report . to_h [ :scans ] . map do | scan , info | scan if info [ 'passed' ] == false end . compact if ( failed_scans & @config . enforced_scanners . to_a ) . any? @report . scan_passed ( 'overall' , false ) else @report . scan_passed ( 'overall' , true ) end end
Adds a true/false status for the success of the "overall" scan.
Adds a true / false status for the success of the " overall " scan .