Documentation
¶
Overview ¶
viaonly says which calls bypass the wrapper they were supposed to go through.
viaonly --wraps await --via '(*Peer).awaited' .
⛔ WHY IT EXISTS. go-crdt/collab shipped the same defect three times in four days: a rule honoured at some call sites and not at its siblings.
#247 RetryPolicy.Permanent asked about each attempt — one of two loops did #268 the context's expiry returned through stalled() — two of three did #271 the wait went through awaited() — ONE OF FIVE did
The third was born inside the fix for the second, and a CONSUMER measured it, not the author. A lesson that cannot stop its own recurrence in the commit that cites it is not a lesson, so this is a command instead of a note.
⛔ IT INFERS NOTHING. The pairing is DECLARED: --wraps names the callee, --via names the only function allowed to call it, and neither has a default. A tool that guessed which idiom a package "meant" would cry wolf, and a guard that cries wolf is a guard somebody turns off — this fleet has that measured twice over.
Exit status, following assetpath's and priorart's:
0 every call to --wraps is inside --via 1 at least one call bypasses it; each is printed with its position 2 REFUSED TO DECIDE: the directory would not parse, or --wraps or --via names nothing in it
⛔ The 2 is the whole point, as it is for assetpath. If --wraps resolves to no function, "0 direct calls" is true and worthless: the tool measured a name it could not find, not a package that obeys. A gate that passes because it had nothing to look at is worse than no gate, and this fleet has three memories of exactly that shape.
What it does not do yet ¶
--wraps takes an UNQUALIFIED function name, because that is the shape the three defects above had: a package-level helper called from its own package. A dotted name is refused (exit 2) rather than half-matched on the selector, which would report calls to any method of that name on any receiver.
Test files are not scanned unless --tests is given, because a test calling the raw function directly is ordinary. The count of files skipped is printed, so the skipping is never silent.