- Notifications
You must be signed in to change notification settings - Fork1.7k
Java: Restrict results to source literals.#20054
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Java: Restrict results to source literals.#20054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR restricts a CodeQL query to only analyze source literals rather than compiled bytecode literals. The change addresses performance issues caused by literals extracted from.class
files that contain many control characters, which can cause the query to become inefficient while providing limited value.
- Adds a filter to restrict analysis to source compilation units only
- Adds documentation explaining why Kotlin files are excluded to prevent false positives
b13f118
intogithub:mainUh oh!
There was an error while loading.Please reload this page.
Some literals extracted from
.class
files can contain many control chars, which can cause this query to blow up. Those results are pretty useless, so we can simply exclude them.