| Nov |
DEC |
Jan |
|
30 |
|
| 2024 |
2025 |
2026 |
About this capture
The Wayback Machine - http://web.archive.org/web/20251230133756/https://github.com/github/codeql-coding-standards
Skip to content
Navigation Menu
Appearance settings
AI CODE CREATION
GitHub CopilotWrite better code with AI
GitHub SparkBuild and deploy intelligent apps
GitHub ModelsManage and compare prompts
MCP RegistryNewIntegrate external tools
DEVELOPER WORKFLOWS
ActionsAutomate any workflow
CodespacesInstant dev environments
IssuesPlan and track work
Code ReviewManage code changes
APPLICATION SECURITY
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
EXPLORE
●Why GitHub
●Documentation
●Blog
●Changelog
●Marketplace
View all features
BY COMPANY SIZE
●Enterprises
●Small and medium teams
●Startups
●Nonprofits
BY USE CASE
●App Modernization
●DevSecOps
●DevOps
●CI/CD
●View all use cases
BY INDUSTRY
●Healthcare
●Financial services
●Manufacturing
●Government
●View all industries
View all solutions
EXPLORE BY TOPIC
●AI
●Software Development
●DevOps
●Security
●View all topics
EXPLORE BY TYPE
●Customer stories
●Events & webinars
●Ebooks & reports
●Business insights
●GitHub Skills
SUPPORT & SERVICES
●Documentation
●Customer support
●Community forum
●Trust center
●Partners
COMMUNITY
GitHub SponsorsFund open source developers
PROGRAMS
●Security Lab
●Maintainer Community
●Accelerator
●Archive Program
REPOSITORIES
●Topics
●Trending
●Collections
ENTERPRISE SOLUTIONS
Enterprise platformAI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced SecurityEnterprise-grade security features
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
●Pricing
Search or jump to...
Clear
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
To see all available qualifiers, see our documentation.
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
github
/
codeql-coding-standards
Public
●
Notifications
You must be signed in to change notification settings
●
Fork
72
Star
182
This repository contains CodeQL queries and libraries which support various Coding Standards.
License
MIT license
182
stars
72
forks
Branches
Tags
Activity
Star
Notifications
You must be signed in to change notification settings
●
Code
●
Issues
104
●
Pull requests
27
●
Actions
●
Projects
1
●
Models
●
Wiki
●
Security
Uh oh!
There was an error while loading. Please reload this page.
●
Insights
Additional navigation options
●
Code
●
Issues
●
Pull requests
●
Actions
●
Projects
●
Models
●
Wiki
●
Security
●
Insights
github/codeql-coding-standards
main
BranchesTags
Open more actions menu
Folders and files
Repository files navigation
●README
●Code of conduct
●Contributing
●MIT license
●Security
CodeQL Coding Standards
This repository contains CodeQL queries and libraries which support various Coding Standards.
Supported standards
Carnegie Mellon and CERT are registered trademarks of Carnegie Mellon University.
This repository contains CodeQL queries and libraries which support various Coding Standards for the C++14, C99 and C11 programming languages.
The following coding standards are supported:
●AUTOSAR - Guidelines for the use of C++14 language in critical and safety-related systems (Releases R22-11, R20-11, R19-11 and R19-03).
●SEI CERT C++ Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)
●SEI CERT C Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)
●MISRA C 2012, 3rd Edition, 1st revision (incoporating Amendment 1 & Technical Corrigendum 1). In addition, we support the following additional amendments and technical corrigendums:
●MISRA C 2012 Amendment 2
●MISRA C 2012 Technical Corrigendum 2
●MISRA C 2012 Amendment 3
●MISRA C 2012 Amendment 4
●MISRA C 2023
🚧 Standards under development 🚧
The following standards are under active development for C++17:
●MISRA C++ 2023 - under development - scheduled for release 2026 Q1/Q2
How do I use the CodeQL Coding Standards Queries?
The use of the CodeQL Coding Standards is extensively documented in the user manual.
Use in a functional safety environment
The CodeQL Coding Standards is qualified as a "software tool" under "Part 8: Supporting processes" of ISO 26262 ("Road vehicles - Functional Safety") as described in our tool qualification documents.
Use of the CodeQL Coding Standards is only compliant with the qualification if it is used as distributed by GitHub and according to the requirements described in the user manual.
Any changes to the CodeQL Coding Standards distribution and/or deviations from the requirements and steps described in the user manual runs the risk of non compliance.
Contributing
We welcome contributions to our standard library and standard checks. Do you have an idea for a new check, or how to improve an existing query? Then please go ahead and open a pull request! Before you do, though, please take the time to read our contributing guidelines. You can also consult our development handbook to learn about the requirements for a contribution.
License
Unless otherwise noted below, the code in this repository is licensed under the MIT LicensebyGitHub.
Parts of certain query help files (.md extension) are reproduced under the following licenses:
●SEI CERT® Coding Standards (reproduced as of 15th March 2021).
These licenses are directly referenced where applicable.
All code in the thirdparty directory is licensed according to the files present in those sub directories.
All header files in c/common/test/includes/standard-library are licensed according to LICENSE
1This repository incorporates portions of the SEI CERT® Coding Standards available at https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards; however, such use does not necessarily constitute or imply an endorsement, recommendation, or favoring by Carnegie Mellon University or its Software Engineering Institute.
About
This repository contains CodeQL queries and libraries which support various Coding Standards.
Topics
cpp14
coding-standards
cert
misra
autosar
code-scanning
functional-safety
iso26262
codeql
Resources
Readme
License
MIT license
Code of conduct
Code of conduct
Contributing
Contributing
Security policy
Security policy
Uh oh!
There was an error while loading. Please reload this page.
Activity
Custom properties
Stars
182
stars
Watchers
4
watching
Forks
72
forks
Report repository
v2.53.0
Latest
Dec 24, 2025
+ 57 releases
Uh oh!
There was an error while loading. Please reload this page.
+ 15 contributors
Languages
●
CodeQL
64.4%
●
C
17.8%
●
C++
13.4%
●
Python
3.3%
●
PowerShell
1.0%
●
JavaScript
0.1%
Footer
© 2025 GitHub, Inc.
●
Terms
●
Privacy
●
Security
●
Status
●
Community
●
Docs
●
Contact
●
●
ation
You can’t perform that action at this time.