Open FlorentClarret opened 3 weeks ago
I have this very simple example:
First file:
package first func FirstFunc() error { return nil } func ThirdFunc() error { FirstFunc() return nil }
Second file:
package second import "testerrcheck/first" func SecondFunc() error { first.FirstFunc() return nil }
Exclude file:
testerrcheck/first.FirstFunc
When I run errcheck -exclude exclude.txt ./... I get:
errcheck -exclude exclude.txt ./...
first/file.go:8:11: FirstFunc()
The exclusion is properly working for the function called in the second package, but not from within its own package, in the first package.
second
first
Thanks, this does indeed seem like a bug
I have this very simple example:
First file:
Second file:
Exclude file:
When I run
errcheck -exclude exclude.txt ./...
I get:The exclusion is properly working for the function called in the
second
package, but not from within its own package, in thefirst
package.