Merge pull request #19264 from Homebrew/lint-frontmatter-presence
Enforce that all docs have `last_review_date` frontmatter
This commit is contained in:
		
						commit
						a0be99a710
					
				@ -12,6 +12,8 @@ end
 | 
			
		||||
desc "Run Markdownlint to validate the Markdown style."
 | 
			
		||||
task :lint do
 | 
			
		||||
  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
 | 
			
		||||
 | 
			
		||||
desc "Run HTMLProofer to validate the HTML output."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user