You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: urlcode review misses request.json() hand-validation and constant-response functions #556
main at 645239b (static source review plus local synthetic checks). Node 22/26, macOS. Deployment: not applicable.
Minimal reproduction
packages/core/src/review.ts:36-38 flags hand validation only when it sees a literal JSON.parse(. The usual await request.json() passes, and there is no rule for a function that returns a fixed response. urlcode review reports 0 observations on recipes contact-form, static-plus-api, cors-api, webhook-receiver and middleware, each of which has a declarative replacement.
Relevant output
node packages/core/src/cli.ts review --project recipes/contact-form → no observations.
Suggested fix
Match request.json()/.json() followed by field checks, add a constant-response rule, and use those recipes as fixtures (before converting them, or as frozen copies under test/fixtures).
Activity
Declarative-first recipes, review signals and planner ranking (#605)