-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go vet false positive with input from list of file *.go
#7
Comments
Thanks for the bug report! This is a bug in how govet.Check is implemented. All go files from all packages are pulled and passed to govet when the files should be passed on a per-package basis. The reasoning being given at golang/go/#18018 is sound. I'll update lint to behave correctly. |
As an added note, the reason the directory is not used is because go vet recurses into all subdirectories as well and if a single package has been specified this might not be the expected behaviour. |
As reported in issue #7, the current usage of govet is buggy. All files in all packages are passed together as a large glob. To avoid this issue files are now passed in per-package fileset.
As reported in issue #7, the current usage of govet is buggy. All files in all packages are passed together as a large glob. To avoid this issue files are now passed in per-package fileset.
I've pushed a fix and I'm closing this issue. Please pull the latest and see if it fixes the problem for you. If not please re-open this issue. |
@sridharv thanks, I pull the lastest version and it works as expected ! |
I have default linter on top of 3 repository and it output false positive go vet error.
It seems the linter run this go vet command
and I opened an issue at golang project here but it closed
golang/go#18018
Is there any reason why the vet command have to run with list of
*.go
file instead of greedy argument.
?The text was updated successfully, but these errors were encountered: