[go: up one dir, main page]

facthunder/cppcheck

By facthunder

Updated almost 5 years ago

Docker image for cppcheck

Image
3

100K+

facthunder/cppcheck repository overview

Docker image for Cppcheck

This project aims to provide a simple Docker image to encapsulate and run a Cppcheck analysis through Docker.

Run Cppcheck
Run core checks

Assuming current directory contains the source code to analyze, simply run the following command:

docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck -v --xml --enable=all . 2> report.xml
Run MISRA C 2012 checks

Assuming current directory contains the source code to analyze, simply run the following command:

docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck --dump .; misra.py *.dump 2>report.xml

Or simplier:

docker run --rm -v ${PWD}:/src facthunder/cppcheck misra
Run CERT checks

Assuming current directory contains the source code to analyze, simply run the following command:

docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck --dump .; cert.py *.dump 2>report.xml
Versions matrix

Here is the versions matrix of the image:

How to contribute

If 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.

If 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.

License

Copyright 2021 Facthunder.

Licensed under the GNU General Public License, Version 3.0

Tag summary

Content type

Image

Digest

Size

62.3 MB

Last updated

almost 5 years ago

Requires Docker Desktop 4.37.1 or later.