mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
JS/Python/Ruby: update getInvalidModelKind
This commit is contained in:
@@ -663,14 +663,12 @@ module ModelOutput {
|
|||||||
or
|
or
|
||||||
exists(string kind | sinkModel(_, _, kind) |
|
exists(string kind | sinkModel(_, _, kind) |
|
||||||
not kind instanceof ValidSinkKind and
|
not kind instanceof ValidSinkKind and
|
||||||
not kind.matches("credentials-%") and
|
|
||||||
not kind.matches("test-%") and
|
not kind.matches("test-%") and
|
||||||
result = "Invalid kind \"" + kind + "\" in sink model."
|
result = "Invalid kind \"" + kind + "\" in sink model."
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(string kind | sourceModel(_, _, kind) |
|
exists(string kind | sourceModel(_, _, kind) |
|
||||||
not kind instanceof ValidSourceKind and
|
not kind instanceof ValidSourceKind and
|
||||||
not kind.matches("qltest%") and
|
|
||||||
result = "Invalid kind \"" + kind + "\" in source model."
|
result = "Invalid kind \"" + kind + "\" in source model."
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -663,14 +663,12 @@ module ModelOutput {
|
|||||||
or
|
or
|
||||||
exists(string kind | sinkModel(_, _, kind) |
|
exists(string kind | sinkModel(_, _, kind) |
|
||||||
not kind instanceof ValidSinkKind and
|
not kind instanceof ValidSinkKind and
|
||||||
not kind.matches("credentials-%") and
|
|
||||||
not kind.matches("test-%") and
|
not kind.matches("test-%") and
|
||||||
result = "Invalid kind \"" + kind + "\" in sink model."
|
result = "Invalid kind \"" + kind + "\" in sink model."
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(string kind | sourceModel(_, _, kind) |
|
exists(string kind | sourceModel(_, _, kind) |
|
||||||
not kind instanceof ValidSourceKind and
|
not kind instanceof ValidSourceKind and
|
||||||
not kind.matches("qltest%") and
|
|
||||||
result = "Invalid kind \"" + kind + "\" in source model."
|
result = "Invalid kind \"" + kind + "\" in source model."
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -663,14 +663,12 @@ module ModelOutput {
|
|||||||
or
|
or
|
||||||
exists(string kind | sinkModel(_, _, kind) |
|
exists(string kind | sinkModel(_, _, kind) |
|
||||||
not kind instanceof ValidSinkKind and
|
not kind instanceof ValidSinkKind and
|
||||||
not kind.matches("credentials-%") and
|
|
||||||
not kind.matches("test-%") and
|
not kind.matches("test-%") and
|
||||||
result = "Invalid kind \"" + kind + "\" in sink model."
|
result = "Invalid kind \"" + kind + "\" in sink model."
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(string kind | sourceModel(_, _, kind) |
|
exists(string kind | sourceModel(_, _, kind) |
|
||||||
not kind instanceof ValidSourceKind and
|
not kind instanceof ValidSourceKind and
|
||||||
not kind.matches("qltest%") and
|
|
||||||
result = "Invalid kind \"" + kind + "\" in source model."
|
result = "Invalid kind \"" + kind + "\" in source model."
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user