The project lint never checks routes an integration registers #63

Open
opened 2026-09-21 07:18:19 +00:00 by cgalo5758 · 0 comments
Owner

What a contributor runs into

The lint's route scanner reads route registrations in the core server package only. A route an integration registers through the contract's registration hook is invisible to it, so the rule that every mutation route has a walkthrough and the rule that no handler renders a raw error both pass over every route an integration owns. The route count the lint reports is the same with or without an integration's tree compiled in.

Why it costs

An integration can ship a mutation route with no walkthrough and a raw error render, and the lint calls the repository clean. The first integration to register routes declared its coverage in comments by hand, which is exactly the claim the lint exists to check.

Where

The route scanner in internal/lint; the integrations' web packages, or the registry that already collects them.

Done when

The lint collects routes through the registry or by walking each integration's web package, its route count grows when an integration is compiled in, and deleting the walkthrough for an integration route fails the lint.

Migrated from status/issues.md at b7a0e15

## What a contributor runs into The lint's route scanner reads route registrations in the core server package only. A route an integration registers through the contract's registration hook is invisible to it, so the rule that every mutation route has a walkthrough and the rule that no handler renders a raw error both pass over every route an integration owns. The route count the lint reports is the same with or without an integration's tree compiled in. ## Why it costs An integration can ship a mutation route with no walkthrough and a raw error render, and the lint calls the repository clean. The first integration to register routes declared its coverage in comments by hand, which is exactly the claim the lint exists to check. ## Where The route scanner in [`internal/lint`](https://git.coopcloud.tech/wiki-cafe/member-console/src/commit/b7a0e15/internal/lint); the integrations' web packages, or the registry that already collects them. ## Done when The lint collects routes through the registry or by walking each integration's web package, its route count grows when an integration is compiled in, and deleting the walkthrough for an integration route fails the lint. Migrated from status/issues.md at b7a0e15
cgalo5758 added the
kind
debt
area/integrationsarea/testing
labels 2026-09-21 07:18:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wiki-cafe/member-console#63