CodeQL documentation

CodeQL documentation

CodeQL enables you to query code as though it were data. Write a query to find all variants of a vulnerability, eradicating it forever. Then share your query to help others do the same.

CODEQL RELEASE INFORMATION

Supported languages and frameworks
View the languages, libraries, and frameworks supported in the latest release of CodeQL...
Change logs
Read about the improvements to the queries, libraries, and tooling in each release...
System requirements
View the system requirements for running the latest version of CodeQL...
CodeQL coverage of CWEs
Detailed information on the coverage of Common Weakness Enumerations (CWEs) in the latest release...

LEARN TO WRITE CODEQL

About CodeQL
Learn what CodeQL is and how it works...
Writing CodeQL queries
Get to know more about queries and learn some key query-writing skills by solving puzzles...
CodeQL language guides
Experiment and learn how to write effective and efficient queries for CodeQL databases generated from the languages supported in CodeQL analysis...
Running CodeQL queries
Learn about the options available for running CodeQL queries on one or multiple codebases...

CODEQL RESOURCES

CodeQL CLI releases
Download the latest version of the CodeQL CLI...
CodeQL extension for Visual Studio Code
Download the extension from the Visual Studio Code Marketplace...
CodeQL repository
Contribute to the source code of the libraries and queries for CodeQL...

CODEQL REFERENCE DOCS

QL language reference
Learn all about QL, the powerful query language that underlies the code scanning tool CodeQL...
CodeQL standard libraries
Find details of the predicates, modules, and classes included with CodeQL...
CodeQL query help
View the query help for the queries included in the code scanning query suites...