Repository navigation
feat(pr-checks): lint-exceptions shows every exception a pull request adds and gates it on the owner's approval - #29
Draft
PiquelChips wants to merge 2 commits into
Conversation
… adds and gates it on the owner's approval lint-exceptions (C11) lists added #[expect] attributes, raised budget.toml ceilings and new or reworded standard.toml deviations in the job summary, and fails until an approver approves the latest commit or the pull request carries the approved-exception label. enforce-lint-exceptions: false only reports them.
standard.toml's deviations may now be scoped with paths and crates: a scope that gains an entry, or is dropped for everywhere, loosens the rule like a new reason does, while a narrower scope passes.
PiquelChips
force-pushed
the
feat/pr-check-new-dependency
branch
from
November 22, 2026 22:13
164cb39 to
58db183
Compare
PiquelChips
force-pushed
the
feat/pr-check-lint-exceptions
branch
from
November 22, 2026 22:13
8e564d3 to
1491337
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 and why
An exception to a rule is fine when someone has decided it is, but today an
#[expect], a raisedbudget.tomlceiling or a newstandard.tomldeviation can merge without the owner ever seeing it. This addslint-exceptions(C11), the last of the pull request checks of #21. The point isn't to forbid exceptions. It's that a loosened rule is always seen.What it lists:
.rsfile holding#[expect(,#![expect(or acfg_attr(…, expect(…)), at its line in the new file;budget.tomlceiling raised or added;standard.tomldeviation added, reworded or widened. A deviation can be scoped withpathsandcrates: a scope that gains a path or crate, or is dropped so the deviation applies everywhere, widens it. A narrower scope passes. The string, inline-table and[deviations.rule]forms all read the same.Lowered ceilings, removed attributes and deleted files don't count. A
.rsfile too large for GitHub to diff is flagged for a manual look.Where: in the job summary, every time, as annotations on the lines.
The gate: the job fails until one of these:
approversinput approves the latest commit. A later "changes requested" or a dismissal withdraws the approval, and an approval of an older commit doesn't count;approved-exceptionlabel.Once allowed, findings stay in the summary as notices. The caller workflow already re-runs on reviews and labels.
Report-only:
enforce-lint-exceptions: falselists the exceptions without failing, so a repository can adopt the check before its backlog is approved.Fix: each finding asks for the approval or the label, and says to write in the exception's reason why the rule is wrong there.
The crate's README lists the check and the two inputs. This repository's
pr.ymlsets the owner as approver and enforces the check.Testing
just check-changed origin/feat/pr-check-new-dependencypasses.PRrun, which adds no exception.pr-body: issue links quoted in code were read as links. It's fixed there, and the stack is rebased on the fix.Checklist
approvers, and may start withenforce-lint-exceptions: false.)just check-changedpasses.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)