Ignore code examples in SEO leak checks#340
Conversation
Code Review — PR #340: Ignore code examples in SEO leak checksOverviewThis PR fixes a false-positive in the The change is minimal, targeted, and correct. The approach is consistent with the existing code style. Code Quality
Selector list (
Performance ConsiderationWhen This is acceptable for the common case, but worth noting: if Test CoveragePositive: The new test covers the stated regression scenario well — front matter inside Suggestions:
// Example: confirm the flag still fires when front matter leaks into prose
// (not inside any code element)
File.WriteAllText(Path.Combine(root, "leaked.html"), """
<html><body><main><article>
title: "My Post"
description: "Some desc"
date: "2026-04-29"
draft: true
---
</article></main></body></html>
""");
Assert.Contains(result.Issues, i => i.Hint == "content-frontmatter-leak");Summary
The change is ready to merge as-is. The suggested tests are improvements, not blockers. |
Summary
Validation