Documentation
¶
Overview ¶
Package errlast provides a go/analysis analyzer enforcing the gomatic Go idiom that error is always the last return value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "errlast", Doc: "reports error return values that are not last", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer reports error results that are not the last return value.
View Source
var Registration = goyze.Registration{ Name: "errlast", Categories: []goyze.Category{"errors"}, URL: "https://docs.gomatic.dev/yze/errlast", Analyzer: Analyzer, }
Registration declares this analyzer to the yze framework.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
yze-go-errlast
command
Command yze-go-errlast runs the errlast analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`).
|
Command yze-go-errlast runs the errlast analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`). |
Click to show internal directories.
Click to hide internal directories.