Skip to content
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

cmd/vet: flag/traversal parity with go tool vet #11727

Open
tamird opened this issue Jul 15, 2015 · 1 comment
Open

cmd/vet: flag/traversal parity with go tool vet #11727

tamird opened this issue Jul 15, 2015 · 1 comment
Labels
Analysis Issues related to static analysis (vet, x/tools/go/analysis)
Milestone

Comments

@tamird
Copy link
Contributor

tamird commented Jul 15, 2015

There are two ways to invoke vet:

  • go vet, which operates on packages but does not take options:
    usage: vet [-n] [-x] [packages]
  • go tool vet, which takes options but operates on files or directories:
  Usage of vet:
    vet [flags] directory...
    vet [flags] files... # Must be a single package

It would be good to have parity between go vet and go tool vet one way or the other: either go tool vet should be able to operate on packages, or go vet should accept options. Perhaps go tool vet should be a superset of go vet.

@achille-roussel
Copy link
Contributor

I just had a hard time figuring this out and trying to work around it, something like this would have been really awesome:

go vet [-n] [-x] [vet flags] [packages]

@adonovan adonovan added the Analysis Issues related to static analysis (vet, x/tools/go/analysis) label Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analysis Issues related to static analysis (vet, x/tools/go/analysis)
Projects
None yet
Development

No branches or pull requests

4 participants