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 ###############