-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java: Add VS Code model editor queries #14199
Conversation
The metadata should be fixed. Otherwise this looks fine, I think. |
@aschackmull Thanks for the review! I've made one last change to make it in line with the C# query that splits the |
I can successfully run DCA against these queries and the timings look to be reasonable for most projects. I've created a PR to add a new query suite to DCA: https://github.com/github/codeql-dca/pull/1673 |
This adds two queries that support the CodeQL Model Editor feature in the CodeQL VS Code extension. These queries will be used to retrieve models that can be modeled using MaD. The query results they produce can also be converted to SARIF, hence the static strings in the query.
The
ModelEditor.qll
file's behavior is very similar toExternalApi.qll
, but they are used for completely different purposes, and changes to theExternalApi.qll
do not necessarily need to propagate toModelEditor.qll
.These queries have been in use for a few weeks now in the VS Code extension (see
java.ts
). Using this, we have confirmed that these queries return the results we need. Once these queries are merged and released, we will switch to resolving the queries from the query packs. We will do so based on the tags.