Question about CodeQL Queries #171033
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To run a comprehensive set of CodeQL queries for your C/C++ malicious files, start with cpp-security-and-quality.qls from the CodeQL repository, as it’s a curated suite that balances security and quality checks. If you need broader coverage, create a custom .qls file to include specific suites like cpp-security.qls or cpp-performance.qls, depending on your goals. For example:
Avoid using a glob pattern like ../**/*.ql unless you specifically need experimental or internal queries, as it may include test queries that produce noisy or unreliable results. CodeQL automatically handles duplicate queries, so you don’t need to worry about overlaps in suites. |
Beta Was this translation helpful? Give feedback.
cpp-security-and-quality.qls: broad coverage, includes security and correctness checks.
cpp-security-experimental.qls: additional security queries that are not yet part of the default curated set but still useful.
cpp-security-extended.qls (if available in your CodeQL checkout, it may be newer): includes more specialized or less battle-tested queries.