Skip to content

Support per-check overrides for every global TOC option - #21

Merged
dblock merged 1 commit into
masterfrom
refactor/per-check-options
Oct 20, 2026
Merged

dblock merged 1 commit into
masterfrom
refactor/per-check-options

Conversation

@dblock

@dblock dblock commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Keep global plugin settings and add matching keyword options to check!, check, and is_toc_correct?. Every declared option automatically participates in global accessors and per-check merging. Validate both paths consistently and capture an immutable snapshot for parsing, extraction, anchor generation, and reporting, without mutating shared defaults.

Add options to toc_changes? as well. Check every requested file rather than stopping after the first failure.

Consolidate README settings into an Options section with a subsection for each option and examples of global defaults with per-check overrides. Update agent guidance so future settings follow the same mechanism.

AI-authored on behalf of @dblock.

Derive plugin accessors and keyword validation from the same option definitions. Snapshot effective configuration for parsing, anchor generation, and reports without mutating defaults. Document each option and check every requested file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the refactor/per-check-options branch from 004101c to 2cd8526 Compare October 20, 2026 15:22
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock merged commit 7668ae1 into master Oct 20, 2026
7 checks passed
@dblock
dblock deleted the refactor/per-check-options branch October 20, 2026 16:12
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