Skip to content

CodeQl scanning #6116

Answered by GeekMasher
jenkinszolve asked this question in Q&A
Jun 21, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

There could be a number of reasons that the CodeQL analysis only picks up X number of line of code during the build.

  1. While compiling code, not all files / lines were build

In some cases using auto-build or manual build commands there can be some source code that isn't compiled.
These could be tests, dead code that isn't build or a few other reasons.

  1. Unsupported Compilers

Some compilers do not work with CodeQL and can cause issues while analysing the code.
An example of this is Project Lombok where it using non-public compiler APIs in order to achieve the modifications to compiler behavior that it needs.
In doing so, it makes assumptions that are not valid for CodeQL's Java extractor s…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@niroshan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by adityasharad
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