489. The rule-1 lint, past the kernel
Refused by milestone 83 (design/roadmap/0083-rule-1-lint.md), which records it in its Follow-on. Milestone 448 (a refusal gets a number) gives a refusal this form.
The refusal, in its own words
From '83. A mechanical rule-1 lint', under ## Follow-on:
Extending the check past the kernel was left out on purpose. Crates like
user_rtlegitimately holdasm!in per-ISA modules, so the rule there would be "asm lives in the ISA-suffixed module", which is a different check with its own false-positive surface, andscript/linthas already had checks deleted for exactly that. Whether it is worth writing is a question for after this one has run for a while.-- design/roadmap/0083-rule-1-lint.md
Why it is here rather than only there
Rule 1 says architecture-specific code lives under kernel/src/arch/, and the lint checks it there.
Outside the kernel the rule is different: crates like user_rt legitimately hold asm! in per-ISA
modules, so the check would have to be "assembly lives in the ISA-suffixed module", which is a
different rule with its own false-positive surface.
Revisit
- Condition. Stated in the refusal: "Whether it is worth writing is a question for after this
one has run for a while." The evidence would be the kernel check's own false-positive record, and
script/linthas deleted three checks for exactly the surface the wider rule would have.
Index row
A lint deliberately scoped to where the rule it enforces is the rule, with the wider version left until the narrow one has a track record. The condition is time plus evidence, which is the weakest kind of trigger and is at least written down.