mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-28 17:11:00 -05:00
Fix shell errors
This commit is contained in:
parent
f327a4dc5f
commit
e638e3d8ac
2 changed files with 1 additions and 49 deletions
|
@ -50,7 +50,7 @@ Developers on **GitHub** can call the **GitHub Action** to lint their code base
|
||||||
| **Clojure** | [clj-kondo](https://github.com/borkdude/clj-kondo) |
|
| **Clojure** | [clj-kondo](https://github.com/borkdude/clj-kondo) |
|
||||||
| **CoffeeScript** | [coffeelint](https://coffeelint.github.io/) |
|
| **CoffeeScript** | [coffeelint](https://coffeelint.github.io/) |
|
||||||
| **Dart** | [dartanalyzer](https://dart.dev/guides/language/analysis-options) |
|
| **Dart** | [dartanalyzer](https://dart.dev/guides/language/analysis-options) |
|
||||||
| **Dockerfile** | [dockerfilelint](https://github.com/replicatedhq/dockerfilelint.git) https://github.com/hadolint/hadolint |
|
| **Dockerfile** | [dockerfilelint](https://github.com/replicatedhq/dockerfilelint.git) https://github.com/hadolint/hadolint) |
|
||||||
| **EDITORCONFIG** | [editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) |
|
| **EDITORCONFIG** | [editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) |
|
||||||
| **ENV** | [dotenv-linter](https://github.com/dotenv-linter/dotenv-linter) |
|
| **ENV** | [dotenv-linter](https://github.com/dotenv-linter/dotenv-linter) |
|
||||||
| **Golang** | [golangci-lint](https://github.com/golangci/golangci-lint) |
|
| **Golang** | [golangci-lint](https://github.com/golangci/golangci-lint) |
|
||||||
|
|
|
@ -1044,54 +1044,6 @@ Footer() {
|
||||||
###############################
|
###############################
|
||||||
# Exit with 1 if errors found #
|
# Exit with 1 if errors found #
|
||||||
###############################
|
###############################
|
||||||
elif [ "${ERRORS_FOUND_YML}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_JSON}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_XML}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_MARKDOWN}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_BASH}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_PERL}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_RAKU}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_PHP}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_PYTHON}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_COFFEESCRIPT}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_ANSIBLE}" -ne 0 ] ||
|
|
||||||
[ "$ERRORS_FOUND_JAVA" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_JAVASCRIPT_ES}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_JAVASCRIPT_STANDARD}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_JSX}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_TSX}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_TYPESCRIPT_ES}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_TYPESCRIPT_STANDARD}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_DOCKER}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_GO}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_TERRAFORM}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_POWERSHELL}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_ARM}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_RUBY}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_CSS}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_CFN}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_ENV}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_OPENAPI}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_PROTOBUF}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_CLOJURE}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_KOTLIN}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_DART}" -ne 0 ] ||
|
|
||||||
[ "${ERRORS_FOUND_HTML}" -ne 0 ]; then
|
|
||||||
|
|
||||||
# Failed exit
|
|
||||||
echo -e "${NC}${F[R]}Exiting with errors found!${NC}"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
#################
|
|
||||||
# Footer prints #
|
|
||||||
#################
|
|
||||||
echo ""
|
|
||||||
echo -e "${NC}${F[G]}All file(s) linted successfully with no errors detected${NC}"
|
|
||||||
echo "----------------------------------------------"
|
|
||||||
echo ""
|
|
||||||
# Successful exit
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
# Loop through all languages
|
# Loop through all languages
|
||||||
for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do
|
for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do
|
||||||
# build the variable
|
# build the variable
|
||||||
|
|
Loading…
Reference in a new issue