mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
Print environment variables before running linters
This commit is contained in:
parent
4507a8e056
commit
df79a85546
1 changed files with 12 additions and 2 deletions
|
@ -412,10 +412,10 @@ GetLinterRules() {
|
|||
debug " -> Language rules file variable (${LANGUAGE_LINTER_RULES}) value is: ${!LANGUAGE_LINTER_RULES}"
|
||||
|
||||
if [ -e "${!LANGUAGE_LINTER_RULES}" ]; then
|
||||
debug " -> Rules file (${!LANGUAGE_LINTER_RULES}) exists."
|
||||
debug " -> ${LANGUAGE_LINTER_RULES} rules file (${!LANGUAGE_LINTER_RULES}) exists."
|
||||
else
|
||||
# Here we expect a rules file, so fail if not available.
|
||||
fatal " -> Rules file (${!LANGUAGE_LINTER_RULES}) doesn't exists. Terminating..."
|
||||
fatal " -> ${LANGUAGE_LINTER_RULES} rules file (${!LANGUAGE_LINTER_RULES}) doesn't exists. Terminating..."
|
||||
fi
|
||||
}
|
||||
################################################################################
|
||||
|
@ -1206,6 +1206,16 @@ BuildFileList "${VALIDATE_ALL_CODEBASE}"
|
|||
###############
|
||||
EDITORCONFIG_FILE_PATH="${GITHUB_WORKSPACE}"/.editorconfig
|
||||
|
||||
##################################################
|
||||
# Print ENV before running linters or test cases #
|
||||
##################################################
|
||||
debug "--- ENV (before running linters or test cases) ---"
|
||||
debug "--------------------------------------------------"
|
||||
PRINTENV=$(printenv | sort)
|
||||
debug "ENV:"
|
||||
debug "${PRINTENV}"
|
||||
debug "---------------------------------------------"
|
||||
|
||||
for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do
|
||||
debug "Running linter for the ${LANGUAGE} language..."
|
||||
VALIDATE_LANGUAGE_VARIABLE_NAME="VALIDATE_${LANGUAGE}"
|
||||
|
|
Loading…
Reference in a new issue