Tool bundle updates (#693)

* Pre-commit --cached vs. less-efficient iteration

 * During pre-commit, leverage the git cppcheck --cached
   form instead of iterating over the cached files and
   invoking git cppcheck on each to eliminate
   redundant static analysis

* Add support for Debian Linux on ARM

* Check prerequisite tool minimum versions

 * Bootstrapping will now confirm that each
   prerequisite tool satisfies the minimum version
   required
This commit is contained in:
Bruce Lacey
2016-12-18 11:57:59 +01:00
committed by Olivier
parent 3be2516ef8
commit 6a68510d57
3 changed files with 22 additions and 22 deletions
+1 -9
View File
@@ -20,14 +20,6 @@ done
###
# cppcheck
#
errorsDetected=0
for file in $(stagedSourceFiles); do
if ! git cppcheck $file >/dev/null; then
warn "$file failed static analysis."
errorsDetected=1
fi
done
[ $errorsDetected == 1 ] && err "Correct the errors until cppcheck passees using 'git cppcheck --cached'."
git cppcheck --cached || err "Correct the errors until cppcheck passes using 'git cppcheck --cached'."
exit 0