{"id":22861624,"url":"https://github.com/facthunder/cppcheck","last_synced_at":"2025-04-30T21:10:40.305Z","repository":{"id":38614148,"uuid":"181348367","full_name":"Facthunder/cppcheck","owner":"Facthunder","description":"Docker image for cppcheck","archived":false,"fork":false,"pushed_at":"2024-11-30T21:16:46.000Z","size":74,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T20:03:15.338Z","etag":null,"topics":["analyzer","c","code-analysis","cpp","cppcheck","docker","docker-image","misra","static-analysis"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Facthunder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-14T18:00:04.000Z","updated_at":"2024-12-30T22:24:11.000Z","dependencies_parsed_at":"2024-12-02T00:01:58.548Z","dependency_job_id":null,"html_url":"https://github.com/Facthunder/cppcheck","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Facthunder%2Fcppcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Facthunder%2Fcppcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Facthunder%2Fcppcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Facthunder%2Fcppcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Facthunder","download_url":"https://codeload.github.com/Facthunder/cppcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782776,"owners_count":21642987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["analyzer","c","code-analysis","cpp","cppcheck","docker","docker-image","misra","static-analysis"],"created_at":"2024-12-13T10:09:52.462Z","updated_at":"2025-04-30T21:10:40.278Z","avatar_url":"https://github.com/Facthunder.png","language":"Dockerfile","readme":"# Docker image for Cppcheck\n\nThis project aims to provide a simple Docker image to encapsulate and run a [Cppcheck](https://github.com/danmar/cppcheck) analysis through Docker.\n\n### Run Cppcheck\n\n#### Get latest image\nImages are now hosted directly on GitHub:\n```Dockerfile\ndocker pull ghcr.io/facthunder/cppcheck:latest\n```\n\n#### Run core checks\nAssuming current directory contains the source code to analyze, simply run the following command:\n```Dockerfile\ndocker run --rm -v ${PWD}:/src ghcr.io/facthunder/cppcheck:latest cppcheck -v --xml --enable=all . 2\u003e report.xml\n```\n\n#### Run MISRA C 2012 checks\nAssuming current directory contains the source code to analyze, simply run the following command:\n```Dockerfile\ndocker run --rm -v ${PWD}:/src ghcr.io/facthunder/cppcheck:latest cppcheck --dump .; misra.py *.dump 2\u003ereport.xml\n```\nOr simplier:\n```Dockerfile\ndocker run --rm -v ${PWD}:/src ghcr.io/facthunder/cppcheck misra\n```\n\n#### Run CERT checks\nAssuming current directory contains the source code to analyze, simply run the following command:\n```Dockerfile\ndocker run --rm -v ${PWD}:/src ghcr.io/facthunder/cppcheck:latest cppcheck --dump .; cert.py *.dump 2\u003ereport.xml\n```\n\n### Versions matrix\nHere is the versions matrix of the image:\n\n|                          TAG                           |                       CPPCHECK VERSION                       |                        BASE IMAGE                      |\n|:------------------------------------------------------:|:------------------------------------------------------------:|:------------------------------------------------------:|\n|  [latest](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.16.0)   |  [2.16.0](https://github.com/danmar/cppcheck/releases/tag/2.16.0)  | [python:3.13.0-slim-bookworm](https://hub.docker.com/_/python) |\n|  [2.16.0](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.16.0)   |  [2.16.0](https://github.com/danmar/cppcheck/releases/tag/2.16.0)  | [python:3.13.0-slim-bookworm](https://hub.docker.com/_/python) |\n|  [2.15.0](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.15.0)   |  [2.15.0](https://github.com/danmar/cppcheck/releases/tag/2.15.0)  | [python:3.13.0-slim-bookworm](https://hub.docker.com/_/python) |\n|  [2.14.2](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.14.2)   |  [2.14.2](https://github.com/danmar/cppcheck/releases/tag/2.14.2)  | [python:3.13.0-slim-bookworm](https://hub.docker.com/_/python) |\n|  [2.12.1](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.12.1)   |  [2.12.1](https://github.com/danmar/cppcheck/releases/tag/2.12.1)  | [python:3.11.5-slim-bookworm](https://hub.docker.com/_/python) |\n|  [2.7](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.7)   |  [2.7](https://github.com/danmar/cppcheck/releases/tag/2.7)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.6](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.6)   |  [2.6](https://github.com/danmar/cppcheck/releases/tag/2.6)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.5](https://github.com/facthunder/cppcheck/pkgs/container/cppcheck/2.5)   |  [2.5](https://github.com/danmar/cppcheck/releases/tag/2.5)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.4.1](https://hub.docker.com/r/facthunder/cppcheck) |[2.4.1](https://github.com/danmar/cppcheck/releases/tag/2.4.1)| [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.4](https://hub.docker.com/r/facthunder/cppcheck)   |  [2.4](https://github.com/danmar/cppcheck/releases/tag/2.4)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.3](https://hub.docker.com/r/facthunder/cppcheck)   |  [2.3](https://github.com/danmar/cppcheck/releases/tag/2.3)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.2](https://hub.docker.com/r/facthunder/cppcheck)   |  [2.2](https://github.com/danmar/cppcheck/releases/tag/2.2)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.1](https://hub.docker.com/r/facthunder/cppcheck)   |  [2.1](https://github.com/danmar/cppcheck/releases/tag/2.1)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [2.0](https://hub.docker.com/r/facthunder/cppcheck)   |  [2.0](https://github.com/danmar/cppcheck/releases/tag/2.0)  | [python:3.8.5-slim-buster](https://hub.docker.com/_/python) |\n|  [1.90](https://hub.docker.com/r/facthunder/cppcheck)  | [1.90](https://github.com/danmar/cppcheck/releases/tag/1.90) | [python:3.8.1-alpine](https://hub.docker.com/_/python) |\n|  [1.89](https://hub.docker.com/r/facthunder/cppcheck)  | [1.89](https://github.com/danmar/cppcheck/releases/tag/1.89) | [python:3.7.4-alpine](https://hub.docker.com/_/python) |\n|  [1.88](https://hub.docker.com/r/facthunder/cppcheck)  | [1.88](https://github.com/danmar/cppcheck/releases/tag/1.88) | [python:3.7.4-alpine](https://hub.docker.com/_/python) |\n|  [1.87](https://hub.docker.com/r/facthunder/cppcheck)  | [1.87](https://github.com/danmar/cppcheck/releases/tag/1.87) | [python:3.7.3-alpine](https://hub.docker.com/_/python) |\n\n### How to contribute\nIf you experienced a problem with the plugin please open an issue. Inside this issue please explain us how to reproduce this issue and paste the log.\n\nIf you want to do a PR, please put inside of it the reason of this pull request. If this pull request fix an issue please insert the number of the issue or explain inside of the PR how to reproduce this issue.\n\n### License\nCopyright 2024 Facthunder.\n\nLicensed under the [GNU General Public License, Version 3.0](https://www.gnu.org/licenses/gpl.txt)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacthunder%2Fcppcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacthunder%2Fcppcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacthunder%2Fcppcheck/lists"}