ShtukbaseStandard
package page→ /norms/code/code-pragmatic.md

pages/norms/code/code-pragmatic.md

20 lines, 865 B. As a page.

  1. ---
  2. type: Page
  3. title: 'Settings: Code: the pragmatic programmer'
  4. minLength: 16
  5. minFiles: 3
  6. commentedLines: 3
  7. exclude: []
  8. ---
  9. # Settings: Code: the pragmatic programmer
  10. Thresholds of the checks of the `code-pragmatic` package. Change a number in the header and the checks will take it on the next run. If a key is absent, the default value is used.
  11. | Key | Default | What it means |
  12. |---|---|---|
  13. | `minLength` | 16 | length of a string literal whose repetition is counted (PRG-R01) |
  14. | `minFiles` | 3 | in how many files a repetition is already a finding (PRG-R01) |
  15. | `commentedLines` | 3 | lines of commented-out code in a row (PRG-R03) |
  16. `exclude` is path masks from the project root that this package's checks do not read: `src/generated/**`, `legacy`, `**/*_pb.ts`. Shared exclusions for all code packages are on the page [/norms/code.md](/norms/code.md).