go-vet

command module
v0.0.0-...-5430c9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

go-vet

go-vet is a set of static analyzers to use with "go vet". These are used on the golang edge-cloud repos to enforce certain coding standards and avoid potentional hard to find bugs. This tool does not replace or overlap with other common static analyzers like staticheck or gosec.

Currently, this checks for:

  • shadowed variables
  • "bad funcs" which can cause problems and should be avoided

Install

Go 1.16+:

go install https://github.com/edgexr/go-vet@latest

Older go (run outside of your project directories):

go get -u https://github.com/edgexr/go-vet

Usage:

The binary is a plugin for the standard go tool. From your project root:

go vet -vettool=$(which go-vet) ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
analyzers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL