Excluded static analysis tests
This commit is contained in:
parent
9801333767
commit
6e84c5fdac
|
@ -70,11 +70,13 @@ function test_static_analysis {
|
|||
apt-get -yq install shellcheck
|
||||
fi
|
||||
|
||||
STATIC_ANALYSIS_EXCLUDED='SC2034,SC1090'
|
||||
|
||||
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-*"
|
||||
|
||||
for filename in $FILES
|
||||
do
|
||||
if ! shellcheck --exclude SC2034,SC1090 "$filename"; then
|
||||
if ! shellcheck --exclude "$STATIC_ANALYSIS_EXCLUDED" "$filename"; then
|
||||
echo ''
|
||||
echo $"${filename} failed static analysis"
|
||||
exit 24687242
|
||||
|
@ -85,7 +87,7 @@ function test_static_analysis {
|
|||
|
||||
for filename in $FILES
|
||||
do
|
||||
if ! shellcheck --exclude SC2034,SC1090 "$filename"; then
|
||||
if ! shellcheck --exclude "$STATIC_ANALYSIS_EXCLUDED" "$filename"; then
|
||||
echo ''
|
||||
echo $"${filename} failed static analysis"
|
||||
exit 3857395935
|
||||
|
@ -100,7 +102,7 @@ function test_static_analysis {
|
|||
continue
|
||||
fi
|
||||
|
||||
if ! shellcheck --exclude SC2034,SC1090 "$filename"; then
|
||||
if ! shellcheck --exclude "$STATIC_ANALYSIS_EXCLUDED" "$filename"; then
|
||||
echo ''
|
||||
echo $"${filename} failed static analysis"
|
||||
exit 784243468435
|
||||
|
|
Loading…
Reference in New Issue