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.
- Host: GitHub
- URL: https://github.com/donosonaumczuk/c-aptain-hook
- Owner: donosonaumczuk
- Created: 2019-04-18T19:12:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T00:49:34.000Z (over 6 years ago)
- Last Synced: 2025-01-03T21:42:37.139Z (about 1 year ago)
- Topics: c, c-lang, c-language, clang-format, clang-tidy, cppcheck, git-hook, git-hooks, hooks, pre-commit, pre-commit-hook
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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