ShtukbaseStandard
package page→ /norms/code/code-functional-core.md

pages/norms/code/code-functional-core.md

20 lines, 949 B. As a page.

  1. ---
  2. type: Page
  3. title: 'Settings: Code: a pure core, effects at the edges'
  4. core: []
  5. effects: []
  6. rustMutRefs: false
  7. exclude: []
  8. ---
  9. # Settings: Code: a pure core, effects at the edges
  10. Thresholds of the checks of the `code-functional-core` 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. | `core` | [] | paths of the pure core: folders or masks (FC-R01...R03); while empty, the checks stay silent |
  14. | `effects` | [] | your own regular expressions of effects, in addition to the built-in ones (FC-R01) |
  15. | `rustMutRefs` | false | count a &mut parameter in Rust as changing what is given (FC-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).