CPP: New query for similarly named variables.#71
Closed
geoffw0 wants to merge 1 commit intogithub:masterfrom
Closed
CPP: New query for similarly named variables.#71geoffw0 wants to merge 1 commit intogithub:masterfrom
geoffw0 wants to merge 1 commit intogithub:masterfrom
Conversation
Contributor
|
Nice idea. I'm running the query on 41 projects here: https://lgtm.com/query/1506524156925/ |
Contributor
|
Does anyone see a genuine bug among the results? I think there should be a few good results before it makes sense to include this query by default. Maybe the same idea is better applied to JavaScript/Python or to string literals. |
Contributor
Author
|
On string literals it doesn't produce interesting results, even with short strings filtered out: I'm not set up to try out the query on JavaScript or Python. Mentioning @xiemaisi and I'll ping Mark in case they think it's worth a try. |
Contributor
Author
|
Nothing interesting turned up on Python: https://lgtm.com/query/1506522147600/ |
Contributor
Author
|
Closing due to little interest. |
aibaars
added a commit
that referenced
this pull request
Oct 14, 2021
Create disjoint db types for different operators
smowton
pushed a commit
to smowton/codeql
that referenced
this pull request
Dec 6, 2021
Kotlin: Add support for more kinds of entity
erik-krogh
pushed a commit
to erik-krogh/ql
that referenced
this pull request
Dec 15, 2021
"Parse" YAML without errors
erik-krogh
pushed a commit
to erik-krogh/ql
that referenced
this pull request
Dec 15, 2021
"Parse" YAML without errors
dbartol
pushed a commit
that referenced
this pull request
Dec 18, 2024
feat(query): New queries for incorrect secrets handling
MathiasVP
pushed a commit
to MathiasVP/ql
that referenced
this pull request
Aug 10, 2025
Merge upstream/v2.17.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This query comes from an idea that popped into my head while I was on holiday.
I haven't written tags, qldoc, tests or a change note for it yet - I'd prefer to solicit some feedback on whether we think this query is worthwhile first.
Typical results are variables called: