Skip to content

Commit 36f265c

Browse files
committed
Select all shell files
1 parent 074f2a3 commit 36f265c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf/run_linters.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ fi
7272
if [[ "${localbuild}" = "true" ]]; then
7373
if [[ "${linters_to_run}" == *"shellcheck"* ]]; then
7474
echo "===> Running shellcheck"
75-
shellcheck "${ROOT_DIR}"/*.sh "${ROOT_DIR}"/*/*.sh -s bash -f json | jq | tee "${BUILD_DIR}/shellcheck-report.json" | "${CONF_DIR}"/shellcheck2sonar.py "${external_format}" > "${SHELLCHECK_REPORT}"
75+
shellcheck $(find "${ROOT_DIR}" . -name '*.sh') \
76+
-s bash -f json | jq | tee "${BUILD_DIR}/shellcheck-report.json" | "${CONF_DIR}"/shellcheck2sonar.py "${external_format}" > "${SHELLCHECK_REPORT}"
7677
[[ ! -s "${SHELLCHECK_REPORT}" ]] && rm -f "${SHELLCHECK_REPORT}"
7778
cat "${BUILD_DIR}/shellcheck-report.json"
7879
fi

0 commit comments

Comments
 (0)