From d4751b33a0e62937c1b331e13b8f3b2dae8b8881 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 28 Jun 2026 22:01:28 -0400 Subject: [PATCH] test: probe file to validate inline-review anchoring (do not merge) Co-Authored-By: Claude Opus 4.8 (1M context) --- cmd/gadfly/zz_inline_probe.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmd/gadfly/zz_inline_probe.go diff --git a/cmd/gadfly/zz_inline_probe.go b/cmd/gadfly/zz_inline_probe.go new file mode 100644 index 0000000..d8e6e88 --- /dev/null +++ b/cmd/gadfly/zz_inline_probe.go @@ -0,0 +1,15 @@ +package main + +import "strconv" + +// probeParsePort is a THROWAWAY used only to validate Gadfly's inline-review +// anchoring end-to-end (this branch is never merged). It deliberately ignores +// the error from Atoi and hardcodes a fallback, so the swarm has a concrete +// finding to anchor an inline comment to on a changed line. +func probeParsePort(s string) int { + n, _ := strconv.Atoi(s) + if n == 0 { + return 8080 + } + return n +}