简体   繁体   English

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

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

How to ignore test files(_test.go) using go/analysis?如何使用 go/analysis 忽略测试文件(_test.go)? It seems like that go/analysis load test files by default.似乎默认情况下 go/analysis 加载测试文件。

This was mentioned in Oct. 2020 with golang/go issue 41771 :这在 2020 年 10 月的golang/go问题 41771中被提及:

It was discussed in leighmcculloch/gochecknoglobals PR 16 , but so far (Sept. 2021), without any clear resolution.它在leighmcculloch/gochecknoglobals PR 16中进行了讨论,但到目前为止(2021 年 9 月),还没有任何明确的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM