Set FILE_ARRAY_EDITORCONFIG

This commit is contained in:
Marco Ferrari 2020-10-03 00:33:01 +02:00
parent e1b1c7d223
commit d210896355
2 changed files with 4 additions and 1 deletions

View file

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

View file

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