package page→ /norms/code/code-pragmatic.md
pages/norms/code/code-pragmatic.md
20 lines, 865 B. As a page.
- ---
- type: Page
- title: 'Settings: Code: the pragmatic programmer'
- minLength: 16
- minFiles: 3
- commentedLines: 3
- exclude: []
- ---
- # Settings: Code: the pragmatic programmer
- 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.
- | Key | Default | What it means |
- |---|---|---|
- | `minLength` | 16 | length of a string literal whose repetition is counted (PRG-R01) |
- | `minFiles` | 3 | in how many files a repetition is already a finding (PRG-R01) |
- | `commentedLines` | 3 | lines of commented-out code in a row (PRG-R03) |
- `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).