add global regex check (#717)

This commit is contained in:
Zachary Rice authored and GitHub committed 2021-11-25 11:17:03 -06:00
1 parent f498b1d308
commit 80d29764a0
3 files changed
+15 -1

No files matched your search

+6
View File
@@ -118,6 +118,12 @@ func TestDetectFindings(t *testing.T) {
filePath: filepath.Join(configPath, "simple.toml"),
expectedFindings: []report.Finding{},
},
{
cfgName: "allow_global_aws_re",
bytes: []byte(`awsToken := \"AKIALALEMEL33243OLIA\"`),
filePath: "tmp.go",
expectedFindings: []report.Finding{},
},
}
for _, tt := range tests {