From 798311822a90609e30566c30965bec9de54d878e Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Mon, 31 Aug 2020 19:47:05 +0200 Subject: [PATCH] Add file path to ZSH warning messages --- lib/buildFileList.sh | 2 +- lib/worker.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 53894376..431b3d26 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -100,7 +100,7 @@ function BuildFileList() { [ "${FILE_TYPE}" == "dash" ] || [ "${FILE_TYPE}" == "ksh" ]; then # Need to check if its a zsh file as we cannot parse it if CheckZsh "${FILE}"; then - warn "Found [zsh] script" + warn "Found [zsh] script: ${FILE}" info "ShellCheck does NOT currently support zsh, skipping file" else ################################ diff --git a/lib/worker.sh b/lib/worker.sh index 941d315f..48a06745 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -165,12 +165,12 @@ function LintCodebase() { continue elif [[ ${FILE_TYPE} == "BASH" ]] && CheckZsh "${FILE}"; then # ZSH file and we need to skip - warn "Found [zsh] script" + warn "Found [zsh] script: ${FILE}" info "ShellCheck does NOT currently support zsh, skipping file" continue elif [[ ${FILE_TYPE} == "SHELL_SHFMT" ]] && CheckZsh "${FILE}"; then # ZSH file and we need to skip - warn "Found [zsh] script" + warn "Found [zsh] script: ${FILE}" info "shfmt does NOT currently support zsh, skipping file" continue fi