mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
Linter command output on newline (#1146)
When lint fails, print command output on a newline surrounded by "------" Co-authored-by: Lukas Gravley <admiralawkbar@github.com> Co-authored-by: Gabriel Diaz <gabo.fdc@gmail.com>
This commit is contained in:
parent
3c13a589f6
commit
c9471d70eb
1 changed files with 3 additions and 3 deletions
|
@ -283,7 +283,7 @@ function LintCodebase() {
|
||||||
# Error #
|
# Error #
|
||||||
#########
|
#########
|
||||||
error "Found errors in [${LINTER_NAME}] linter!"
|
error "Found errors in [${LINTER_NAME}] linter!"
|
||||||
error "Error code: ${ERROR_CODE}. Command output:${NC}[${LINT_CMD}]"
|
error "Error code: ${ERROR_CODE}. Command output:${NC}\n------\n${LINT_CMD}\n------"
|
||||||
# Increment the error count
|
# Increment the error count
|
||||||
(("ERRORS_FOUND_${FILE_TYPE}++"))
|
(("ERRORS_FOUND_${FILE_TYPE}++"))
|
||||||
fi
|
fi
|
||||||
|
@ -321,7 +321,7 @@ function LintCodebase() {
|
||||||
#########
|
#########
|
||||||
error "Found errors in [${LINTER_NAME}] linter!"
|
error "Found errors in [${LINTER_NAME}] linter!"
|
||||||
error "This file should have failed test case!"
|
error "This file should have failed test case!"
|
||||||
error "Error code: ${ERROR_CODE}. Command output:${NC}[${LINT_CMD}]."
|
error "Error code: ${ERROR_CODE}. Command output:${NC}\n------\n${LINT_CMD}\n------"
|
||||||
# Increment the error count
|
# Increment the error count
|
||||||
(("ERRORS_FOUND_${FILE_TYPE}++"))
|
(("ERRORS_FOUND_${FILE_TYPE}++"))
|
||||||
else
|
else
|
||||||
|
@ -339,7 +339,7 @@ function LintCodebase() {
|
||||||
AddDetailedMessageIfEnabled "${LINT_CMD}" "${TMPFILE}"
|
AddDetailedMessageIfEnabled "${LINT_CMD}" "${TMPFILE}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
debug "Error code: ${ERROR_CODE}. Command output:${NC}[${LINT_CMD}]."
|
debug "Error code: ${ERROR_CODE}. Command output:${NC}\n------\n${LINT_CMD}\n------"
|
||||||
done
|
done
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
Loading…
Reference in a new issue