This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c5310749 NUTCH-3237 Yetus markdownlint reports CLI usage for ignored 
CHANGES.md on master (#993)
7c5310749 is described below

commit 7c5310749b36b19545bb445ae386b529b59dda9f
Author: Lewis John McGibbney <[email protected]>
AuthorDate: Mon Nov 9 15:55:55 2026 -0800

    NUTCH-3237 Yetus markdownlint reports CLI usage for ignored CHANGES.md on 
master (#993)
---
 .markdownlintignore   |  4 ++++
 .yetus/personality.sh | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/.markdownlintignore b/.markdownlintignore
index 9fc9e21de..f3efc5eed 100644
--- a/.markdownlintignore
+++ b/.markdownlintignore
@@ -1 +1,5 @@
+# CHANGES.md is also skipped in .yetus/personality.sh (NUTCH-3237).
+# markdownlint-cli 0.44 prints its usage text when every argument is
+# ignored, and Yetus counts those lines as findings. Do not rely on
+# this ignore alone.
 CHANGES.md
diff --git a/.yetus/personality.sh b/.yetus/personality.sh
index cdf775661..52984ffd0 100644
--- a/.yetus/personality.sh
+++ b/.yetus/personality.sh
@@ -38,3 +38,23 @@ function docker_do_env_adds
     fi
   done
 }
+
+# markdownlint-cli 0.44.0 (ghcr.io/apache/yetus:0.15.1) calls program.help()
+# when every path is excluded by .markdownlintignore. Yetus counts that usage
+# text as findings on a full master scan (NUTCH-3237). Skip CHANGES.md here so
+# the CLI is only invoked on files it will lint. Other plugins still see it.
+## @audience private
+## @stability stable
+function markdownlint_filefilter
+{
+  declare filename=$1
+
+  if [[ "${filename}" == "CHANGES.md" ]]; then
+    return
+  fi
+
+  if [[ ${filename} =~ \.md$ ]]; then
+    add_test markdownlint
+    yetus_add_array_element MARKDOWNLINT_CHECKFILES "${filename}"
+  fi
+}

Reply via email to