CodeQL documentation

CodeQL query help for C#

Visit the articles below to see the documentation for the queries included in the following query suites:

  • code-scanning: queries run by default in CodeQL code scanning on GitHub.
  • security-extended: queries from code-scanning, plus extra security queries with slightly lower precision and severity.
  • security-and-quality: queries from code-scanning, security-extended, plus extra maintainability and reliability queries.

For shorter queries that you can use as building blocks when writing your own queries, see the example queries in the CodeQL repository.