Makes Scripts Fail Fast and Loud
This commit is contained in:
committed by
Patrick Niklaus
parent
46994e87be
commit
1d994da12b
@@ -1,10 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
set -o nounset
|
||||
|
||||
# Runs the Static Analyzer on the code base.
|
||||
# This is a wrapper intended to be used with like this:
|
||||
# 1/ analyze cmake ..
|
||||
# 2/ analyze cmake --build .
|
||||
|
||||
|
||||
exec scan-build -analyze-headers -no-failure-reports --keep-going --status-bugs \
|
||||
-enable-checker alpha.core.BoolAssignment \
|
||||
-enable-checker alpha.core.IdenticalExpr \
|
||||
|
||||
Reference in New Issue
Block a user