@webority/repo-checks 0.171.2 → 0.172.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 CHANGED
@@ -41,6 +41,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
41
41
  | `android-edge-to-edge` | `android/gradle.properties` sets `edgeToEdgeEnabled=false` |
42
42
  | `rn-mainactivity-oncreate-bundle:<file>` | A `MainActivity.kt` or `.java` passes a bundle to `super.onCreate`; pass `null` |
43
43
  | `metro-bridge:<file>` | A React Native app's entry file (`package.json` `main`, default `index.js`), root `App.js` or `src/App.js` nor any other source file of the app (outside `node_modules`, `ios`, `android` and build output) imports `createMetroBridge` from `@webority/mobile-core/metro` and assigns `globalThis.__METRO_BRIDGE__` from a `createMetroBridge(...)` call inside `if (__DEV__)` in the same file; react-native-procedures.md → Debugging: the development bridge |
44
+ | `mobile-import-bottom-tabs:<file>` | A React Native app's source file under `src/` (outside test folders) imports `@react-navigation/bottom-tabs`, a type-only import included; build tabs with `AppTabNavigator` from `@webority/mobile-ui/navigation/tabs`, type tab screens with `AppTabScreenProps` and read the bar height with `useAppTabBarHeight` |
44
45
  | `endpoint-name:<name>` | Two RTK Query endpoints in an app's `src` share a name (a `name: build.query(`, `build.mutation(` or `build.infiniteQuery(` key in a file that calls `injectEndpoints` or `createApi`); RTK Query keeps one, so the other screen calls the wrong URL. Warns until a release enforces it (`REPO_CHECKS_ENFORCE=endpoint-name` fails it now) |
45
46
  | `mobile-production-stamps:<file>` | A mobile app's Android manifest or iOS `Expo.plist` points over-the-air updates at the Staging or Development feed, or `android/gradle.properties` carries a `.staging` or `.development` app id, left by `mobile-tools prebuild`, or a committed manifest or `Expo.plist` still points at the retired whole-number address `ota/manifest/<n>/<n>/`. Set the OTA public-id settings, then run `mobile-tools prebuild --env Production` before committing |
46
47
  | `spa-host-immutable-assets:<file>` | A web app's `web.config`, `staticwebapp.config.json`, `_headers` or `spa-host*.json` sets Cache-Control with `immutable` |
@@ -234,6 +235,22 @@ the diff before committing.
234
235
  `--json` prints `{ root, new, known, stale }` for tools; a count above its record appears in `new`
235
236
  with its lines.
236
237
 
238
+ ## A head being rebuilt
239
+
240
+ A product rebuilding one head from scratch marks its folder in `.webority/baselines/exceptions.json` with the rule `rebuilding-head`, instead of growing the baseline for code that is about to be replaced:
241
+
242
+ ```json
243
+ {
244
+ "id": "EX-210",
245
+ "rule": "rebuilding-head",
246
+ "paths": ["Webority.Web", "Webority.Web.Gov"],
247
+ "reason": "The public sites are being rebuilt; the old markup is replaced, not fixed.",
248
+ "approvedBy": "decisions/D-040-rebuild-public-sites"
249
+ }
250
+ ```
251
+
252
+ Each path is a folder, repo-relative, matched on whole folder names: `Webority.Web` does not cover `Webority.Web.Api`. In that folder the per-file UI rules on markup, style and script files stand down: `raw-measure`, `palette-read`, `raw-colour`, `root-font-size`, `raw-motion`, `dark-read`, the Canvas key rules, `raw-bootstrap`, `bootstrap-overlay`, `library-class-restyle`, `unknown-icon`, `rename-wrapper`, `error-summary-title`, `web-route-literal`, `oversize` and `route-internal-id` in markup. `script-integrity` and every other rule still run on it. Each run prints one line per marked head: `note: <head> is being rebuilt (<id>, <decision>): <n> UI markup finding(s) skipped. <reason>`. An entry with no reason, no decision ref (`approvedBy`), or a path that is not a folder fails the run. Delete the entry when the rebuilt head ships.
253
+
237
254
  ## The shared pre-commit hook
238
255
 
239
256
  Every library and tool repository runs the pre-commit hook this package ships: the ones whose