Skip to content

Use cases for CodeQL for QL #5160

Answered by erik-krogh
Marcono1234 asked this question in Q&A
Discussion options

You must be logged in to vote

You have some nice ideas there, and QL-for-QL in a thing now, so now those ideas could become reality.
Feel free to take my quick prototypes from below and make some PRs, otherwise I might do it later.

Using exists(...) instead of cast.

Yes, good idea! I tried to throw up a prototype, and it detects 490 results that from a quick look seem reasonable.

Using exists(...) instead of any(...).

Also a good idea!
A quick prototype finds 122 results.

Including out-of-bounds index in 0-based set literal, e.g.:

I tried out some prototypes, but I was unable to find anything interesting.
I might just be doing it wrong, so inputs on this one are very welcome.

Not using set literal

We already h…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Marcono1234
Comment options

@erik-krogh
Comment options

Answer selected by Marcono1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants