Skip to content

Commit

Permalink
chore: fix allow rule of ignoring test files to make it case insensit…
Browse files Browse the repository at this point in the history
…ive (#7415)
  • Loading branch information
aasish-r authored Aug 29, 2024
1 parent 98e136e commit 344dafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fanal/secret/builtin-allow-rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var builtinAllowRules = []AllowRule{
{
ID: "tests",
Description: "Avoid test files and paths",
Path: MustCompile(`(^test|\/test|-test|_test|\.test)`),
Path: MustCompile(`(^(?i)test|\/test|-test|_test|\.test)`),
},
{
ID: "examples",
Expand Down

0 comments on commit 344dafd

Please sign in to comment.