Documentation
¶
Overview ¶
Command guardcheck runs Bomly's structural house rules as go/analysis analyzers.
It is a vet tool: `make guardcheck` builds it and runs `go vet -vettool=bin/guardcheck` over the packages each rule polices, so package scope and build tags come from the go command and results ride the build cache. Each rule is one analyzer under ./analyzers, selectable by its flag (-nodeinsert, -purlstring, -attributed); with no flag, all of them run.
Import and identifier bans are not here. Those are depguard and forbidigo rules in .golangci.yml; this command holds only the shapes no linter can express (ADR-0044, amended for issue #464).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package analyzers holds the house rules that are about the shape of code rather than about a resolved name: a lookup followed by an insert, a package URL pasted together from a literal, a detection result built without its attribution, a name the export layer may not mention even inside a string.
|
Package analyzers holds the house rules that are about the shape of code rather than about a resolved name: a lookup followed by an insert, a package URL pasted together from a literal, a detection result built without its attribution, a name the export layer may not mention even inside a string. |
Click to show internal directories.
Click to hide internal directories.