Documentation
¶
Overview ¶
Package namedtypes provides a go/analysis analyzer enforcing the gomatic Go standard that function parameters use named domain types rather than bare primitives. v1 covers non-method function declarations whose parameter type is a bare predeclared primitive identifier; methods and composite types are deferred.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "namedtypes", Doc: "reports function parameters that use a bare primitive type instead of a named domain type", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer reports function parameters declared with a bare primitive type.
View Source
var Registration = goyze.Registration{ Name: "namedtypes", Categories: []goyze.Category{"types"}, URL: "https://docs.gomatic.dev/yze/namedtypes", 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-namedtypes
command
Command yze-go-namedtypes runs the namedtypes analyzer as a standalone go/analysis checker (text, -json, and -fix output, and usable as a `go vet -vettool`).
|
Command yze-go-namedtypes runs the namedtypes analyzer as a standalone go/analysis checker (text, -json, and -fix output, and usable as a `go vet -vettool`). |
Click to show internal directories.
Click to hide internal directories.