mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
adding a ton of stopwords to the generic rule only as that is the loudest rule (#851)
This commit is contained in:
1 parent
8481f0e9cd
commit
f93e5dc844
12 files changed
+3003
-44
No files matched your search
+2
-1
@@ -50,8 +50,9 @@ func (a *Allowlist) RegexAllowed(s string) bool {
|
||||
}
|
||||
|
||||
func (a *Allowlist) ContainsStopWord(s string) bool {
|
||||
s = strings.ToLower(s)
|
||||
for _, stopWord := range a.StopWords {
|
||||
if strings.Contains(s, stopWord) {
|
||||
if strings.Contains(s, strings.ToLower(stopWord)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
+1489
-17
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user