odd-paired-arguments
Default severity: error
Some functions consume slice or variadic elements in pairs and reject odd lengths. The check recognizes standard pair-oriented APIs and local functions that enforce an even length by panicking, then checks calls whose argument length is statically known.
strings.NewReplacer("old", "new", "orphan")strings.NewReplacer("old", "new")