mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 09:30:58 -05:00
Cleanup of errors
This commit is contained in:
parent
5001845b7b
commit
f74fa431f4
1 changed files with 14 additions and 38 deletions
|
@ -962,42 +962,18 @@ Footer() {
|
|||
###############################
|
||||
# Exit with 1 if errors found #
|
||||
###############################
|
||||
elif [ "${ERRORS_FOUND_ANSIBLE}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_ARM}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_BASH}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_CLOUDFORMATION}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_CLOJURE}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_COFFEESCRIPT}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_CSS}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_DART}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_DOCKER}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_ENV}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_GO}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_HTML}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_JAVASCRIPT_ES}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_JAVASCRIPT_STANDARD}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_JSON}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_JSX}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_KOTLIN}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_MARKDOWN}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_OPENAPI}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_PERL}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_PHP}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_POWERSHELL}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_PROTOBUF}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_PYTHON}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_RAKU}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_RUBY}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_STATES}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_TERRAFORM}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_TSX}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_TYPESCRIPT_ES}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_TYPESCRIPT_STANDARD}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_XML}" -ne 0 ] ||
|
||||
[ "${ERRORS_FOUND_YML}" -ne 0 ]; then
|
||||
elif
|
||||
# Loop through all languages
|
||||
for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do
|
||||
# build the variable
|
||||
ERRORS_FOUND_LANGUAGE="ERRORS_FOUND_${LANGUAGE}"
|
||||
# Check if error was found
|
||||
if [ "${!ERRORS_FOUND_LANGUAGE}" -ne 0 ]; then
|
||||
# Failed exit
|
||||
echo -e "${NC}${F[R]}Exiting with errors found!${NC}"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
else
|
||||
#################
|
||||
# Footer prints #
|
||||
|
|
Loading…
Reference in a new issue