mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-12 03:48:38 +00:00
Address the three nexus-check findings on PR #3458: - Echo handler position: `e.GET("/x", h.Handler, auth.Middleware)` puts the handler SECOND (echo: path, handler, middleware...), gin puts it last (path, middleware..., handler). An echo-only import (matched on the import path, alias-safe) now selects the first argument after the path; gin-only, mixed, and import-less files keep the last-argument anchor. - For-loop post binding: findBinding scanned every named child of a for_clause, including `update`, which runs after the body — a `g = r.Group("/new")` post statement shadowed the group the body sees. Only the `initializer` slot binds before the body. - Duplicate slashes: joinRoutePath collapsed "//" only at the join boundary, while ingestion's normalizeExtractedRoutePath collapses every run and the downstream contract-id normalizer does not — a path keeping "//" split into two contract ids across the strategies. Collapse the final result on every return branch instead. Tests: +6 (echo-only handler, both-imports fallback, for-post scoping, duplicate-slash collapse); go-gin suite 36, group suite 1297, ingestion Go 71. Co-Authored-By: Claude Code <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||