From e638e3d8ac90b53146c51d13966091b8a4a00776 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:16:49 -0500 Subject: [PATCH] Fix shell errors --- README.md | 2 +- lib/linter.sh | 48 ------------------------------------------------ 2 files changed, 1 insertion(+), 49 deletions(-) diff --git a/README.md b/README.md index 71f8a276..6836a75f 100644 --- a/README.md +++ b/README.md @@ -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) | | **CoffeeScript** | [coffeelint](https://coffeelint.github.io/) | | **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) | | **ENV** | [dotenv-linter](https://github.com/dotenv-linter/dotenv-linter) | | **Golang** | [golangci-lint](https://github.com/golangci/golangci-lint) | diff --git a/lib/linter.sh b/lib/linter.sh index 30cf6231..137ab107 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1044,54 +1044,6 @@ Footer() { ############################### # 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 for LANGUAGE in "${LANGUAGE_ARRAY[@]}"; do # build the variable