Merge pull request #19264 from Homebrew/lint-frontmatter-presence

Enforce that all docs have `last_review_date` frontmatter
This commit is contained in:
Issy Long 2025-02-08 08:30:51 +00:00 committed by GitHub
commit a0be99a710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,8 @@ end
desc "Run Markdownlint to validate the Markdown style." desc "Run Markdownlint to validate the Markdown style."
task :lint do task :lint do
sh "mdl $(git ls-files '*.md' | grep -v 'Manpage.md')" sh "mdl $(git ls-files '*.md' | grep -v 'Manpage.md')"
sh "grep -L '^last_review_date:' $(git ls-files '*.md' | grep -v 'Manpage.md') | " \
"xargs -I {} echo 'File {} is missing last_review_date frontmatter.'"
end end
desc "Run HTMLProofer to validate the HTML output." desc "Run HTMLProofer to validate the HTML output."