mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
Add file path to ZSH warning messages
This commit is contained in:
parent
833dcb8bd8
commit
798311822a
2 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ function BuildFileList() {
|
||||||
[ "${FILE_TYPE}" == "dash" ] || [ "${FILE_TYPE}" == "ksh" ]; then
|
[ "${FILE_TYPE}" == "dash" ] || [ "${FILE_TYPE}" == "ksh" ]; then
|
||||||
# Need to check if its a zsh file as we cannot parse it
|
# Need to check if its a zsh file as we cannot parse it
|
||||||
if CheckZsh "${FILE}"; then
|
if CheckZsh "${FILE}"; then
|
||||||
warn "Found [zsh] script"
|
warn "Found [zsh] script: ${FILE}"
|
||||||
info "ShellCheck does NOT currently support zsh, skipping file"
|
info "ShellCheck does NOT currently support zsh, skipping file"
|
||||||
else
|
else
|
||||||
################################
|
################################
|
||||||
|
|
|
@ -165,12 +165,12 @@ function LintCodebase() {
|
||||||
continue
|
continue
|
||||||
elif [[ ${FILE_TYPE} == "BASH" ]] && CheckZsh "${FILE}"; then
|
elif [[ ${FILE_TYPE} == "BASH" ]] && CheckZsh "${FILE}"; then
|
||||||
# ZSH file and we need to skip
|
# 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"
|
info "ShellCheck does NOT currently support zsh, skipping file"
|
||||||
continue
|
continue
|
||||||
elif [[ ${FILE_TYPE} == "SHELL_SHFMT" ]] && CheckZsh "${FILE}"; then
|
elif [[ ${FILE_TYPE} == "SHELL_SHFMT" ]] && CheckZsh "${FILE}"; then
|
||||||
# ZSH file and we need to skip
|
# 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"
|
info "shfmt does NOT currently support zsh, skipping file"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue