diff --git a/lib/linter.sh b/lib/linter.sh index a3a90f1e..b667123a 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -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}"