1'use strict' 2 3const Utils = require('../lib/utils') 4 5const report = function (data) { 6 const totalVulnCount = Utils.totalVulnCount(data.metadata.vulnerabilities) 7 8 return { 9 report: '', 10 exitCode: totalVulnCount === 0 ? 0 : 1 11 } 12} 13 14module.exports = report 15