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

+5 -6
View File
@@ -95,9 +95,8 @@ func (cs *CommitScanner) Scan() (Report, error) {
leak.Rule = rule.Description
leak.Tags = strings.Join(rule.Tags, ", ")
if cs.opts.Verbose {
leak.Log(cs.opts.Redact)
}
leak.Log(cs.opts)
scannerReport.Leaks = append(scannerReport.Leaks, leak)
continue
}
@@ -137,9 +136,9 @@ func (cs *CommitScanner) Scan() (Report, error) {
leak.LeakURL = leak.URL()
leak.Rule = rule.Description
leak.Tags = strings.Join(rule.Tags, ", ")
if cs.opts.Verbose {
leak.Log(cs.opts.Redact)
}
leak.Log(cs.opts)
scannerReport.Leaks = append(scannerReport.Leaks, leak)
}
}