{"id":13809718,"url":"https://github.com/github/codeql-coding-standards","last_synced_at":"2026-03-07T01:01:15.352Z","repository":{"id":45465829,"uuid":"513154248","full_name":"github/codeql-coding-standards","owner":"github","description":"This repository contains CodeQL queries and libraries which support various Coding Standards.","archived":false,"fork":false,"pushed_at":"2026-03-03T00:37:09.000Z","size":14519,"stargazers_count":191,"open_issues_count":126,"forks_count":76,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-03T09:02:07.815Z","etag":null,"topics":["autosar","cert","code-scanning","codeql","coding-standards","cpp14","functional-safety","iso26262","misra"],"latest_commit_sha":null,"homepage":"","language":"CodeQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":"change_notes/2021-06-29-remove-incompatability-codeql-cli-2.5.6.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"supported_codeql_configs.json","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-12T13:30:35.000Z","updated_at":"2026-03-03T07:45:56.000Z","dependencies_parsed_at":"2024-11-19T19:23:20.715Z","dependency_job_id":"62e1298e-8551-49d5-9f75-2eaedea53abd","html_url":"https://github.com/github/codeql-coding-standards","commit_stats":{"total_commits":1511,"total_committers":26,"mean_commits":58.11538461538461,"dds":0.7809397749834547,"last_synced_commit":"9f408a068c4166a0b88f5b9653f27f04c406172b"},"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/github/codeql-coding-standards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcodeql-coding-standards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcodeql-coding-standards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcodeql-coding-standards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcodeql-coding-standards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/codeql-coding-standards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fcodeql-coding-standards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autosar","cert","code-scanning","codeql","coding-standards","cpp14","functional-safety","iso26262","misra"],"created_at":"2024-08-04T02:00:34.890Z","updated_at":"2026-03-07T01:01:15.266Z","avatar_url":"https://github.com/github.png","language":"CodeQL","readme":"# CodeQL Coding Standards\n\nThis repository contains CodeQL queries and libraries which support various Coding Standards.\n\n## Supported standards\n\n_Carnegie Mellon and CERT are registered trademarks of Carnegie Mellon University._\n\nThis repository contains CodeQL queries and libraries which support various Coding Standards for the [C++14](https://www.iso.org/standard/64029.html), [C99](https://www.iso.org/standard/29237.html) and [C11](https://www.iso.org/standard/57853.html) programming languages.\n\nThe following coding standards are supported:\n- [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)](https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf). \n- [SEI CERT C++ Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)](https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=494932)\n- [SEI CERT C Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems (2016 Edition)](https://resources.sei.cmu.edu/downloads/secure-coding/assets/sei-cert-c-coding-standard-2016-v01.pdf)\n- [MISRA C 2012, 3rd Edition, 1st revision](https://www.misra.org.uk/product/misra-c2012-third-edition-first-revision/) (incoporating Amendment 1 \u0026 Technical Corrigendum 1). In addition, we support the following additional amendments and technical corrigendums:\n   - [MISRA C 2012 Amendment 2](https://misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD2.pdf)\n   - [MISRA C 2012 Technical Corrigendum 2](https://misra.org.uk/app/uploads/2022/04/MISRA-C-2012-TC2.pdf)\n   - [MISRA C 2012 Amendment 3](https://misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD3.pdf)\n   - [MISRA C 2012 Amendment 4](https://misra.org.uk/app/uploads/2021/06/MISRA-C-2012-AMD4.pdf)\n- [MISRA C 2023](https://misra.org.uk/product/misra-c2023/)\n\n## :construction: Standards under development :construction:\n\nThe following standards are under active development for [C++17](https://www.iso.org/standard/68564.html):\n\n- [MISRA C++ 2023](https://misra.org.uk/product/misra-cpp2023/) - under development - _scheduled for release 2026 Q1/Q2_\n\n## How do I use the CodeQL Coding Standards Queries?\n\nThe use of the CodeQL Coding Standards is extensively documented in the [user manual](docs/user_manual.md).\n\n### Use in a functional safety environment\n\nThe 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](docs/iso_26262_tool_qualification.md).\nUse 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](docs/user_manual.md).\n\nAny changes to the CodeQL Coding Standards distribution and/or deviations from the requirements and steps described in the [user manual](docs/user_manual.md) runs the risk of non compliance.\n\n\n## Contributing\n\nWe 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](CONTRIBUTING.md). You can also consult our [development handbook](docs/development_handbook.md) to learn about the requirements for a contribution.\n\n## License\n\nUnless otherwise noted below, the code in this repository is licensed under the [MIT License](LICENSE.md) by [GitHub](https://github.com).\n\nParts of certain query help files (`.md` extension) are reproduced under the following licenses:\n - [SEI CERT® Coding Standards](thirdparty/cert/LICENSE) (_reproduced as of 15th March 2021_).\n\nThese licenses are directly referenced where applicable.\n\nAll code in the [thirdparty](./thirdparty) directory is licensed according to the files present in those sub directories.\n\nAll header files in [c/common/test/includes/standard-library](./c/common/test/includes/standard-library) are licensed according to [LICENSE](c/common/test/includes/standard-library/LICENSE)\n\n---\n\n\u003csup\u003e1\u003c/sup\u003eThis 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.\n\n\n","funding_links":[],"categories":["CodeQL [Packs](https://docs.github.com/en/code-security/codeql-cli/using-the-codeql-cli/publishing-and-using-codeql-packs)","Platforms"],"sub_categories":["Other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcodeql-coding-standards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fcodeql-coding-standards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fcodeql-coding-standards/lists"}