From f6910e3ee94c9cf33d485294e6505dba067cb1f0 Mon Sep 17 00:00:00 2001 From: Xiao Liang Date: Mon, 19 Jul 2021 22:30:44 +0800 Subject: [PATCH] feat: support bats (#1778) Support linting of bats files by identifying them as shell scripts (they actually are) --- lib/functions/detectFiles.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 0521ef4a..94b7cef7 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -332,6 +332,7 @@ function IsValidShellScript() { if [ "${FILE_EXTENSION}" == "sh" ] || [ "${FILE_EXTENSION}" == "bash" ] || + [ "${FILE_EXTENSION}" == "bats" ] || [ "${FILE_EXTENSION}" == "dash" ] || [ "${FILE_EXTENSION}" == "ksh" ]; then debug "$FILE is a valid shell script (has a valid extension: ${FILE_EXTENSION})"