Skip to content

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

Description

@tamird

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnalysisIssues related to static analysis (vet, x/tools/go/analysis)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions