From 68d04b367001337fb3bb0b568b5ece46ab7682a7 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sun, 26 Mar 2023 12:46:52 +0200 Subject: [PATCH] Display only errors in markdown-link-check logs for better readability (#2479) * Display only errors in markdown-link-check logs for better readability * [MegaLinter] Apply linters fixes --------- Co-authored-by: nvuillam --- CHANGELOG.md | 1 + megalinter/descriptors/markdown.megalinter-descriptor.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 162781fee8f..f3d95a7a8cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Avoid cspell error on readonly workspaces - Allow bandit to use pyproject.toml - Bring back stylelint-config-sass-guidelines package + - Display only errors in markdown-link-check logs for better readability - Core - Run CI linter jobs only on Pull requests to avoid doubling jobs diff --git a/megalinter/descriptors/markdown.megalinter-descriptor.yml b/megalinter/descriptors/markdown.megalinter-descriptor.yml index afc6846250f..42d8ab18f4d 100644 --- a/megalinter/descriptors/markdown.megalinter-descriptor.yml +++ b/megalinter/descriptors/markdown.megalinter-descriptor.yml @@ -107,6 +107,8 @@ linters: linter_megalinter_ref_url: https://github.com/tcort/markdown-link-check#run-in-other-tools cli_lint_mode: list_of_files config_file_name: .markdown-link-check.json + cli_lint_extra_args: + - --quiet cli_lint_errors_count: regex_sum cli_lint_errors_regex: "ERROR: ([0-9]+) dead links found" examples: