GithubHelp home page GithubHelp logo

juprgn / cppcheck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facthunder/cppcheck

0.0 0.0 0.0 40 KB

Docker image for cppcheck

License: GNU General Public License v3.0

Dockerfile 100.00%

cppcheck's Introduction

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:

TAG CPPCHECK VERSION BASE IMAGE
latest 1.90 python:3.8.1-alpine
1.90 1.90 python:3.8.1-alpine
1.89 1.89 python:3.7.4-alpine
1.88 1.88 python:3.7.4-alpine
1.87 1.87 python:3.7.3-alpine

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 2020 Facthunder.

Licensed under the GNU General Public License, Version 3.0

cppcheck's People

Contributors

begarco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.