Quiet flag (#491)

* Adding a quiet option

* better description

Co-authored-by: Zach Rice <zrice@gitlab.com>
This commit is contained in:
Zachary RiceandZach Rice authored and GitHub committed 2020-12-11 09:56:09 -05:00
1 parent 091ea81e68
commit 58d130c5f3
6 files changed
+39 -27

No files matched your search

+4 -4
View File
@@ -86,7 +86,7 @@ func (us *UnstagedScanner) Scan() (Report, error) {
leak.Rule = rule.Description
leak.Tags = strings.Join(rule.Tags, ", ")
if us.opts.Verbose {
leak.Log(us.opts.Redact)
leak.Log(us.opts)
}
scannerReport.Leaks = append(scannerReport.Leaks, leak)
}
@@ -198,9 +198,9 @@ func (us *UnstagedScanner) Scan() (Report, error) {
leak.Repo = us.repoName
leak.Rule = rule.Description
leak.Tags = strings.Join(rule.Tags, ", ")
if us.opts.Verbose {
leak.Log(us.opts.Redact)
}
leak.Log(us.opts)
scannerReport.Leaks = append(scannerReport.Leaks, leak)
}
}