ShtukbaseStandard
package file→ .shtukbase/packages/code-pragmatic/judges/dry-knowledge.md

judges/dry-knowledge.md

15 lines, 914 B.

  1. # Judge: one piece of knowledge, one place (in different words)
  2. Norm PRG-R01. Every piece of knowledge (a path, a key, a format, a rule, a number with a meaning) is written in the system once; the same string literal is not repeated in minFiles files (3).
  3. **Who judges.** The reviewer of the change.
  4. **When.** On a change that adds a format, a schema, constants, check rules or documentation for them.
  5. **What the judge looks at.**
  6. 1. One piece of knowledge is written in two places in different words: a schema in code and in a document, a list of fields in two modules, a rule in a check and in text.
  7. 2. Can one place be generated from the other (a document from a schema, a type from a table).
  8. 3. Repeated code that does not repeat knowledge (two similar but independent checks) is not a violation.
  9. **Result.** "holds" or "violated: which knowledge, where the second place is, what to generate from what".