mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0eb57cbe4d | ||
|
|
3531887941 | ||
|
|
e9ebde73bc |
No files matched your search
@@ -1484,4 +1484,6 @@ var DefaultStopWords = []string{
|
|||||||
"boot",
|
"boot",
|
||||||
"book",
|
"book",
|
||||||
"branch",
|
"branch",
|
||||||
|
"combination",
|
||||||
|
"combo",
|
||||||
}
|
}
|
||||||
@@ -2221,4 +2221,6 @@ stopwords= [
|
|||||||
"boot",
|
"boot",
|
||||||
"book",
|
"book",
|
||||||
"branch",
|
"branch",
|
||||||
|
"combination",
|
||||||
|
"combo",
|
||||||
]
|
]
|
||||||
@@ -65,7 +65,6 @@ func filter(findings []report.Finding, redact bool) []report.Finding {
|
|||||||
if strings.Contains(strings.ToLower(f.RuleID), "generic") {
|
if strings.Contains(strings.ToLower(f.RuleID), "generic") {
|
||||||
for _, fPrime := range findings {
|
for _, fPrime := range findings {
|
||||||
if f.StartLine == fPrime.StartLine &&
|
if f.StartLine == fPrime.StartLine &&
|
||||||
f.EndLine == fPrime.EndLine &&
|
|
||||||
f.Commit == fPrime.Commit &&
|
f.Commit == fPrime.Commit &&
|
||||||
f.RuleID != fPrime.RuleID &&
|
f.RuleID != fPrime.RuleID &&
|
||||||
strings.Contains(fPrime.Secret, f.Secret) &&
|
strings.Contains(fPrime.Secret, f.Secret) &&
|
||||||
|
|||||||
Reference in new issue
Block a user