Documentation
¶
Overview ¶
Package pkgstd provides a go/analysis analyzer enforcing the gomatic three-tier layout's per-package standards. For a command package (internal/app/commands/<cmd>): the command file (the first one defining a command entry point) leads with a const block, at least one entry point — Command() or an exported <Verb>Command() constructor for a package exposing several verbs (e.g. PlanCommand/ApplyCommand) — exists, and the domain package is imported under the "domain" alias. (Cross-package correspondence is the layout analyzer's job.)
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Analyzer = &analysis.Analyzer{
Name: "pkgstd",
Doc: "reports command packages that violate the gomatic three-tier package standards",
Run: run,
}
Analyzer reports per-package violations of the three-tier command-package layout.
var Registration = goyze.Registration{ Name: "pkgstd", Categories: []goyze.Category{"structure"}, URL: "https://docs.gomatic.dev/yze/pkgstd", 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-pkgstd
command
Command yze-go-pkgstd runs the pkgstd analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`).
|
Command yze-go-pkgstd runs the pkgstd analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`). |