-
-
Notifications
You must be signed in to change notification settings - Fork 403
Closed
Labels
Description
Thanks for the great tool, and we used it in our CI heavily. Just from last Friday, our CI got broken because that static check starts complaining U1000 error for unused functions which are used in skipped test. Below are sample codes which are reproducible. The running commands is staticcheck .. Every CI run we get the latest tool through go get -u honnef.co/go/tools/cmd/staticcheck
package main
import "testing"
func test() {
}
func TestSum(t *testing.T) {
t.Skip("skipping for test")
go test()
}
For now, we have to add lint:file-ignore U1000 Ignore report to skip the error. Please let me know if something is changed recently. Thanks again.
Reactions are currently unavailable