@webority/repo-checks 0.109.4 → 0.109.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
53
53
  | `raw-bootstrap:<file>` | A `.jsx`, `.tsx` or `.cshtml` file writes a raw Bootstrap component class (`btn`, `card`, `modal`, `table`, `badge`, `alert`, `form-control`, `form-select`, `form-check-input`, `pagination`, `nav-tabs`, `dropdown-menu`, `offcanvas`, `breadcrumb`, `progress`, `spinner-border`, `accordion`); the message names the library component. A modifier such as `btn-primary` alone is not counted. Counted per file. |
54
54
  | `library-class-restyle:<file>` | A product `.scss` or `.css` selector names a class the library theme defines, including as an ancestor (`.my-page .card-body`); use a library prop or token, or a product class. Counted per file. |
55
55
  | `rename-wrapper:<file>` | A re-export of `@webority/ui-react`, a component whose body only returns one catalogue component, or a `_Name.cshtml` partial that is one `<app-*>` element: import the library name. Counted per file. |
56
- | `single-use-component:<file>` | A file under `src/components/<feature>/` (not `layout/`), or a shared partial under `Pages/Shared/` or a `*.Web.Common` project, that fewer than two files use; move it next to the page that uses it. Counted per file. |
56
+ | `single-use-component:<file>` | A file under `src/components/<feature>/` (not `layout/`), or a shared partial under `Pages/Shared/` or a `*.Web.Common` project, that fewer than two files use; move it next to the page that uses it. A layout is skipped: a `_…Layout.cshtml` file, or one that a `_ViewStart.cshtml` of the same project names with `Layout = "<name>"`, because areas find it by that name. A Razor file whose first line is `@* layering-allow single-use-component: <reason> *@` is skipped too; a mark with no reason is a finding. Counted per file. |
57
57
  | `oversize:<file>` | A `.jsx`, `.tsx` or `.cshtml` file over 600 lines (over 800 says to split it along its concerns). A warning only: it never fails, even outside the baseline. Counted per file. |
58
58
  | `hook:drift` | The root `.husky/pre-commit` is missing or differs from the shared hook this package ships (CRLF is ignored) |
59
59
 
@@ -64,7 +64,10 @@ Comment lines (`//`, `/*`, `*`) and `.test.` or `.spec.` files are not read by t
64
64
  The four rules read every tracked `.scss`, `.css`, `.cshtml`, `.jsx` and `.tsx` file, and each `.js` or
65
65
  `.ts` file that imports `react-native`. They skip a path with a `node_modules`, `dist`, `generated`,
66
66
  `vendor`, `__tests__` or `__mocks__` segment, a path containing `wwwroot/lib/`, a `.generated.` name,
67
- a `.min.css` name, and a `.test.` or `.spec.` script.
67
+ a `.min.css` name, a `.test.` or `.spec.` script, and any path the repo lists under `generated[].paths` in
68
+ `.webority/map.json` (a trailing `/` names a folder; `*` matches within one segment). List a compiled
69
+ stylesheet there: it bundles the shared theme, so its library rules are not the product's code, and the
70
+ rules still read the SCSS it is built from.
68
71
 
69
72
  `raw-measure` counts a non-zero px, rem or em literal, or a bare number for a weight or a leading, in
70
73
  padding, margin, gap, inset, a corner, font size, font weight or line height: one finding per
@@ -125,6 +128,8 @@ and a file missing from the baseline is at 0, so a new or renamed file starts at
125
128
  findings or lowering counts, `--baseline-shrink` drops the fixed findings and lowers each count to
126
129
  its current value, deleting one that reaches 0; it never adds or raises one.
127
130
 
131
+ `--baseline-accept <folder> --reason <text>` records debt the owner has accepted: every current finding and count under that folder is added, and a count is raised to its current value, never lowered. Use it only for debt the owner has accepted, and give a reason that names the decision; the reason is kept in `accepted` in the baseline file, and `--baseline-shrink` keeps that entry.
132
+
128
133
  `--baseline-init` runs once: it refuses an existing file and folder arguments. When the file is the
129
134
  earlier shape (no `version`), delete it and run `--baseline-init` once from the git root, then review
130
135
  the diff before committing.