mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-26 02:31:00 -05:00
adding warning
This commit is contained in:
parent
0404c39203
commit
920f7b673b
1 changed files with 16 additions and 8 deletions
|
@ -247,6 +247,13 @@ 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" ]];
|
||||||
|
########
|
||||||
|
# WARN #
|
||||||
|
########
|
||||||
|
warn "Warnings found in [${LINTER_NAME}] linter!"
|
||||||
|
warn "${LINT_CMD}"
|
||||||
|
else
|
||||||
#########
|
#########
|
||||||
# Error #
|
# Error #
|
||||||
#########
|
#########
|
||||||
|
@ -255,6 +262,7 @@ function LintCodebase() {
|
||||||
error "Linter CMD:[${LINTER_COMMAND} ${FILE}]"
|
error "Linter CMD:[${LINTER_COMMAND} ${FILE}]"
|
||||||
# Increment the error count
|
# Increment the error count
|
||||||
(("ERRORS_FOUND_${FILE_TYPE}++"))
|
(("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 #
|
||||||
|
|
Loading…
Reference in a new issue