如何使用go/analysis忽略测试文件(_test.go)?

huangapple go评论66阅读模式
英文:

How to ignore test files(_test.go) using go/analysis?

问题

如何使用go/analysis忽略测试文件(_test.go)?似乎go/analysis默认会加载测试文件。

英文:

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

答案1

得分: 1

这在2020年10月的golang/go问题41771中提到过:

这在leighmcculloch/gochecknoglobals PR 16中进行了讨论,但到目前为止(2021年9月),还没有明确的解决方案。

英文:

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.

huangapple
  • 本文由 发表于 2021年9月29日 00:48:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/69365625.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定