mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
Quiet flag (#491)
* Adding a quiet option * better description Co-authored-by: Zach Rice <zrice@gitlab.com>
This commit is contained in:
1 parent
091ea81e68
commit
58d130c5f3
6 files changed
+39
-27
No files matched your search
+5
-6
@@ -77,9 +77,8 @@ func (ngs *NoGitScanner) Scan() (Report, error) {
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
|
||||
if ngs.opts.Verbose {
|
||||
leak.Log(ngs.opts.Redact)
|
||||
}
|
||||
leak.Log(ngs.opts)
|
||||
|
||||
leaks <- leak
|
||||
}
|
||||
}
|
||||
@@ -120,9 +119,9 @@ func (ngs *NoGitScanner) Scan() (Report, error) {
|
||||
leak.LineNumber = lineNumber
|
||||
leak.Rule = rule.Description
|
||||
leak.Tags = strings.Join(rule.Tags, ", ")
|
||||
if ngs.opts.Verbose {
|
||||
leak.Log(ngs.opts.Redact)
|
||||
}
|
||||
|
||||
leak.Log(ngs.opts)
|
||||
|
||||
leaks <- leak
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user