Skip to content

Commit 254e447

Browse files
Jami CogswellJami Cogswell
authored andcommitted
JS/Python/Ruby: update getInvalidModelKind
1 parent 615f2a5 commit 254e447

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

javascript/ql/lib/semmle/javascript/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,12 @@ module ModelOutput {
663663
or
664664
exists(string kind | sinkModel(_, _, kind) |
665665
not kind instanceof ValidSinkKind and
666-
not kind.matches("credentials-%") and
667666
not kind.matches("test-%") and
668667
result = "Invalid kind \"" + kind + "\" in sink model."
669668
)
670669
or
671670
exists(string kind | sourceModel(_, _, kind) |
672671
not kind instanceof ValidSourceKind and
673-
not kind.matches("qltest%") and
674672
result = "Invalid kind \"" + kind + "\" in source model."
675673
)
676674
}

python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,12 @@ module ModelOutput {
663663
or
664664
exists(string kind | sinkModel(_, _, kind) |
665665
not kind instanceof ValidSinkKind and
666-
not kind.matches("credentials-%") and
667666
not kind.matches("test-%") and
668667
result = "Invalid kind \"" + kind + "\" in sink model."
669668
)
670669
or
671670
exists(string kind | sourceModel(_, _, kind) |
672671
not kind instanceof ValidSourceKind and
673-
not kind.matches("qltest%") and
674672
result = "Invalid kind \"" + kind + "\" in source model."
675673
)
676674
}

ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,12 @@ module ModelOutput {
663663
or
664664
exists(string kind | sinkModel(_, _, kind) |
665665
not kind instanceof ValidSinkKind and
666-
not kind.matches("credentials-%") and
667666
not kind.matches("test-%") and
668667
result = "Invalid kind \"" + kind + "\" in sink model."
669668
)
670669
or
671670
exists(string kind | sourceModel(_, _, kind) |
672671
not kind instanceof ValidSourceKind and
673-
not kind.matches("qltest%") and
674672
result = "Invalid kind \"" + kind + "\" in source model."
675673
)
676674
}

0 commit comments

Comments
 (0)