diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index fc3cfdaa..bf48769f 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -1,35 +1,2 @@ --- -########################### -########################### -## Markdown Linter rules ## -########################### -########################### - -# Linter rules doc: -# - https://github.com/DavidAnson/markdownlint -# -# Note: -# To comment out a single error: -# -# any violations you want -# -# - -############### -# Rules by id # -############### -MD004: false # Unordered list style -MD007: - indent: 2 # Unordered list indentation -MD013: - line_length: 808 # Line length -MD026: - punctuation: ".,;:!。,;:" # List of not allowed -MD029: false # Ordered list item prefix -MD033: false # Allow inline HTML -MD036: false # Emphasis used instead of a heading - -################# -# Rules by tags # -################# -blank_lines: false # Error on blank lines +extends: "markdownlint/style/prettier" diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index c814fec8..00000000 --- a/.prettierignore +++ /dev/null @@ -1,4 +0,0 @@ -# Don't format Markdown files to verify tests -# because we don't yet generate formatted Markdown -# tables when creating the summary file -test/data/super-linter-summary/markdown/table/**/*.md diff --git a/Makefile b/Makefile index e49e4e81..223f2d01 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,7 @@ open-shell-super-linter-container: ## Open a shell in the Super-linter container docker run $(DOCKER_FLAGS) \ --interactive \ --entrypoint /bin/bash \ + --rm \ -v "$(CURDIR)":/tmp/lint \ $(SUPER_LINTER_TEST_CONTAINER_URL) @@ -167,6 +168,7 @@ test-actions-runner-debug: ## Run super-linter with ACTIONS_RUNNER_DEBUG=true -e DEFAULT_BRANCH=main \ -e USE_FIND_ALGORITHM=true \ -v "$(CURDIR)/.github":/tmp/lint/.github \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-actions-steps-debug @@ -178,6 +180,7 @@ test-actions-steps-debug: ## Run super-linter with ACTIONS_STEPS_DEBUG=true -e DEFAULT_BRANCH=main \ -e USE_FIND_ALGORITHM=true \ -v "$(CURDIR)/.github":/tmp/lint/.github \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-runner-debug @@ -189,6 +192,7 @@ test-runner-debug: ## Run super-linter with RUNNER_DEBUG=1 -e DEFAULT_BRANCH=main \ -e USE_FIND_ALGORITHM=true \ -v "$(CURDIR)/.github":/tmp/lint/.github \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-find @@ -200,6 +204,7 @@ test-find: ## Run super-linter on a subdirectory with USE_FIND_ALGORITHM=true -e DEFAULT_BRANCH=main \ -e USE_FIND_ALGORITHM=true \ -v "$(CURDIR)/.github":/tmp/lint/.github \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) # We need to set USE_FIND_ALGORITHM=true because the DEFALUT_WORKSPACE is not @@ -215,6 +220,7 @@ test-non-default-workdir: ## Run super-linter with DEFAULT_WORKSPACE set -e USE_FIND_ALGORITHM=true \ -e VALIDATE_ALL_CODEBASE=true \ -v $(CURDIR)/.github:/tmp/not-default-workspace/.github \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-git-flags @@ -229,6 +235,7 @@ test-git-flags: ## Run super-linter with different git-related flags -e IGNORE_GITIGNORED_FILES=true \ -e VALIDATE_ALL_CODEBASE=true \ -v "$(CURDIR)":/tmp/lint \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: lint-codebase @@ -246,6 +253,7 @@ lint-codebase: ## Lint the entire codebase -e SAVE_SUPER_LINTER_SUMMARY=true \ -e VALIDATE_ALL_CODEBASE=true \ -v "$(CURDIR):/tmp/lint" \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) # Return an error if there are changes to commit @@ -273,6 +281,7 @@ fix-codebase: ## Fix and format the entire codebase -e SAVE_SUPER_LINTER_SUMMARY=true \ -e VALIDATE_ALL_CODEBASE=true \ -v "$(CURDIR):/tmp/lint" \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) \ && /bin/bash -c "source test/testUtils.sh; if ! CheckUnexpectedGitChanges ${CURDIR}; then exit 1; fi" @@ -293,6 +302,7 @@ lint-subset-files-enable-only-one-type: ## Lint a small subset of files in the c -e VALIDATE_ALL_CODEBASE=true \ -e VALIDATE_MARKDOWN=true \ -v "$(CURDIR):/tmp/lint" \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: lint-subset-files-enable-expensive-io-checks @@ -312,6 +322,7 @@ lint-subset-files-enable-expensive-io-checks: ## Lint a small subset of files in -e VALIDATE_STATES=true \ -e VALIDATE_TEKTON=true \ -v "$(CURDIR):/tmp/lint" \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-lib @@ -323,6 +334,7 @@ test-globals-languages: ## Test globals/languages.sh -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/globalsLanguagesTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-globals-linter-command-options @@ -331,6 +343,7 @@ test-globals-linter-command-options: ## Test globals/LinterCommandsOptions.sh -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/globalsLinterCommandsOptionsTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-linter-rules @@ -339,6 +352,7 @@ test-linter-rules: ## Test linterRules.sh -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/linterRulesTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-build-file-list @@ -347,6 +361,7 @@ test-build-file-list: ## Test buildFileList -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/buildFileListTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-detect-files @@ -355,6 +370,7 @@ test-detect-files: ## Test detectFiles -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/detectFilesTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-github-event @@ -363,6 +379,7 @@ test-github-event: ## Test githubEvent -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/githubEventTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-setup-ssh @@ -372,6 +389,7 @@ test-setup-ssh: ## Test setupSSH -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/setupSSHTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-validation @@ -380,6 +398,7 @@ test-validation: ## Test validation -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/validationTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-output @@ -388,6 +407,7 @@ test-output: ## Test output -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/outputTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-linter-commands @@ -396,6 +416,7 @@ test-linter-commands: ## Test linterCommands -v "$(CURDIR):/tmp/lint" \ -w /tmp/lint \ --entrypoint /tmp/lint/test/lib/linterCommandsTest.sh \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) # Run this test against a small directory because we're only interested in @@ -410,6 +431,7 @@ test-default-config-files: ## Test default configuration files loading -e DEFAULT_BRANCH=main \ -e USE_FIND_ALGORITHM=true \ -v "$(CURDIR)/docs":/tmp/lint \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-custom-ssl-cert @@ -422,6 +444,7 @@ test-custom-ssl-cert: ## Test the configuration of a custom SSL/TLS certificate -e USE_FIND_ALGORITHM=true \ -e SSL_CERT_SECRET="$(shell cat test/data/ssl-certificate/rootCA-test.crt)" \ -v "$(CURDIR)/docs":/tmp/lint \ + --rm \ $(SUPER_LINTER_TEST_CONTAINER_URL) .PHONY: test-non-default-home-directory @@ -562,6 +585,7 @@ build-dev-container-image: docker-dev-container-build-check ## Build commit lint lint-commits: build-dev-container-image ## Lint commits docker run \ -v "$(CURDIR):/source-repository" \ + --rm \ ${DEV_CONTAINER_URL} \ commitlint \ --config .github/linters/commitlint.config.js \ @@ -575,6 +599,7 @@ release-please-dry-run: build-dev-container-image check-github-token ## Run rele @echo "Running release-please against branch: ${RELEASE_PLEASE_TARGET_BRANCH}"; \ docker run \ -v "$(CURDIR):/source-repository" \ + --rm \ ${DEV_CONTAINER_URL} \ release-please \ release-pr \ diff --git a/lib/functions/output.sh b/lib/functions/output.sh index ae9939dd..1d27405e 100755 --- a/lib/functions/output.sh +++ b/lib/functions/output.sh @@ -6,8 +6,8 @@ WriteSummaryHeader() { { echo "# Super-linter summary" echo "" - echo "| Language | Validation result |" - echo "| -----------------------|-------------------|" + echo "| Language | Validation result |" + echo "| -------- | ----------------- |" } >>"${SUPER_LINTER_SUMMARY_OUTPUT_PATH}" } @@ -38,3 +38,20 @@ WriteSummaryFooterFailure() { echo "Super-linter detected linting errors" } >>"${SUPER_LINTER_SUMMARY_OUTPUT_PATH}" } + +FormatSuperLinterSummaryFile() { + local SUPER_LINTER_SUMMARY_OUTPUT_PATH="${1}" + local SUPER_LINTER_SUMMARY_FORMAT_COMMAND=(prettier --write) + # Override the default prettier ignore paths (.gitignore, .prettierignore) to + # avoid considering their defaults because prettier will skip formatting + # the summary report file if the summary report file is ignored in those + # ignore files, which is usually the case for generated files. + # Ref: https://prettier.io/docs/en/cli#--ignore-path + SUPER_LINTER_SUMMARY_FORMAT_COMMAND+=(--ignore-path /dev/null) + SUPER_LINTER_SUMMARY_FORMAT_COMMAND+=("${SUPER_LINTER_SUMMARY_OUTPUT_PATH}") + debug "Formatting the Super-linter summary file by running: ${SUPER_LINTER_SUMMARY_FORMAT_COMMAND[*]}" + if ! "${SUPER_LINTER_SUMMARY_FORMAT_COMMAND[@]}"; then + error "Error while formatting the Super-linter summary file." + return 1 + fi +} diff --git a/lib/linter.sh b/lib/linter.sh index b72f3810..96b4e6c2 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -561,6 +561,9 @@ Footer() { fi if [[ "${SAVE_SUPER_LINTER_SUMMARY}" == "true" ]]; then + if ! FormatSuperLinterSummaryFile "${SUPER_LINTER_SUMMARY_OUTPUT_PATH}"; then + fatal "Error while formatting the Super-linter summary file." + fi debug "Super-linter summary file (${SUPER_LINTER_SUMMARY_OUTPUT_PATH}) contents:\n$(cat "${SUPER_LINTER_SUMMARY_OUTPUT_PATH}")" fi diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-footer-failure.md b/test/data/super-linter-summary/markdown/table/expected-summary-footer-failure.md deleted file mode 100644 index 361fd336..00000000 --- a/test/data/super-linter-summary/markdown/table/expected-summary-footer-failure.md +++ /dev/null @@ -1,3 +0,0 @@ - - -Super-linter detected linting errors diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-footer-success.md b/test/data/super-linter-summary/markdown/table/expected-summary-footer-success.md deleted file mode 100644 index 13bfcf83..00000000 --- a/test/data/super-linter-summary/markdown/table/expected-summary-footer-success.md +++ /dev/null @@ -1,3 +0,0 @@ - - -All files and directories linted successfully diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-heading.md b/test/data/super-linter-summary/markdown/table/expected-summary-heading.md deleted file mode 100644 index 0cf1217f..00000000 --- a/test/data/super-linter-summary/markdown/table/expected-summary-heading.md +++ /dev/null @@ -1,4 +0,0 @@ -# Super-linter summary - -| Language | Validation result | -| -----------------------|-------------------| diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-line-failure.md b/test/data/super-linter-summary/markdown/table/expected-summary-line-failure.md deleted file mode 100644 index cd921854..00000000 --- a/test/data/super-linter-summary/markdown/table/expected-summary-line-failure.md +++ /dev/null @@ -1,2 +0,0 @@ - -| Test Language | Fail ❌ | diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-line-success.md b/test/data/super-linter-summary/markdown/table/expected-summary-line-success.md deleted file mode 100644 index fc19a3c7..00000000 --- a/test/data/super-linter-summary/markdown/table/expected-summary-line-success.md +++ /dev/null @@ -1,2 +0,0 @@ - -| Test Language | Pass ✅ | diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-slim.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-slim.md index d70edf99..a2a66501 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-slim.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-slim.md @@ -1,88 +1,90 @@ # Super-linter summary + | Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Fail ❌ | -| BASH | Fail ❌ | -| BASH_EXEC | Fail ❌ | -| CHECKOV | Fail ❌ | -| CLANG_FORMAT | Fail ❌ | -| CLOUDFORMATION | Fail ❌ | -| CLOJURE | Fail ❌ | -| COFFEESCRIPT | Fail ❌ | -| CPP | Fail ❌ | -| CSS | Fail ❌ | -| CSS_PRETTIER | Fail ❌ | -| DART | Fail ❌ | -| DOCKERFILE_HADOLINT | Fail ❌ | -| EDITORCONFIG | Fail ❌ | -| ENV | Fail ❌ | -| GITHUB_ACTIONS | Fail ❌ | -| GITLEAKS | Fail ❌ | -| GHERKIN | Fail ❌ | -| GO | Fail ❌ | -| GO_MODULES | Fail ❌ | -| GO_RELEASER | Fail ❌ | -| GOOGLE_JAVA_FORMAT | Fail ❌ | -| GRAPHQL_PRETTIER | Fail ❌ | -| GROOVY | Fail ❌ | -| HTML | Fail ❌ | -| HTML_PRETTIER | Fail ❌ | -| JAVA | Fail ❌ | -| JAVASCRIPT_ES | Fail ❌ | -| JAVASCRIPT_PRETTIER | Fail ❌ | -| JAVASCRIPT_STANDARD | Fail ❌ | -| JSCPD | Fail ❌ | -| JSON | Fail ❌ | -| JSON_PRETTIER | Fail ❌ | -| JSONC | Fail ❌ | -| JSONC_PRETTIER | Fail ❌ | -| JSX | Fail ❌ | -| JSX_PRETTIER | Fail ❌ | -| KUBERNETES_KUBECONFORM | Fail ❌ | -| KOTLIN | Fail ❌ | -| LATEX | Fail ❌ | -| LUA | Fail ❌ | -| MARKDOWN | Fail ❌ | -| MARKDOWN_PRETTIER | Fail ❌ | -| NATURAL_LANGUAGE | Fail ❌ | -| OPENAPI | Fail ❌ | -| PERL | Fail ❌ | -| PHP_BUILTIN | Fail ❌ | -| PHP_PHPCS | Fail ❌ | -| PHP_PHPSTAN | Fail ❌ | -| PHP_PSALM | Fail ❌ | -| PROTOBUF | Fail ❌ | -| PYTHON_BLACK | Fail ❌ | -| PYTHON_PYLINT | Fail ❌ | -| PYTHON_FLAKE8 | Fail ❌ | -| PYTHON_ISORT | Fail ❌ | -| PYTHON_MYPY | Fail ❌ | -| PYTHON_RUFF | Fail ❌ | -| R | Fail ❌ | -| RAKU | Fail ❌ | -| RENOVATE | Fail ❌ | -| RUBY | Fail ❌ | -| SCALAFMT | Fail ❌ | -| SHELL_SHFMT | Fail ❌ | -| SNAKEMAKE_LINT | Fail ❌ | -| SNAKEMAKE_SNAKEFMT | Fail ❌ | -| STATES | Fail ❌ | -| SQLFLUFF | Fail ❌ | -| TEKTON | Fail ❌ | -| TERRAFORM_FMT | Fail ❌ | -| TERRAFORM_TFLINT | Fail ❌ | -| TERRAFORM_TERRASCAN | Fail ❌ | -| TERRAGRUNT | Fail ❌ | -| TSX | Fail ❌ | -| TYPESCRIPT_ES | Fail ❌ | -| TYPESCRIPT_PRETTIER | Fail ❌ | -| TYPESCRIPT_STANDARD | Fail ❌ | -| VUE_PRETTIER | Fail ❌ | -| XML | Fail ❌ | -| YAML | Fail ❌ | -| YAML_PRETTIER | Fail ❌ | +| ---------------------- | ----------------- | +| ANSIBLE | Fail ❌ | +| BASH | Fail ❌ | +| BASH_EXEC | Fail ❌ | +| CHECKOV | Fail ❌ | +| CLANG_FORMAT | Fail ❌ | +| CLOUDFORMATION | Fail ❌ | +| CLOJURE | Fail ❌ | +| COFFEESCRIPT | Fail ❌ | +| CPP | Fail ❌ | +| CSS | Fail ❌ | +| CSS_PRETTIER | Fail ❌ | +| DART | Fail ❌ | +| DOCKERFILE_HADOLINT | Fail ❌ | +| EDITORCONFIG | Fail ❌ | +| ENV | Fail ❌ | +| GITHUB_ACTIONS | Fail ❌ | +| GITLEAKS | Fail ❌ | +| GHERKIN | Fail ❌ | +| GO | Fail ❌ | +| GO_MODULES | Fail ❌ | +| GO_RELEASER | Fail ❌ | +| GOOGLE_JAVA_FORMAT | Fail ❌ | +| GRAPHQL_PRETTIER | Fail ❌ | +| GROOVY | Fail ❌ | +| HTML | Fail ❌ | +| HTML_PRETTIER | Fail ❌ | +| JAVA | Fail ❌ | +| JAVASCRIPT_ES | Fail ❌ | +| JAVASCRIPT_PRETTIER | Fail ❌ | +| JAVASCRIPT_STANDARD | Fail ❌ | +| JSCPD | Fail ❌ | +| JSON | Fail ❌ | +| JSON_PRETTIER | Fail ❌ | +| JSONC | Fail ❌ | +| JSONC_PRETTIER | Fail ❌ | +| JSX | Fail ❌ | +| JSX_PRETTIER | Fail ❌ | +| KUBERNETES_KUBECONFORM | Fail ❌ | +| KOTLIN | Fail ❌ | +| LATEX | Fail ❌ | +| LUA | Fail ❌ | +| MARKDOWN | Fail ❌ | +| MARKDOWN_PRETTIER | Fail ❌ | +| NATURAL_LANGUAGE | Fail ❌ | +| OPENAPI | Fail ❌ | +| PERL | Fail ❌ | +| PHP_BUILTIN | Fail ❌ | +| PHP_PHPCS | Fail ❌ | +| PHP_PHPSTAN | Fail ❌ | +| PHP_PSALM | Fail ❌ | +| PROTOBUF | Fail ❌ | +| PYTHON_BLACK | Fail ❌ | +| PYTHON_PYLINT | Fail ❌ | +| PYTHON_FLAKE8 | Fail ❌ | +| PYTHON_ISORT | Fail ❌ | +| PYTHON_MYPY | Fail ❌ | +| PYTHON_RUFF | Fail ❌ | +| R | Fail ❌ | +| RAKU | Fail ❌ | +| RENOVATE | Fail ❌ | +| RUBY | Fail ❌ | +| SCALAFMT | Fail ❌ | +| SHELL_SHFMT | Fail ❌ | +| SNAKEMAKE_LINT | Fail ❌ | +| SNAKEMAKE_SNAKEFMT | Fail ❌ | +| STATES | Fail ❌ | +| SQLFLUFF | Fail ❌ | +| TEKTON | Fail ❌ | +| TERRAFORM_FMT | Fail ❌ | +| TERRAFORM_TFLINT | Fail ❌ | +| TERRAFORM_TERRASCAN | Fail ❌ | +| TERRAGRUNT | Fail ❌ | +| TSX | Fail ❌ | +| TYPESCRIPT_ES | Fail ❌ | +| TYPESCRIPT_PRETTIER | Fail ❌ | +| TYPESCRIPT_STANDARD | Fail ❌ | +| VUE_PRETTIER | Fail ❌ | +| XML | Fail ❌ | +| YAML | Fail ❌ | +| YAML_PRETTIER | Fail ❌ | + Super-linter detected linting errors diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-standard.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-standard.md index 887c9d75..30579e2e 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-standard.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-failure-standard.md @@ -1,98 +1,100 @@ # Super-linter summary -| Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Fail ❌ | -| ARM | Fail ❌ | -| BASH | Fail ❌ | -| BASH_EXEC | Fail ❌ | -| CHECKOV | Fail ❌ | -| CLANG_FORMAT | Fail ❌ | -| CLOUDFORMATION | Fail ❌ | -| CLOJURE | Fail ❌ | -| COFFEESCRIPT | Fail ❌ | -| CPP | Fail ❌ | -| CSHARP | Fail ❌ | -| CSS | Fail ❌ | -| CSS_PRETTIER | Fail ❌ | -| DART | Fail ❌ | -| DOCKERFILE_HADOLINT | Fail ❌ | -| DOTNET_SLN_FORMAT_ANALYZERS | Fail ❌ | -| DOTNET_SLN_FORMAT_STYLE | Fail ❌ | -| DOTNET_SLN_FORMAT_WHITESPACE | Fail ❌ | -| EDITORCONFIG | Fail ❌ | -| ENV | Fail ❌ | -| GITHUB_ACTIONS | Fail ❌ | -| GITLEAKS | Fail ❌ | -| GHERKIN | Fail ❌ | -| GO | Fail ❌ | -| GO_MODULES | Fail ❌ | -| GO_RELEASER | Fail ❌ | -| GOOGLE_JAVA_FORMAT | Fail ❌ | -| GRAPHQL_PRETTIER | Fail ❌ | -| GROOVY | Fail ❌ | -| HTML | Fail ❌ | -| HTML_PRETTIER | Fail ❌ | -| JAVA | Fail ❌ | -| JAVASCRIPT_ES | Fail ❌ | -| JAVASCRIPT_PRETTIER | Fail ❌ | -| JAVASCRIPT_STANDARD | Fail ❌ | -| JSCPD | Fail ❌ | -| JSON | Fail ❌ | -| JSON_PRETTIER | Fail ❌ | -| JSONC | Fail ❌ | -| JSONC_PRETTIER | Fail ❌ | -| JSX | Fail ❌ | -| JSX_PRETTIER | Fail ❌ | -| KUBERNETES_KUBECONFORM | Fail ❌ | -| KOTLIN | Fail ❌ | -| LATEX | Fail ❌ | -| LUA | Fail ❌ | -| MARKDOWN | Fail ❌ | -| MARKDOWN_PRETTIER | Fail ❌ | -| NATURAL_LANGUAGE | Fail ❌ | -| OPENAPI | Fail ❌ | -| PERL | Fail ❌ | -| PHP_BUILTIN | Fail ❌ | -| PHP_PHPCS | Fail ❌ | -| PHP_PHPSTAN | Fail ❌ | -| PHP_PSALM | Fail ❌ | -| POWERSHELL | Fail ❌ | -| PROTOBUF | Fail ❌ | -| PYTHON_BLACK | Fail ❌ | -| PYTHON_PYLINT | Fail ❌ | -| PYTHON_FLAKE8 | Fail ❌ | -| PYTHON_ISORT | Fail ❌ | -| PYTHON_MYPY | Fail ❌ | -| PYTHON_RUFF | Fail ❌ | -| R | Fail ❌ | -| RAKU | Fail ❌ | -| RENOVATE | Fail ❌ | -| RUBY | Fail ❌ | -| RUST_2015 | Fail ❌ | -| RUST_2018 | Fail ❌ | -| RUST_2021 | Fail ❌ | -| RUST_CLIPPY | Fail ❌ | -| SCALAFMT | Fail ❌ | -| SHELL_SHFMT | Fail ❌ | -| SNAKEMAKE_LINT | Fail ❌ | -| SNAKEMAKE_SNAKEFMT | Fail ❌ | -| STATES | Fail ❌ | -| SQLFLUFF | Fail ❌ | -| TEKTON | Fail ❌ | -| TERRAFORM_FMT | Fail ❌ | -| TERRAFORM_TFLINT | Fail ❌ | -| TERRAFORM_TERRASCAN | Fail ❌ | -| TERRAGRUNT | Fail ❌ | -| TSX | Fail ❌ | -| TYPESCRIPT_ES | Fail ❌ | -| TYPESCRIPT_PRETTIER | Fail ❌ | -| TYPESCRIPT_STANDARD | Fail ❌ | -| VUE_PRETTIER | Fail ❌ | -| XML | Fail ❌ | -| YAML | Fail ❌ | -| YAML_PRETTIER | Fail ❌ | + +| Language | Validation result | +| ---------------------------- | ----------------- | +| ANSIBLE | Fail ❌ | +| ARM | Fail ❌ | +| BASH | Fail ❌ | +| BASH_EXEC | Fail ❌ | +| CHECKOV | Fail ❌ | +| CLANG_FORMAT | Fail ❌ | +| CLOUDFORMATION | Fail ❌ | +| CLOJURE | Fail ❌ | +| COFFEESCRIPT | Fail ❌ | +| CPP | Fail ❌ | +| CSHARP | Fail ❌ | +| CSS | Fail ❌ | +| CSS_PRETTIER | Fail ❌ | +| DART | Fail ❌ | +| DOCKERFILE_HADOLINT | Fail ❌ | +| DOTNET_SLN_FORMAT_ANALYZERS | Fail ❌ | +| DOTNET_SLN_FORMAT_STYLE | Fail ❌ | +| DOTNET_SLN_FORMAT_WHITESPACE | Fail ❌ | +| EDITORCONFIG | Fail ❌ | +| ENV | Fail ❌ | +| GITHUB_ACTIONS | Fail ❌ | +| GITLEAKS | Fail ❌ | +| GHERKIN | Fail ❌ | +| GO | Fail ❌ | +| GO_MODULES | Fail ❌ | +| GO_RELEASER | Fail ❌ | +| GOOGLE_JAVA_FORMAT | Fail ❌ | +| GRAPHQL_PRETTIER | Fail ❌ | +| GROOVY | Fail ❌ | +| HTML | Fail ❌ | +| HTML_PRETTIER | Fail ❌ | +| JAVA | Fail ❌ | +| JAVASCRIPT_ES | Fail ❌ | +| JAVASCRIPT_PRETTIER | Fail ❌ | +| JAVASCRIPT_STANDARD | Fail ❌ | +| JSCPD | Fail ❌ | +| JSON | Fail ❌ | +| JSON_PRETTIER | Fail ❌ | +| JSONC | Fail ❌ | +| JSONC_PRETTIER | Fail ❌ | +| JSX | Fail ❌ | +| JSX_PRETTIER | Fail ❌ | +| KUBERNETES_KUBECONFORM | Fail ❌ | +| KOTLIN | Fail ❌ | +| LATEX | Fail ❌ | +| LUA | Fail ❌ | +| MARKDOWN | Fail ❌ | +| MARKDOWN_PRETTIER | Fail ❌ | +| NATURAL_LANGUAGE | Fail ❌ | +| OPENAPI | Fail ❌ | +| PERL | Fail ❌ | +| PHP_BUILTIN | Fail ❌ | +| PHP_PHPCS | Fail ❌ | +| PHP_PHPSTAN | Fail ❌ | +| PHP_PSALM | Fail ❌ | +| POWERSHELL | Fail ❌ | +| PROTOBUF | Fail ❌ | +| PYTHON_BLACK | Fail ❌ | +| PYTHON_PYLINT | Fail ❌ | +| PYTHON_FLAKE8 | Fail ❌ | +| PYTHON_ISORT | Fail ❌ | +| PYTHON_MYPY | Fail ❌ | +| PYTHON_RUFF | Fail ❌ | +| R | Fail ❌ | +| RAKU | Fail ❌ | +| RENOVATE | Fail ❌ | +| RUBY | Fail ❌ | +| RUST_2015 | Fail ❌ | +| RUST_2018 | Fail ❌ | +| RUST_2021 | Fail ❌ | +| RUST_CLIPPY | Fail ❌ | +| SCALAFMT | Fail ❌ | +| SHELL_SHFMT | Fail ❌ | +| SNAKEMAKE_LINT | Fail ❌ | +| SNAKEMAKE_SNAKEFMT | Fail ❌ | +| STATES | Fail ❌ | +| SQLFLUFF | Fail ❌ | +| TEKTON | Fail ❌ | +| TERRAFORM_FMT | Fail ❌ | +| TERRAFORM_TFLINT | Fail ❌ | +| TERRAFORM_TERRASCAN | Fail ❌ | +| TERRAGRUNT | Fail ❌ | +| TSX | Fail ❌ | +| TYPESCRIPT_ES | Fail ❌ | +| TYPESCRIPT_PRETTIER | Fail ❌ | +| TYPESCRIPT_STANDARD | Fail ❌ | +| VUE_PRETTIER | Fail ❌ | +| XML | Fail ❌ | +| YAML | Fail ❌ | +| YAML_PRETTIER | Fail ❌ | + Super-linter detected linting errors diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-slim.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-slim.md index bf182907..e36a14ac 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-slim.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-slim.md @@ -1,88 +1,90 @@ # Super-linter summary + | Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Pass ✅ | -| BASH | Pass ✅ | -| BASH_EXEC | Pass ✅ | -| CHECKOV | Pass ✅ | -| CLANG_FORMAT | Pass ✅ | -| CLOUDFORMATION | Pass ✅ | -| CLOJURE | Pass ✅ | -| COFFEESCRIPT | Pass ✅ | -| CPP | Pass ✅ | -| CSS | Pass ✅ | -| CSS_PRETTIER | Pass ✅ | -| DART | Pass ✅ | -| DOCKERFILE_HADOLINT | Pass ✅ | -| EDITORCONFIG | Pass ✅ | -| ENV | Pass ✅ | -| GITHUB_ACTIONS | Pass ✅ | -| GITLEAKS | Pass ✅ | -| GHERKIN | Pass ✅ | -| GO | Pass ✅ | -| GO_MODULES | Pass ✅ | -| GO_RELEASER | Pass ✅ | -| GOOGLE_JAVA_FORMAT | Pass ✅ | -| GRAPHQL_PRETTIER | Pass ✅ | -| GROOVY | Pass ✅ | -| HTML | Pass ✅ | -| HTML_PRETTIER | Pass ✅ | -| JAVA | Pass ✅ | -| JAVASCRIPT_ES | Pass ✅ | -| JAVASCRIPT_PRETTIER | Pass ✅ | -| JAVASCRIPT_STANDARD | Pass ✅ | -| JSCPD | Pass ✅ | -| JSON | Pass ✅ | -| JSON_PRETTIER | Pass ✅ | -| JSONC | Pass ✅ | -| JSONC_PRETTIER | Pass ✅ | -| JSX | Pass ✅ | -| JSX_PRETTIER | Pass ✅ | -| KUBERNETES_KUBECONFORM | Pass ✅ | -| KOTLIN | Pass ✅ | -| LATEX | Pass ✅ | -| LUA | Pass ✅ | -| MARKDOWN | Pass ✅ | -| MARKDOWN_PRETTIER | Pass ✅ | -| NATURAL_LANGUAGE | Pass ✅ | -| OPENAPI | Pass ✅ | -| PERL | Pass ✅ | -| PHP_BUILTIN | Pass ✅ | -| PHP_PHPCS | Pass ✅ | -| PHP_PHPSTAN | Pass ✅ | -| PHP_PSALM | Pass ✅ | -| PROTOBUF | Pass ✅ | -| PYTHON_BLACK | Pass ✅ | -| PYTHON_PYLINT | Pass ✅ | -| PYTHON_FLAKE8 | Pass ✅ | -| PYTHON_ISORT | Pass ✅ | -| PYTHON_MYPY | Pass ✅ | -| PYTHON_RUFF | Pass ✅ | -| R | Pass ✅ | -| RAKU | Pass ✅ | -| RENOVATE | Pass ✅ | -| RUBY | Pass ✅ | -| SCALAFMT | Pass ✅ | -| SHELL_SHFMT | Pass ✅ | -| SNAKEMAKE_LINT | Pass ✅ | -| SNAKEMAKE_SNAKEFMT | Pass ✅ | -| STATES | Pass ✅ | -| SQLFLUFF | Pass ✅ | -| TEKTON | Pass ✅ | -| TERRAFORM_FMT | Pass ✅ | -| TERRAFORM_TFLINT | Pass ✅ | -| TERRAFORM_TERRASCAN | Pass ✅ | -| TERRAGRUNT | Pass ✅ | -| TSX | Pass ✅ | -| TYPESCRIPT_ES | Pass ✅ | -| TYPESCRIPT_PRETTIER | Pass ✅ | -| TYPESCRIPT_STANDARD | Pass ✅ | -| VUE_PRETTIER | Pass ✅ | -| XML | Pass ✅ | -| YAML | Pass ✅ | -| YAML_PRETTIER | Pass ✅ | +| ---------------------- | ----------------- | +| ANSIBLE | Pass ✅ | +| BASH | Pass ✅ | +| BASH_EXEC | Pass ✅ | +| CHECKOV | Pass ✅ | +| CLANG_FORMAT | Pass ✅ | +| CLOUDFORMATION | Pass ✅ | +| CLOJURE | Pass ✅ | +| COFFEESCRIPT | Pass ✅ | +| CPP | Pass ✅ | +| CSS | Pass ✅ | +| CSS_PRETTIER | Pass ✅ | +| DART | Pass ✅ | +| DOCKERFILE_HADOLINT | Pass ✅ | +| EDITORCONFIG | Pass ✅ | +| ENV | Pass ✅ | +| GITHUB_ACTIONS | Pass ✅ | +| GITLEAKS | Pass ✅ | +| GHERKIN | Pass ✅ | +| GO | Pass ✅ | +| GO_MODULES | Pass ✅ | +| GO_RELEASER | Pass ✅ | +| GOOGLE_JAVA_FORMAT | Pass ✅ | +| GRAPHQL_PRETTIER | Pass ✅ | +| GROOVY | Pass ✅ | +| HTML | Pass ✅ | +| HTML_PRETTIER | Pass ✅ | +| JAVA | Pass ✅ | +| JAVASCRIPT_ES | Pass ✅ | +| JAVASCRIPT_PRETTIER | Pass ✅ | +| JAVASCRIPT_STANDARD | Pass ✅ | +| JSCPD | Pass ✅ | +| JSON | Pass ✅ | +| JSON_PRETTIER | Pass ✅ | +| JSONC | Pass ✅ | +| JSONC_PRETTIER | Pass ✅ | +| JSX | Pass ✅ | +| JSX_PRETTIER | Pass ✅ | +| KUBERNETES_KUBECONFORM | Pass ✅ | +| KOTLIN | Pass ✅ | +| LATEX | Pass ✅ | +| LUA | Pass ✅ | +| MARKDOWN | Pass ✅ | +| MARKDOWN_PRETTIER | Pass ✅ | +| NATURAL_LANGUAGE | Pass ✅ | +| OPENAPI | Pass ✅ | +| PERL | Pass ✅ | +| PHP_BUILTIN | Pass ✅ | +| PHP_PHPCS | Pass ✅ | +| PHP_PHPSTAN | Pass ✅ | +| PHP_PSALM | Pass ✅ | +| PROTOBUF | Pass ✅ | +| PYTHON_BLACK | Pass ✅ | +| PYTHON_PYLINT | Pass ✅ | +| PYTHON_FLAKE8 | Pass ✅ | +| PYTHON_ISORT | Pass ✅ | +| PYTHON_MYPY | Pass ✅ | +| PYTHON_RUFF | Pass ✅ | +| R | Pass ✅ | +| RAKU | Pass ✅ | +| RENOVATE | Pass ✅ | +| RUBY | Pass ✅ | +| SCALAFMT | Pass ✅ | +| SHELL_SHFMT | Pass ✅ | +| SNAKEMAKE_LINT | Pass ✅ | +| SNAKEMAKE_SNAKEFMT | Pass ✅ | +| STATES | Pass ✅ | +| SQLFLUFF | Pass ✅ | +| TEKTON | Pass ✅ | +| TERRAFORM_FMT | Pass ✅ | +| TERRAFORM_TFLINT | Pass ✅ | +| TERRAFORM_TERRASCAN | Pass ✅ | +| TERRAGRUNT | Pass ✅ | +| TSX | Pass ✅ | +| TYPESCRIPT_ES | Pass ✅ | +| TYPESCRIPT_PRETTIER | Pass ✅ | +| TYPESCRIPT_STANDARD | Pass ✅ | +| VUE_PRETTIER | Pass ✅ | +| XML | Pass ✅ | +| YAML | Pass ✅ | +| YAML_PRETTIER | Pass ✅ | + All files and directories linted successfully diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-standard.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-standard.md index cacf58fd..a0134357 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-standard.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-expect-success-standard.md @@ -1,98 +1,100 @@ # Super-linter summary -| Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Pass ✅ | -| ARM | Pass ✅ | -| BASH | Pass ✅ | -| BASH_EXEC | Pass ✅ | -| CHECKOV | Pass ✅ | -| CLANG_FORMAT | Pass ✅ | -| CLOUDFORMATION | Pass ✅ | -| CLOJURE | Pass ✅ | -| COFFEESCRIPT | Pass ✅ | -| CPP | Pass ✅ | -| CSHARP | Pass ✅ | -| CSS | Pass ✅ | -| CSS_PRETTIER | Pass ✅ | -| DART | Pass ✅ | -| DOCKERFILE_HADOLINT | Pass ✅ | -| DOTNET_SLN_FORMAT_ANALYZERS | Pass ✅ | -| DOTNET_SLN_FORMAT_STYLE | Pass ✅ | -| DOTNET_SLN_FORMAT_WHITESPACE | Pass ✅ | -| EDITORCONFIG | Pass ✅ | -| ENV | Pass ✅ | -| GITHUB_ACTIONS | Pass ✅ | -| GITLEAKS | Pass ✅ | -| GHERKIN | Pass ✅ | -| GO | Pass ✅ | -| GO_MODULES | Pass ✅ | -| GO_RELEASER | Pass ✅ | -| GOOGLE_JAVA_FORMAT | Pass ✅ | -| GRAPHQL_PRETTIER | Pass ✅ | -| GROOVY | Pass ✅ | -| HTML | Pass ✅ | -| HTML_PRETTIER | Pass ✅ | -| JAVA | Pass ✅ | -| JAVASCRIPT_ES | Pass ✅ | -| JAVASCRIPT_PRETTIER | Pass ✅ | -| JAVASCRIPT_STANDARD | Pass ✅ | -| JSCPD | Pass ✅ | -| JSON | Pass ✅ | -| JSON_PRETTIER | Pass ✅ | -| JSONC | Pass ✅ | -| JSONC_PRETTIER | Pass ✅ | -| JSX | Pass ✅ | -| JSX_PRETTIER | Pass ✅ | -| KUBERNETES_KUBECONFORM | Pass ✅ | -| KOTLIN | Pass ✅ | -| LATEX | Pass ✅ | -| LUA | Pass ✅ | -| MARKDOWN | Pass ✅ | -| MARKDOWN_PRETTIER | Pass ✅ | -| NATURAL_LANGUAGE | Pass ✅ | -| OPENAPI | Pass ✅ | -| PERL | Pass ✅ | -| PHP_BUILTIN | Pass ✅ | -| PHP_PHPCS | Pass ✅ | -| PHP_PHPSTAN | Pass ✅ | -| PHP_PSALM | Pass ✅ | -| POWERSHELL | Pass ✅ | -| PROTOBUF | Pass ✅ | -| PYTHON_BLACK | Pass ✅ | -| PYTHON_PYLINT | Pass ✅ | -| PYTHON_FLAKE8 | Pass ✅ | -| PYTHON_ISORT | Pass ✅ | -| PYTHON_MYPY | Pass ✅ | -| PYTHON_RUFF | Pass ✅ | -| R | Pass ✅ | -| RAKU | Pass ✅ | -| RENOVATE | Pass ✅ | -| RUBY | Pass ✅ | -| RUST_2015 | Pass ✅ | -| RUST_2018 | Pass ✅ | -| RUST_2021 | Pass ✅ | -| RUST_CLIPPY | Pass ✅ | -| SCALAFMT | Pass ✅ | -| SHELL_SHFMT | Pass ✅ | -| SNAKEMAKE_LINT | Pass ✅ | -| SNAKEMAKE_SNAKEFMT | Pass ✅ | -| STATES | Pass ✅ | -| SQLFLUFF | Pass ✅ | -| TEKTON | Pass ✅ | -| TERRAFORM_FMT | Pass ✅ | -| TERRAFORM_TFLINT | Pass ✅ | -| TERRAFORM_TERRASCAN | Pass ✅ | -| TERRAGRUNT | Pass ✅ | -| TSX | Pass ✅ | -| TYPESCRIPT_ES | Pass ✅ | -| TYPESCRIPT_PRETTIER | Pass ✅ | -| TYPESCRIPT_STANDARD | Pass ✅ | -| VUE_PRETTIER | Pass ✅ | -| XML | Pass ✅ | -| YAML | Pass ✅ | -| YAML_PRETTIER | Pass ✅ | + +| Language | Validation result | +| ---------------------------- | ----------------- | +| ANSIBLE | Pass ✅ | +| ARM | Pass ✅ | +| BASH | Pass ✅ | +| BASH_EXEC | Pass ✅ | +| CHECKOV | Pass ✅ | +| CLANG_FORMAT | Pass ✅ | +| CLOUDFORMATION | Pass ✅ | +| CLOJURE | Pass ✅ | +| COFFEESCRIPT | Pass ✅ | +| CPP | Pass ✅ | +| CSHARP | Pass ✅ | +| CSS | Pass ✅ | +| CSS_PRETTIER | Pass ✅ | +| DART | Pass ✅ | +| DOCKERFILE_HADOLINT | Pass ✅ | +| DOTNET_SLN_FORMAT_ANALYZERS | Pass ✅ | +| DOTNET_SLN_FORMAT_STYLE | Pass ✅ | +| DOTNET_SLN_FORMAT_WHITESPACE | Pass ✅ | +| EDITORCONFIG | Pass ✅ | +| ENV | Pass ✅ | +| GITHUB_ACTIONS | Pass ✅ | +| GITLEAKS | Pass ✅ | +| GHERKIN | Pass ✅ | +| GO | Pass ✅ | +| GO_MODULES | Pass ✅ | +| GO_RELEASER | Pass ✅ | +| GOOGLE_JAVA_FORMAT | Pass ✅ | +| GRAPHQL_PRETTIER | Pass ✅ | +| GROOVY | Pass ✅ | +| HTML | Pass ✅ | +| HTML_PRETTIER | Pass ✅ | +| JAVA | Pass ✅ | +| JAVASCRIPT_ES | Pass ✅ | +| JAVASCRIPT_PRETTIER | Pass ✅ | +| JAVASCRIPT_STANDARD | Pass ✅ | +| JSCPD | Pass ✅ | +| JSON | Pass ✅ | +| JSON_PRETTIER | Pass ✅ | +| JSONC | Pass ✅ | +| JSONC_PRETTIER | Pass ✅ | +| JSX | Pass ✅ | +| JSX_PRETTIER | Pass ✅ | +| KUBERNETES_KUBECONFORM | Pass ✅ | +| KOTLIN | Pass ✅ | +| LATEX | Pass ✅ | +| LUA | Pass ✅ | +| MARKDOWN | Pass ✅ | +| MARKDOWN_PRETTIER | Pass ✅ | +| NATURAL_LANGUAGE | Pass ✅ | +| OPENAPI | Pass ✅ | +| PERL | Pass ✅ | +| PHP_BUILTIN | Pass ✅ | +| PHP_PHPCS | Pass ✅ | +| PHP_PHPSTAN | Pass ✅ | +| PHP_PSALM | Pass ✅ | +| POWERSHELL | Pass ✅ | +| PROTOBUF | Pass ✅ | +| PYTHON_BLACK | Pass ✅ | +| PYTHON_PYLINT | Pass ✅ | +| PYTHON_FLAKE8 | Pass ✅ | +| PYTHON_ISORT | Pass ✅ | +| PYTHON_MYPY | Pass ✅ | +| PYTHON_RUFF | Pass ✅ | +| R | Pass ✅ | +| RAKU | Pass ✅ | +| RENOVATE | Pass ✅ | +| RUBY | Pass ✅ | +| RUST_2015 | Pass ✅ | +| RUST_2018 | Pass ✅ | +| RUST_2021 | Pass ✅ | +| RUST_CLIPPY | Pass ✅ | +| SCALAFMT | Pass ✅ | +| SHELL_SHFMT | Pass ✅ | +| SNAKEMAKE_LINT | Pass ✅ | +| SNAKEMAKE_SNAKEFMT | Pass ✅ | +| STATES | Pass ✅ | +| SQLFLUFF | Pass ✅ | +| TEKTON | Pass ✅ | +| TERRAFORM_FMT | Pass ✅ | +| TERRAFORM_TFLINT | Pass ✅ | +| TERRAFORM_TERRASCAN | Pass ✅ | +| TERRAGRUNT | Pass ✅ | +| TSX | Pass ✅ | +| TYPESCRIPT_ES | Pass ✅ | +| TYPESCRIPT_PRETTIER | Pass ✅ | +| TYPESCRIPT_STANDARD | Pass ✅ | +| VUE_PRETTIER | Pass ✅ | +| XML | Pass ✅ | +| YAML | Pass ✅ | +| YAML_PRETTIER | Pass ✅ | + All files and directories linted successfully diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-slim.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-slim.md index 81f42f5f..6cefc3d6 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-slim.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-slim.md @@ -1,47 +1,49 @@ # Super-linter summary -| Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Pass ✅ | -| CLANG_FORMAT | Pass ✅ | -| CSS | Pass ✅ | -| CSS_PRETTIER | Pass ✅ | -| ENV | Pass ✅ | -| GO | Pass ✅ | -| GO_MODULES | Pass ✅ | -| GOOGLE_JAVA_FORMAT | Pass ✅ | -| GRAPHQL_PRETTIER | Pass ✅ | -| GROOVY | Fail ❌ | -| HTML_PRETTIER | Pass ✅ | -| JAVASCRIPT_ES | Pass ✅ | -| JAVASCRIPT_PRETTIER | Pass ✅ | -| JAVASCRIPT_STANDARD | Pass ✅ | -| JSON | Fail ❌ | -| JSON_PRETTIER | Pass ✅ | -| JSONC | Pass ✅ | -| JSONC_PRETTIER | Pass ✅ | -| JSX | Fail ❌ | -| JSX_PRETTIER | Pass ✅ | -| MARKDOWN | Pass ✅ | -| MARKDOWN_PRETTIER | Pass ✅ | -| NATURAL_LANGUAGE | Pass ✅ | -| PROTOBUF | Fail ❌ | -| PYTHON_BLACK | Pass ✅ | -| PYTHON_ISORT | Pass ✅ | -| PYTHON_RUFF | Pass ✅ | -| RUBY | Fail ❌ | -| SCALAFMT | Pass ✅ | -| SHELL_SHFMT | Pass ✅ | -| SNAKEMAKE_SNAKEFMT | Pass ✅ | -| SQLFLUFF | Pass ✅ | -| TERRAFORM_FMT | Pass ✅ | -| TSX | Fail ❌ | -| TYPESCRIPT_ES | Pass ✅ | -| TYPESCRIPT_PRETTIER | Pass ✅ | -| TYPESCRIPT_STANDARD | Pass ✅ | -| VUE_PRETTIER | Pass ✅ | -| YAML_PRETTIER | Pass ✅ | + +| Language | Validation result | +| ------------------- | ----------------- | +| ANSIBLE | Pass ✅ | +| CLANG_FORMAT | Pass ✅ | +| CSS | Pass ✅ | +| CSS_PRETTIER | Pass ✅ | +| ENV | Pass ✅ | +| GO | Pass ✅ | +| GO_MODULES | Pass ✅ | +| GOOGLE_JAVA_FORMAT | Pass ✅ | +| GRAPHQL_PRETTIER | Pass ✅ | +| GROOVY | Fail ❌ | +| HTML_PRETTIER | Pass ✅ | +| JAVASCRIPT_ES | Pass ✅ | +| JAVASCRIPT_PRETTIER | Pass ✅ | +| JAVASCRIPT_STANDARD | Pass ✅ | +| JSON | Fail ❌ | +| JSON_PRETTIER | Pass ✅ | +| JSONC | Pass ✅ | +| JSONC_PRETTIER | Pass ✅ | +| JSX | Fail ❌ | +| JSX_PRETTIER | Pass ✅ | +| MARKDOWN | Pass ✅ | +| MARKDOWN_PRETTIER | Pass ✅ | +| NATURAL_LANGUAGE | Pass ✅ | +| PROTOBUF | Fail ❌ | +| PYTHON_BLACK | Pass ✅ | +| PYTHON_ISORT | Pass ✅ | +| PYTHON_RUFF | Pass ✅ | +| RUBY | Fail ❌ | +| SCALAFMT | Pass ✅ | +| SHELL_SHFMT | Pass ✅ | +| SNAKEMAKE_SNAKEFMT | Pass ✅ | +| SQLFLUFF | Pass ✅ | +| TERRAFORM_FMT | Pass ✅ | +| TSX | Fail ❌ | +| TYPESCRIPT_ES | Pass ✅ | +| TYPESCRIPT_PRETTIER | Pass ✅ | +| TYPESCRIPT_STANDARD | Pass ✅ | +| VUE_PRETTIER | Pass ✅ | +| YAML_PRETTIER | Pass ✅ | + Super-linter detected linting errors diff --git a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-standard.md b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-standard.md index cc2f4c34..7a98737b 100644 --- a/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-standard.md +++ b/test/data/super-linter-summary/markdown/table/expected-summary-test-linters-fix-mode-standard.md @@ -1,56 +1,58 @@ # Super-linter summary -| Language | Validation result | -| -----------------------|-------------------| -| ANSIBLE | Pass ✅ | -| CLANG_FORMAT | Pass ✅ | -| CSHARP | Pass ✅ | -| CSS | Pass ✅ | -| CSS_PRETTIER | Pass ✅ | -| DOTNET_SLN_FORMAT_ANALYZERS | Pass ✅ | -| DOTNET_SLN_FORMAT_STYLE | Pass ✅ | -| DOTNET_SLN_FORMAT_WHITESPACE | Pass ✅ | -| ENV | Pass ✅ | -| GO | Pass ✅ | -| GO_MODULES | Pass ✅ | -| GOOGLE_JAVA_FORMAT | Pass ✅ | -| GRAPHQL_PRETTIER | Pass ✅ | -| GROOVY | Fail ❌ | -| HTML_PRETTIER | Pass ✅ | -| JAVASCRIPT_ES | Pass ✅ | -| JAVASCRIPT_PRETTIER | Pass ✅ | -| JAVASCRIPT_STANDARD | Pass ✅ | -| JSON | Fail ❌ | -| JSON_PRETTIER | Pass ✅ | -| JSONC | Pass ✅ | -| JSONC_PRETTIER | Pass ✅ | -| JSX | Fail ❌ | -| JSX_PRETTIER | Pass ✅ | -| MARKDOWN | Pass ✅ | -| MARKDOWN_PRETTIER | Pass ✅ | -| NATURAL_LANGUAGE | Pass ✅ | -| POWERSHELL | Fail ❌ | -| PROTOBUF | Fail ❌ | -| PYTHON_BLACK | Pass ✅ | -| PYTHON_ISORT | Pass ✅ | -| PYTHON_RUFF | Pass ✅ | -| RUBY | Fail ❌ | -| RUST_2015 | Pass ✅ | -| RUST_2018 | Pass ✅ | -| RUST_2021 | Pass ✅ | -| RUST_CLIPPY | Pass ✅ | -| SCALAFMT | Pass ✅ | -| SHELL_SHFMT | Pass ✅ | -| SNAKEMAKE_SNAKEFMT | Pass ✅ | -| SQLFLUFF | Pass ✅ | -| TERRAFORM_FMT | Pass ✅ | -| TSX | Fail ❌ | -| TYPESCRIPT_ES | Pass ✅ | -| TYPESCRIPT_PRETTIER | Pass ✅ | -| TYPESCRIPT_STANDARD | Pass ✅ | -| VUE_PRETTIER | Pass ✅ | -| YAML_PRETTIER | Pass ✅ | + +| Language | Validation result | +| ---------------------------- | ----------------- | +| ANSIBLE | Pass ✅ | +| CLANG_FORMAT | Pass ✅ | +| CSHARP | Pass ✅ | +| CSS | Pass ✅ | +| CSS_PRETTIER | Pass ✅ | +| DOTNET_SLN_FORMAT_ANALYZERS | Pass ✅ | +| DOTNET_SLN_FORMAT_STYLE | Pass ✅ | +| DOTNET_SLN_FORMAT_WHITESPACE | Pass ✅ | +| ENV | Pass ✅ | +| GO | Pass ✅ | +| GO_MODULES | Pass ✅ | +| GOOGLE_JAVA_FORMAT | Pass ✅ | +| GRAPHQL_PRETTIER | Pass ✅ | +| GROOVY | Fail ❌ | +| HTML_PRETTIER | Pass ✅ | +| JAVASCRIPT_ES | Pass ✅ | +| JAVASCRIPT_PRETTIER | Pass ✅ | +| JAVASCRIPT_STANDARD | Pass ✅ | +| JSON | Fail ❌ | +| JSON_PRETTIER | Pass ✅ | +| JSONC | Pass ✅ | +| JSONC_PRETTIER | Pass ✅ | +| JSX | Fail ❌ | +| JSX_PRETTIER | Pass ✅ | +| MARKDOWN | Pass ✅ | +| MARKDOWN_PRETTIER | Pass ✅ | +| NATURAL_LANGUAGE | Pass ✅ | +| POWERSHELL | Fail ❌ | +| PROTOBUF | Fail ❌ | +| PYTHON_BLACK | Pass ✅ | +| PYTHON_ISORT | Pass ✅ | +| PYTHON_RUFF | Pass ✅ | +| RUBY | Fail ❌ | +| RUST_2015 | Pass ✅ | +| RUST_2018 | Pass ✅ | +| RUST_2021 | Pass ✅ | +| RUST_CLIPPY | Pass ✅ | +| SCALAFMT | Pass ✅ | +| SHELL_SHFMT | Pass ✅ | +| SNAKEMAKE_SNAKEFMT | Pass ✅ | +| SQLFLUFF | Pass ✅ | +| TERRAFORM_FMT | Pass ✅ | +| TSX | Fail ❌ | +| TYPESCRIPT_ES | Pass ✅ | +| TYPESCRIPT_PRETTIER | Pass ✅ | +| TYPESCRIPT_STANDARD | Pass ✅ | +| VUE_PRETTIER | Pass ✅ | +| YAML_PRETTIER | Pass ✅ | + Super-linter detected linting errors diff --git a/test/lib/outputTest.sh b/test/lib/outputTest.sh index f6f725d3..efb6a50e 100755 --- a/test/lib/outputTest.sh +++ b/test/lib/outputTest.sh @@ -10,6 +10,9 @@ LOG_LEVEL="DEBUG" # shellcheck source=/dev/null source "lib/functions/log.sh" +# shellcheck source=/dev/null +source "test/testUtils.sh" + # shellcheck source=/dev/null source "lib/functions/output.sh" @@ -24,14 +27,14 @@ function CleanupWorkspace() { rm -rf "${TEMP_WORKSPACE}" } -function CheckIfFileDiff() { - local INPUT_FILE="${1}" - local EXPECTED_FILE="${2}" - # Remove eventual HTML comments from the expected file because we use them to disable certain linter rules - if ! diff "${INPUT_FILE}" <(grep -vE '^\s*