Feat/ignore finding (#938)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-08-07 12:53:58 -05:00
1 parent e890a8e809
commit 3bace4c735
11 files changed
+713 -8

No files matched your search

+2
View File
@@ -26,6 +26,7 @@ func writeCsv(f []Finding, w io.WriteCloser) error {
"Message",
"Date",
"Email",
"Fingerprint",
})
if err != nil {
return err
@@ -44,6 +45,7 @@ func writeCsv(f []Finding, w io.WriteCloser) error {
f.Message,
f.Date,
f.Email,
f.Fingerprint,
})
if err != nil {
return err
+1
View File
@@ -32,6 +32,7 @@ func TestWriteCSV(t *testing.T) {
Author: "John Doe",
Email: "johndoe@gmail.com",
Date: "10-19-2003",
Fingerprint: "fingerprint",
},
}},
{
+3
View File
@@ -35,6 +35,9 @@ type Finding struct {
// Rule is the name of the rule that was matched
RuleID string
// unique identifer
Fingerprint string
}
// Redact removes sensitive information from a finding.