dense-analysis / dense-analysis/ale
"go vet ." should be run in the package directory, not in subdirectories
Open
enhancement
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
I have a subdirectory named "examples" in https://github.com/stefantalpalaru/pool and the default Go linter runs "go vet ." in that subdir instead of the package dir, leading to false positives for "examples/web_crawler.go".
There are two ways to fix this:
- make sure you always run that command in the project dir
- replace "go vet ." with "go tool vet some_file.go" as described here: https://github.com/golang/go/issues/23916
Contributor guide
Assessment
This issue has not been assessed yet.