Skip to content

Validate pattern schemas and diagnose configuration typos - #16

Merged
script3r merged 1 commit into
mainfrom
codex/validate-pattern-config
Sep 5, 2026
Merged

Validate pattern schemas and diagnose configuration typos#16
script3r merged 1 commit into
mainfrom
codex/validate-pattern-config

Conversation

@script3r

@script3r script3r commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Misspelled language names and unknown TOML fields were silently ignored, allowing invalid custom configuration to produce a successful empty inventory. Schema versions were parsed but never checked, and regex failures did not identify their owning rule.

Reject unknown fields at every schema level, unsupported schema versions, empty names/language lists, and unrecognized language names. Regex errors identify the library, algorithm, and parameter. Validate reserved Kotlin/Erlang definitions while preserving their existing inactive status; disabled Cargo languages remain valid configuration.

Document the accepted schema and current limitations. Existing duplicate algorithm definitions and parameter regexes without captures remain compatible; tightening those requires separate catalog evidence and review.

Validation: seven configuration regression tests, complete all-feature and minimal-feature tests, formatting, and all-target Clippy with warnings denied in both configurations. The bundled catalog and all ground-truth fixtures pass unchanged.

Part 3 of the review series; independently based on main. Related: #14 and #15.

@script3r
script3r merged commit 7f911df into main Sep 5, 2026
1 check passed
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