From d210896355006fe9ab18e38868a096c67265ad08 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Sat, 3 Oct 2020 00:33:01 +0200 Subject: [PATCH] Set FILE_ARRAY_EDITORCONFIG --- lib/buildFileList.sh | 3 +++ lib/linter.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 6a42a619..23b00b8c 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -88,6 +88,9 @@ function BuildFileList() { ######### debug "FILE_TYPE:[${FILE_TYPE}]" + # Editorconfig-checker should check every file + FILE_ARRAY_EDITORCONFIG+=("${FILE}") + ###################### # Get the shell files # ###################### diff --git a/lib/linter.sh b/lib/linter.sh index b6aa6769..452868f2 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1349,7 +1349,7 @@ if [ "${VALIDATE_EDITORCONFIG}" == "true" ]; then # Lint the files with editorconfig # #################################### # LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILTER_REGEX_INCLUDE" "FILTER_REGEX_EXCLUDE" "FILE_ARRAY" - LintCodebase "EDITORCONFIG" "editorconfig-checker" "editorconfig-checker" "^.*$" "${FILTER_REGEX_INCLUDE}" "${FILTER_REGEX_EXCLUDE}" "${RAW_FILE_ARRAY[@]}" + LintCodebase "EDITORCONFIG" "editorconfig-checker" "editorconfig-checker" "^.*$" "${FILTER_REGEX_INCLUDE}" "${FILTER_REGEX_EXCLUDE}" "${FILE_ARRAY_EDITORCONFIG[@]}" fi ###############