adding warning

This commit is contained in:
Lucas Gravley 2020-08-28 10:08:21 -05:00
parent 0404c39203
commit 920f7b673b

View file

@ -247,14 +247,22 @@ function LintCodebase() {
# Check the shell for errors # # Check the shell for errors #
############################## ##############################
if [ ${ERROR_CODE} -ne 0 ]; then if [ ${ERROR_CODE} -ne 0 ]; then
######### if [[ ${FILE_TYPE} == "BASH-EXEC" ]];
# Error # ########
######### # WARN #
error "Found errors in [${LINTER_NAME}] linter!" ########
error "[${LINT_CMD}]" warn "Warnings found in [${LINTER_NAME}] linter!"
error "Linter CMD:[${LINTER_COMMAND} ${FILE}]" warn "${LINT_CMD}"
# Increment the error count else
(("ERRORS_FOUND_${FILE_TYPE}++")) #########
# Error #
#########
error "Found errors in [${LINTER_NAME}] linter!"
error "[${LINT_CMD}]"
error "Linter CMD:[${LINTER_COMMAND} ${FILE}]"
# Increment the error count
(("ERRORS_FOUND_${FILE_TYPE}++"))
fi
####################################################### #######################################################
# Store the linting as a temporary file in TAP format # # Store the linting as a temporary file in TAP format #