mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-04 04:00:27 -06:00
1.2 KiB
1.2 KiB
Comment Prefixes
Comments have prefixes using Conventional: Comments as a loose guideline, and using this markdown file as a the actual guideline.
This document will be updated on an as-needed basis.
The rules
- A comment line always looks like this:
- A whitespace character
- Optional prefix matching
/[a-z-]+\([a-z-]a+\):/ - A whitespace character
- The comment
- Formalized prefixes must follow the rules below
- Any other prefix can be used. After some uses it might be good to formalize it, but that's not a hard rule.
Formalized prefixes
todo:is interchangable with the famousTODO:, except: when lowercase (todo:) it can include a scope:todo(security):.track:is used to track common patterns.- Anything written after
track:must be registered in track-comments.md
- Anything written after
wet:is usesd to track anything that doesn't adhere to the DRY principle; the following message should describe where similar code iscompare(<identifier>):is used to note differences between other implementations of a similar ideaname:pedantic commentary on the name of something