Skip to content

Simplify the front matter readers' loops and split their longest methods - #197

Merged
jeff377 merged 1 commit into
mainfrom
claude/front-matter-sonar
Dec 4, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/front-matter-sonar

Conversation

@jeff377

@jeff377 jeff377 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #196, which merged before this commit was pushed to its branch.

Clears the SonarCloud findings the front matter readers introduced:

  • S127: the for loops in FrontMatterText and TomlFrontMatterReader that moved their counter inside the body are now while loops.
  • S3776: the long methods are split.
    • FrontMatterText.FlowEnd and SplitFlow share IsQuoteStart, IsCommentStart and Depth.
    • In TomlFrontMatterReader, Value now calls QuotedString and Flow.
    • In YamlFrontMatterReader, BlockScalar now calls IndentedLines and Fold, and Scalar now calls QuotedScalar and Unquote.

No behavior change. The front matter tests and the full suite pass locally.

@jeff377
jeff377 enabled auto-merge (squash) December 4, 2026 16:46
@jeff377
jeff377 merged commit 56d6fa7 into main Dec 4, 2026
6 checks passed
@jeff377
jeff377 deleted the claude/front-matter-sonar branch December 4, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant