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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user