A Stated Rule Needs Annotated Exceptions

A design rule with legitimate exceptions survives only if every exception carries its reason at the call site and the rule itself is greppable — otherwise nothing distinguishes an exception from a violation and the rule silently rots. Covers where the rule statement goes, where the reasons go, scoping the audit to the code the rule actually governs, and the limits of a comment-based check. Use when a stated convention is drifting, when reviewers cannot tell deliberate from careless, or before writing a rule into a file header and assuming it will hold.

maxrave-dev c58f829 5.3 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/a-stated-rule-needs-annotated-exceptions commit c58f82927b

Frequently asked questions

npx skillmds@latest add maxrave-dev/a-stated-rule-needs-annotated-exceptions