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