codeql query format

This commit is contained in:
Chad Bentz
2025-09-22 19:25:05 -04:00
parent 6e56c549b2
commit 89fd9694ce

View File

@@ -5,7 +5,9 @@ import codeql.ruby.AST
query predicate grapeApiClasses(Grape::GrapeApiClass api) { any() }
query predicate grapeEndpoints(Grape::GrapeApiClass api, Grape::GrapeEndpoint endpoint, string method, string path) {
query predicate grapeEndpoints(
Grape::GrapeApiClass api, Grape::GrapeEndpoint endpoint, string method, string path
) {
endpoint = api.getAnEndpoint() and
method = endpoint.getHttpMethod() and
path = endpoint.getPath()