Docker image verifying the code format with clang-format
Go to file
2019-06-14 13:42:44 -07:00
run-clang-format@50fc7ad73e Add original Docker image, using run-clang-format.py 2019-06-14 13:25:05 -07:00
.gitmodules Add original Docker image, using run-clang-format.py 2019-06-14 13:25:05 -07:00
Dockerfile Add original Docker image, using run-clang-format.py 2019-06-14 13:25:05 -07:00
LICENSE Initial commit 2019-06-14 13:23:10 -07:00
README.md README.md: Add initial README 2019-06-14 13:42:44 -07:00

clang-format-checker-docker

Docker image verifying the code format with clang-format

Getting Started

Mount the source folder in the src working directory and run the format checker

docker run --rm -v $(pwd):/src witekio/clang-format-checker

The return code will be

  • 1 if any formatting errors are found, and printed in the standard output.
  • 0 if no issue was found

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments