2

How to ignore test files(_test.go) using go/analysis? It seems like that go/analysis load test files by default.

zsh.sec
  • 21
  • 2

1 Answers1

1

This was mentioned in Oct. 2020 with golang/go issue 41771:

It was discussed in leighmcculloch/gochecknoglobals PR 16, but so far (Sept. 2021), without any clear resolution.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250