guardcheck

command
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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