Visitar URL original
Add support for running C# query. by starcke · Pull Request #2329 · github/vscode-codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260605023838/https://github.com/github/vscode-codeql/pull/2329
Skip to content

Add support for running C# query.#2329

Merged
starcke merged 3 commits into
mainfrom
starcke/ext-csharp-query
Apr 17, 2023
Merged

Add support for running C# query.#2329
starcke merged 3 commits into
mainfrom
starcke/ext-csharp-query

Conversation

@starcke
Copy link
Copy Markdown
Contributor

@starcke starcke commented Apr 14, 2023 •

This adds support for extracting external API information for C# to the data extension panel.
It is mostly trivial with a few notes:

  • I updated the Java query to not look at FlowSummaryImpl::Public::NeutralCallable anymore to match the C# query.
  • I updated the test to be generic in the language and run for both.

Checklist

N/A

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@starcke starcke requested a review from koesie10 April 14, 2023 13:41
@starcke starcke marked this pull request as ready for review April 14, 2023 13:41
@starcke starcke requested a review from a team as a code owner April 14, 2023 13:41
not api.isSupported() and
not api = any(FlowSummaryImpl::Public::NeutralCallable nsc).asCallable() and
result = false
not api.isSupported() and result = false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I forgot to do this when copying over the query from the issue.

* @name Usage of APIs coming from external libraries
* @description A list of 3rd party APIs used in the codebase.
* @tags telemetry
* @id csharp/telemetry/fetch-external-apis
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the id used in C# queries is cs (e.g. here). It's probably best to already set this to cs to ensure we don't need to update this when upstreaming it.

starcke and others added 2 commits April 17, 2023 09:28
…sions-editor/external-api-usage-query.test.ts

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
@starcke
Copy link
Copy Markdown
Contributor Author

starcke commented Apr 17, 2023

Addressed comments.

@starcke starcke requested a review from koesie10 April 17, 2023 08:06
@starcke starcke merged commit 1367d38 into main Apr 17, 2023
@starcke starcke deleted the starcke/ext-csharp-query branch April 17, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants