On 5/21/2024 12:48 PM, andrew.p...@gmail.com wrote:
Please simplify both of these, so that the user can simply run:
go vet -vettool=shadow
Or:
shadow ./...
> In other words, the user should be able to invoke gofmt on a large Go
> project with:
>
> gofmt ./...
>
> Same request for goimports.
>
go vet fails to obey the standard PATH environment variable (POSIX,
Windows). This makes it unnecessarily cumbersome to use go vet.
Here is an example (Mage) script to scan Go projects for variable shadowing:
func GoVetShadow(args ...string) error {
shadowPath, err := exec.LookPath("shadow")
if