Ignore test files in env vars query
This commit is contained in:
parent
ba5812e64f
commit
97ce1b094a
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ predicate envVarRead(DataFlow::Node node, string envVar) {
|
|||
from DataFlow::Node read, string envVar
|
||||
where
|
||||
envVarRead(read, envVar) and
|
||||
not read.getFile().getBaseName().matches("%.test.ts") and
|
||||
not isSafeForDefaultSetup(envVar)
|
||||
select read,
|
||||
"The environment variable " + envVar +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue