@webority/repo-checks 0.109.5 → 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 +6 -1
- package/dist/repo-checks.js +31 -31
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -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,
|
|
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.
|