mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: More aggressive test file classification
This commit is contained in:
@@ -61,6 +61,8 @@ predicate isTestFile(File f) {
|
||||
)
|
||||
or
|
||||
f.getAbsolutePath().regexpMatch(".*/__(mocks|tests)__/.*")
|
||||
or
|
||||
f.getBaseName().matches("%.test.%")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user