Add filter options to tui subcommand (#508)

This commit is contained in:
Kota Kanbe
2017-09-28 18:31:09 +09:00
committed by GitHub
parent 7a1f132c1f
commit 8e15b9ce1c
5 changed files with 47 additions and 23 deletions

View File

@@ -165,13 +165,7 @@ func msgText(r models.ScanResult) string {
}
func toSlackAttachments(r models.ScanResult) (attaches []*attachment) {
var vinfos []models.VulnInfo
if config.Conf.IgnoreUnscoredCves {
vinfos = r.ScannedCves.FindScoredVulns().ToSortedSlice()
} else {
vinfos = r.ScannedCves.ToSortedSlice()
}
vinfos := r.ScannedCves.ToSortedSlice()
for _, vinfo := range vinfos {
curent := []string{}
for _, affected := range vinfo.AffectedPackages {