@webority/repo-checks 0.128.0 → 0.130.0
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 +12 -2
- package/dist/lockstep.json +3 -2
- package/dist/repo-checks.js +36 -35
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -51,7 +51,9 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
|
|
|
51
51
|
| `raw-colour:<file>` | A hex, an `rgb()` or `hsl()` with numbers, or a CSS named colour in a colour property or style key, where a colour meaning belongs. Counted per file. |
|
|
52
52
|
| `root-font-size:<file>` | A `font-size` or `font` declared on `html` or `:root`. The type scale assumes the browser's root size. Counted per file. |
|
|
53
53
|
| `palette-read:<file>` | A read of a raw palette step (`var(--wui-<step>)`, or a phone `palette.` read) or of a Bootstrap theme colour (`var(--bs-primary)`, `var(--bs-primary-rgb)` or Sass `$primary`, for the eight theme colours), where a colour meaning belongs. The message names the meaning to read. Counted per file. |
|
|
54
|
-
| `
|
|
54
|
+
| `raw-motion:<file>` | A non-zero time (`150ms`, `.2s`) or an easing (`ease`, `linear`, `cubic-bezier(...)`, `steps(...)`) in `transition`, `transition-duration`, `transition-timing-function`, `animation`, `animation-duration` or `animation-timing-function`, where a motion token belongs. A `var()` read, a zero and a delay are not counted. Counted per file. |
|
|
55
|
+
| `dark-read:<file>` | A read of the private dark tier (`var(--wui-dark-primary)` and the other `--wui-dark-*` steps), which stays dark in light mode. The message names the `--color-*` meaning to read. It replaces the `palette-read` count for those reads. Counted per file. |
|
|
56
|
+
| `missing-canvas-key:<file>` | A list item with no `data-canvas` key on web or `testID` on a phone, and no spread: the first JSX tag (past a Fragment) that an expression the `.map(` callback itself returns holds outside any object literal, in an expression body or any `return` of a block body. An object holding an element is data, a nested function's returns are its own, a block with no returned element draws no row, a React Navigation `.Screen` or `.Group` configures a navigator, and a component whose root sets the key (in the same file or imported) is keyed by itself. A map given a named function has its whole argument read. Counted per file. |
|
|
55
57
|
| `repeated-canvas-key:<file>` | A quoted `data-canvas` or `testID` value that a second tag in the same module repeats. Counted per file. |
|
|
56
58
|
| `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. |
|
|
57
59
|
| `library-class-restyle:<file>` | A product `.scss` or `.css` selector names a class the library theme defines (a `wui-*` component class, an `app-*` shell, navigation or tab class, or a Bootstrap component class the theme skins: `btn`, `card`, `modal`, `table`, `form-control`, `form-select`, `form-check`, `form-label`, `form-text`, `badge`, `alert`, `dropdown`, `nav-tabs`, `nav-pills`, `nav-link`, `pagination`, `page-item`, `page-link`, `offcanvas`, `accordion`, `breadcrumb`, `progress`, `spinner-border`, `list-group`, `input-group`, each also with a `-suffix`), including as an ancestor (`.my-page .wui-card-body`, `.app-shell.collapsed .app-sidebar .brand-logo`); use a library prop or token, or a product class. A token file that only sets custom properties names no class and is not counted. Counted per file. |
|
|
@@ -99,6 +101,14 @@ text inside a `url()` or a quoted string are not counted.
|
|
|
99
101
|
`var(--bs-<colour>)`, `var(--bs-<colour>-rgb)` and Sass `$<colour>` for Bootstrap's eight theme
|
|
100
102
|
colours: one finding per read, and a declaration is not a read.
|
|
101
103
|
|
|
104
|
+
`raw-motion` counts a non-zero time or an easing in the six properties `transition`, `transition-duration`,
|
|
105
|
+
`transition-timing-function`, `animation`, `animation-duration` and `animation-timing-function`. Motion comes
|
|
106
|
+
from the tokens `--wui-duration-fast`, `--wui-duration-default`, `--wui-duration-slow` and `--wui-ease-out`,
|
|
107
|
+
`--wui-ease-in-out`, `--wui-ease-ui` and `--wui-ease-elastic`; a delay and a zero are not counted.
|
|
108
|
+
|
|
109
|
+
`dark-read` counts each read of the private dark tier (`var(--wui-dark-*)`). A dark band is a scope with
|
|
110
|
+
`data-theme="dark"`, never a direct read, so a read of the dark tier stays dark in light mode.
|
|
111
|
+
|
|
102
112
|
`missing-canvas-key` and `repeated-canvas-key` read every script module that imports `react-native`,
|
|
103
113
|
`@webority/mobile-ui` or `@webority/ui-react`. The attribute is `testID` in a module that imports
|
|
104
114
|
`react-native` or `@webority/mobile-ui`, and `data-canvas` in any other. A spread on the item counts as
|
|
@@ -146,7 +156,7 @@ its current value, deleting one that reaches 0; it never adds or raises one.
|
|
|
146
156
|
|
|
147
157
|
`--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.
|
|
148
158
|
|
|
149
|
-
`--baseline-adopt <rule,...>` records today's findings and counts for rules the baseline has never recorded, such as a rule a new release adds. It refuses a rule the baseline already records, so it never raises an existing entry, and names how many findings and counts it adopted per rule.
|
|
159
|
+
`--baseline-adopt <rule,...>` records today's findings and counts for rules the baseline has never recorded, such as a rule a new release adds. It refuses a rule the baseline already records, so it never raises an existing entry, and names how many findings and counts it adopted per rule. A release that adds raw-motion and dark-read is adopted once with `--baseline-adopt raw-motion,dark-read`; then `--baseline-shrink` lowers the palette-read counts the dark reads leave.
|
|
150
160
|
|
|
151
161
|
`--baseline-init` runs once: it refuses an existing file and folder arguments. When the file is the
|
|
152
162
|
earlier shape (no `version`), delete it and run `--baseline-init` once from the git root, then review
|
package/dist/lockstep.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"npm": [
|
|
3
3
|
"@webority/biome-config",
|
|
4
4
|
"@webority/canvas-kit",
|
|
5
|
-
"@webority/chat-react",
|
|
6
5
|
"@webority/insights-react",
|
|
7
6
|
"@webority/markdown-core",
|
|
8
|
-
"@webority/mobile-chat",
|
|
9
7
|
"@webority/mobile-core",
|
|
8
|
+
"@webority/mobile-insights",
|
|
10
9
|
"@webority/mobile-support",
|
|
11
10
|
"@webority/mobile-tools",
|
|
12
11
|
"@webority/mobile-ui",
|
|
13
12
|
"@webority/repo-checks",
|
|
13
|
+
"@webority/sandbox-gate",
|
|
14
14
|
"@webority/support-react",
|
|
15
15
|
"@webority/theme",
|
|
16
16
|
"@webority/tokens",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"@webority/web-core"
|
|
20
20
|
],
|
|
21
21
|
"nuget": [
|
|
22
|
+
"Webority.Mentions",
|
|
22
23
|
"Webority.QrCode",
|
|
23
24
|
"Webority.Ui.Razor"
|
|
24
25
|
]
|