Comment intent, and point at the owner instead of describing it
In cart Checkout
Versions
A version describes what work must do to comply with the rule. Major: work that complied with the previous version could fail this one. Minor: it still complies, and this version adds guidance. Patch: it still complies, and nothing is added. How versions work
2 versionsCompare versions
- Try a clearer name, narrower type, test, or lint rule before writing a body comment; commented-out code and banner comments are now violations; outside constraints link their upstream source.
- New rule: comments document purpose, contracts the code can't express, and the reasons for constraints, and point at the owner instead of duplicating implementation details or conventions it already states.