Update the pre-commit git hook (#667)

It now supports both Linux and Windows and checks
both coding style (astyle) and does static code
analysis (cppcheck).
Tested using "Bash on Ubuntu on Windows" and the
git shell (via GitHub for Windows).

Installation is done by executing hooks/install-hooks.sh
Windows users has to execute it in a cygwin based git shell.

Tools:
astyle (2.05.1 or newer)
cppcheck (1.76.1 or newer)
This commit is contained in:
Patrick Fallberg
2016-11-28 14:57:26 -08:00
committed by Bruce Lacey
parent 2f587b9647
commit 6564daec3e
3 changed files with 71 additions and 18 deletions
+2
View File
@@ -1,3 +1,5 @@
toomanyconfigs
missingInclude
missingIncludeSystem
ConfigurationNotChecked
unmatchedSuppression