CodeQL custom model documentation improvements #18196
Replies: 1 comment 1 reply
-
Hi Thanks for your questions, I will try my best to reply below:
The
This is because it is language-dependent, and it is probably easiest to simply grep for existing models to see which ones are supported (for example, the
There are some examples of
You may be able to identify this by running the
I don't think we have any plans in this direction, but I think @jf205 may know more. |
Beta Was this translation helpful? Give feedback.
-
I've been looking into the development of custom models for CodeQL, as our internal codebases use a wide variety of bespoke libraries not currently modelled by CodeQL. For clarity, here is a link to the relevant documentation for custom models for Java and Kotlin codebases.
Unfortunately, the currently available documentation for custom models, regardless of langauge, is significantly lacking, to the point that development of models is challenging if not impossible without significant research. I was hoping to get some clarity on a number of issues, including but not limited to:
sourceModel
specifies aprovenence
parameter, but this parameter is not defined. Similarly,sinkModel
specifies akind
variable, but I cannot find documentation on valid values forkind
.sourceModel
andsinkModel
have relatively intuitive uses,summaryModel
andneutralModel
are not defined. No intuition is provided as to when these models should be defined and what kind of impact having (or lacking) these models have on the success of a query.Apologies for the excess of questions, but I figured organizing this into a single thread is better for visibility than creating multiple interrelated threads.
Beta Was this translation helpful? Give feedback.
All reactions