dense-analysis / dense-analysis/ale

"go vet ." should be run in the package directory, not in subdirectories

Open
#1,657 5 comments 0 reactions 1 assignee Claimed by @arp242 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.