feat(guideline): Replace lintable/informational flags with enforcement enum#76
Draft
andmatei wants to merge 2 commits into
Draft
feat(guideline): Replace lintable/informational flags with enforcement enum#76andmatei wants to merge 2 commits into
andmatei wants to merge 2 commits into
Conversation
…ls group - Remove the Informational/Enforced badge from the guideline header; the `informational` field stays in the metadata. - Add <Guideline.Details>: a collapsible "Details" accordion (overridable title) that authors wrap a guideline's examples + workflow in, so the rule's prose stays visible and the supporting detail collapses below it. - <Guideline> renders its children verbatim — no child introspection. - Show workflows site-wide (showWorkflows: true) now that they live inside the Details accordion. - Restructure the dev fixtures page; wrap IPA-100's example in Details. - Update the VS Code authoring snippets to wrap examples/workflow in <Guideline.Details> (and add a guideline-details snippet); use the 3-digit ID placeholder.
…t enum Introduces an explicit `enforcement` field replacing the two boolean props: - "rule" — Spectral rule exists; renders "Lint rule ↗" link - "automatable" — automatable check, no rule yet; renders "Lint rule pending" badge - "review" — needs agentic review (default) - "advisory" — not enforced, context only; renders "Advisory" badge Removes the implicit "unlintable" state — every guideline's enforcement mode is now self-describing with a single field.
927e745 to
2b598b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the two boolean props (
lintable,informational) with a single explicitenforcementenum field.Enforcement values
"rule""automatable""review""advisory"