ShtukbaseStandard
package file→ .shtukbase/packages/code-deep-modules/judges/comments-why.md

judges/comments-why.md

15 lines, 729 B.

  1. # Judge: a comment says what the code does not
  2. Norm DM-R06. Comments on interfaces and on non-obvious places explain what and why, which cannot be seen from the code; a comment does not retell the line below it.
  3. **Who judges.** The reviewer of the change.
  4. **When.** On a change that adds public functions, types or modules.
  5. **What the judge looks at.**
  6. 1. A new public entry point has a description: what it does, what the parameters and the result mean, what its conditions are.
  7. 2. Comments do not retell the code on the line below.
  8. 3. A non-obvious decision (why this way and not a simpler one) is written next to it.
  9. **Result.** "holds" or "violated: which entry point has no description, which comment is superfluous".