An open API service indexing awesome lists of open source software.

https://github.com/donosonaumczuk/c-aptain-hook

Base repository to setup git pre-commit hook for C Language projects. Use cppcheck, clang-format and clang-tidy checks.
https://github.com/donosonaumczuk/c-aptain-hook

c c-lang c-language clang-format clang-tidy cppcheck git-hook git-hooks hooks pre-commit pre-commit-hook

Last synced: 11 months ago
JSON representation

Base repository to setup git pre-commit hook for C Language projects. Use cppcheck, clang-format and clang-tidy checks.

Awesome Lists containing this project

README

          

# c-aptain-hook
Base repository to setup git pre-commit hook for C Language projects. Use cppcheck, clang-format and clang-tidy checks.

## Interesting links
* [Pre-commit hook example in cppcheck repositoty](https://github.com/danmar/cppcheck/blob/master/tools/git-pre-commit-cppcheck)
* [clang-format](http://releases.llvm.org/7.0.1/tools/clang/docs/ClangFormatStyleOptions.html)
* [cppcheck](http://cppcheck.sourceforge.net/)
* [cland-tidy](https://clang.llvm.org/extra/index.html)
* [How to setup git hooks](https://www.darrenlester.com/blog/including-hooks-in-a-git-repository)

## How to setup

Clone the repository and just run the `setup` script!

Is possible that you may need to give execution permission to hooks files