mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
yamlizing
This commit is contained in:
1 parent
0fa6a79a25
commit
6f5079c193
4 files changed
+74
-53
No files matched your search
@@ -83,21 +83,6 @@ func checkShannonEntropy(target string, entropy64Cutoff int, entropyHexCutoff in
|
||||
|
||||
// containsStopWords checks if there are any stop words in target
|
||||
func containsStopWords(target string) bool {
|
||||
stopWords := []string{
|
||||
"setting",
|
||||
"Setting",
|
||||
"SETTING",
|
||||
"info",
|
||||
"Info",
|
||||
"INFO",
|
||||
"env",
|
||||
"Env",
|
||||
"ENV",
|
||||
"environment",
|
||||
"Environment",
|
||||
"ENVIRONMENT",
|
||||
}
|
||||
|
||||
for _, stopWord := range stopWords {
|
||||
if strings.Contains(target, stopWord) {
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user