From 718e23d7c9a55fb38e69264045cb52dc6dc5481d Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Mon, 16 Dec 2019 10:55:24 +0100 Subject: [PATCH] cloud-infra: Specify lookup path for shellcheck Change-Id: Ic071091030e606e342b4e0cb16ab657ae1d48ad2 --- jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh b/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh index 1144f14a9..6c6f69a21 100644 --- a/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh +++ b/jjb/cloud-infra/scripts/cloud-infra-shellcheck.sh @@ -33,7 +33,8 @@ declare -i exit_code=0 # lint the bash scripts for shell_script in $(find ${WORKSPACE}/ -type f -name *.sh); do echo "--> Checking '${shell_script}' shell script..." - shellcheck --color=never ${shell_script} + shellcheck --color=never --source-path="${WORKSPACE}" --external-sources \ + --format=tty ${shell_script} lint_exit_code=$? if [[ $lint_exit_code != 0 ]]; then exit_code=$lint_exit_code -- 2.25.1