@webority/repo-checks 0.152.0 → 0.154.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
@@ -73,7 +73,7 @@ The `missing-export:<file>` check runs the Biome installed beside the app or in
73
73
  | `razor-page-handler:<file>` | A Razor page names a handler its page model does not declare: a literal `asp-page-handler`, a `?handler=` in a literal `href`, `action`, `formaction` or inline script string, or the handler argument of `Url.Page`, `RedirectToPage` or `RedirectToPagePermanent` (read like `RedirectToPage`). A handler `X` matches `On<Verb>X` or `On<Verb>XAsync` on the model or a base class in the repo. A `?handler=` is checked only in an address with no path before the `?`; one naming another path is counted as not checked. A page whose model derives from a package class is not checked. Counted per file. |
74
74
  | `razor-page-link:<file>` | A literal `asp-page`, or the page argument of `Url.Page`, `RedirectToPage` or `RedirectToPagePermanent`, names no page in the project, the projects it references, or a host project that references it, resolved as ASP.NET Core does (absolute within the area, relative to the linking page's folder, `asp-area=""` for the root). A link into an area no folder in the repo holds is a package's page and is not counted. Counted per file. What the check cannot read (a dynamic `asp-page`, a page name in a variable, a constant C# member lookup cannot pin to one value, a model outside the repo) is not a finding; the run prints how many links it skipped and why. |
75
75
  | `web-route-literal:<file>` | A router link or navigate call in a portal with a literal path instead of `href(...)` from the route table, so a link to a route that does not exist fails the type check. A template that starts with a substitution is not counted. Counted per file. |
76
- | `api-thunk:<file>` | A call of `createAsyncThunk`, or of a name the file binds to `createAsyncThunk.withTypes`, in an app's source; an API call moves to an RTK Query endpoint in `services/api` (react.md: API data). Counted per file. |
76
+ | `api-thunk:<file>` | A call of `createAsyncThunk`, or of a name the file binds to `createAsyncThunk.withTypes`, in an app's source; an API call moves to an RTK Query endpoint in `services/api` (react.md: API data). A phone app's session module, `src/redux/action/accountAction`, is not counted: its sign-in, token refresh, sign-out and start-up session thunks are the ones `@webority/mobile-core`'s `initUserAuth` and the session flows need (react-native.md). Counted per file. |
77
77
  | `screen-service-import:<file>` | A file under `src/screens/` imports from its head's `services/` folder other than the RTK Query api module (`services/api` or `services/api/*`); a screen reads data through that module. Counted per file. |
78
78
  | `api-call:<file>` | A hand-written URL in an app's `src`: a `.get(`, `.post(`, `.put(`, `.patch(` or `.delete(` call whose first argument is a string or template starting with `/` or `api/`, or a function in a `services` folder declared to return `Promise<unknown>`. The reply type and the URL come from the generated contract: call the operation through `api("<OperationId>", request)` from `src/services/api/api.ts`. Counted per file. Warns until a release enforces it (`REPO_CHECKS_ENFORCE=api-call` fails it now). |
79
79
  | `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. |