Repository navigation
id-render: author tooling — linter + multi-target preview (#7920) - #12945
Merged
Merged
Conversation
The one toolchain surface #5855 §4 settles, in a new tooling module of id-render, consuming exactly the vocabularies and tables the pipeline consumes: - lint: unknown-element and unknown-assertion errors (checked against the #5849/#5850 vocabulary data stage 2 uses), unmapped-assertion warnings read from each target's own lowering coverage report, and the raw-CSS reported-override listing on web (#5854 §6b). - preview: the pipeline run in report mode — every planned target's artefact presented with the unified coverage report; a target whose composition conflicts is a conflict outcome, never a failed preview. standard_plans() is the one-command default set (web, mac, windows, gnome, gui). The §4 conditional-block rule does not ship: the #5849 v1 vocabulary has no conditional element kind, so the rule cannot be expressed over the pipeline's inputs — §4's own gate. The module documentation states the boundary. Tests: one per shipped lint rule plus preview coverage and conflict behaviour; cargo test -p id-render 75 passed / 0 failed, fmt clean, clippy clean for the new code apart from the crate-wide doc-paragraph pedantic style.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Implements the landable slice of #7920 (author tooling, from the #5855 decision record §4), unblocked today by #7918 closing as completed with the compiler core on main.
What lands
A new
toolingmodule inid-render— one toolchain surface over exactly the vocabularies and tables the pipeline consumes:lint(source, plans)— diagnostics with severity, rule name, location, target, and element path:unknown-element(error) — kind outside the id: design: semantic markup vocabulary v1 (from #5679) #5849 vocabulary;unknown-assertion(error) —assertslot rejected by the id: design: style assertion vocabulary (from #5679) #5850 vocabulary, checked with the sameparse_assert_slotstage 2 uses;unmapped-assertion(warning, per target) — read from each target's own lowering coverage report (assertions that default there, id: design: rendering pipeline & conformance suite (from #5679) #5855 §3.3);raw-css-override(warning, web) — the id: design: per-target customisation system (from #5679) #5854 §6b reported-override listing, carried through the web lowering report.preview(source, plans)— the pipeline run in report mode: every target's artefact presented with a unified coverage report (mapped / defaulted / element defaults / reported overrides). A conflicting target is aConflictoutcome, never a failed preview.standard_plans()is the one-command default set: web, mac, windows, gnome, gui.Stated boundary
The §4 error rule "essential content inside a conditional block" does not ship: the #5849 v1 vocabulary has no conditional element kind, so a conditional block has no source representation — and §4 itself says a lint rule that cannot be expressed over the pipeline's inputs does not ship. It lands with the vocabulary addition (the same boundary stage 3 records in
compose). The §4 duplication rule likewise needs per-target source folders, which this single-source surface does not take. Both are recorded on #7920 as the remaining slices; the issue stays open for them.Verification
cargo test -p id-render(nix develop, laptop worktree off origin/main): 75 passed / 0 failed, including 7 new tooling tests — one per shipped lint rule, the clean-document control, preview coverage across all five targets, and preview conflict behaviour. Failing-first was inherent: the module and its tests are new.cargo fmt -p id-render -- --checkclean; clippy clean for the new code apart from the crate-widetoo_long_first_doc_paragraphpedantic style the existing modules also carry.Refs #7920.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.