mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
Shared: include 'qltest%' and 'test-%'
This commit is contained in:
@@ -663,7 +663,6 @@ module ModelOutput {
|
||||
or
|
||||
exists(string kind | sinkModel(_, _, kind) |
|
||||
not kind instanceof ValidSinkKind and
|
||||
not kind.matches("test-%") and
|
||||
result = "Invalid kind \"" + kind + "\" in sink model."
|
||||
)
|
||||
or
|
||||
|
||||
@@ -29,7 +29,7 @@ class ValidSinkKind extends string {
|
||||
or
|
||||
this.matches([
|
||||
// shared
|
||||
"encryption-%",
|
||||
"encryption-%", "qltest%", "test-%",
|
||||
// Java-only currently, but may be shared in the future
|
||||
"regex-use%",
|
||||
// JavaScript-only currently, but may be shared in the future
|
||||
@@ -53,11 +53,15 @@ class ValidSourceKind extends string {
|
||||
// C#
|
||||
"file", "file-write",
|
||||
// JavaScript
|
||||
"database-access-result"
|
||||
"database-access-result", "remote-flow"
|
||||
]
|
||||
or
|
||||
// Swift
|
||||
this.matches("%string-%length")
|
||||
this.matches([
|
||||
// shared
|
||||
"qltest%", "test-%",
|
||||
// Swift
|
||||
"%string-%length"
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user