How to lint for testing folders without a main.go in Azure DevOps? #4854
Unanswered
tuxerrante
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, I think it's because your Demo
package foo
import (
"fmt"
"testing"
)
func TestName(t *testing.T) {
foo("r")
}
func foo(a string) error {
if a == "a" {
return nil
}
return fmt.Errorf("foo")
} $ golangci-lint run
foo/foo_test.go:9:5: Error return value is not checked (errcheck)
foo("r")
^
$ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need to scan a testing folder with a structure like
I've tried many combinations of the args to mount the current dir as a volume, the test folder, copying go.mod and go.sum in test folder before mounting it and so on.
Or:
Beta Was this translation helpful? Give feedback.
All reactions