Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
assert-trusted-stamp
command
Command assert-trusted-stamp asserts the GoReleaser-built binary in dist/ is version-stamped and TRUSTED.
|
Command assert-trusted-stamp asserts the GoReleaser-built binary in dist/ is version-stamped and TRUSTED. |
|
formwork
command
Command formwork evaluates repository guardrail rules defined in .formwork/ YAML configuration.
|
Command formwork evaluates repository guardrail rules defined in .formwork/ YAML configuration. |
|
formwork-anchor-census
command
formwork-anchor-census — no `go/per-func-count-relation` arm may go unanchored: it must declare either the funcs it applies to or the side of the relation that constrains.
|
formwork-anchor-census — no `go/per-func-count-relation` arm may go unanchored: it must declare either the funcs it applies to or the side of the relation that constrains. |
|
formwork-arm-census
command
embedded.go — the fourth way a rule ARM can be written so that it cannot fail: a `required-pattern` whose pattern is a SUBSTRING of a longer identifier that already appears in its own scope.
|
embedded.go — the fourth way a rule ARM can be written so that it cannot fail: a `required-pattern` whose pattern is a SUBSTRING of a longer identifier that already appears in its own scope. |
|
formwork-pair-unit-census
command
formwork-pair-unit-census — the count-blindness census for pair-consistency arms (#12249).
|
formwork-pair-unit-census — the count-blindness census for pair-consistency arms (#12249). |
|
formwork-subject-census
command
formwork-subject-census — a name-anchored rule must still be able to SEE its subject.
|
formwork-subject-census — a name-anchored rule must still be able to SEE its subject. |
|
formwork-universal-cure-census
command
formwork-universal-cure-census — ratchet R3: no rule arm may pair an EXISTENTIAL detector with a UNIVERSAL cure.
|
formwork-universal-cure-census — ratchet R3: no rule arm may pair an EXISTENTIAL detector with a UNIVERSAL cure. |
|
formwork-vacuity-census
command
Corpus-independent calibration for the class-2 verdict probes (#15917).
|
Corpus-independent calibration for the class-2 verdict probes (#15917). |
|
Package corpus is the public API for analysing a formwork rule corpus.
|
Package corpus is the public API for analysing a formwork rule corpus. |
|
internal
|
|
|
census
Package census holds the shape and the bookkeeping every rule-corpus census shares.
|
Package census holds the shape and the bookkeeping every rule-corpus census shares. |
|
cli
Package cli wires config, scan, engine, and report behind the formwork command surface and owns the exit-code contract (spec §6).
|
Package cli wires config, scan, engine, and report behind the formwork command surface and owns the exit-code contract (spec §6). |
|
config
Package config loads .formwork/ YAML strictly and compiles rule envelopes into executable rules (spec §5).
|
Package config loads .formwork/ YAML strictly and compiles rule envelopes into executable rules (spec §5). |
|
declspan
Package declspan answers one question: which lines does the declaration that a given line opens span?
|
Package declspan answers one question: which lines does the declaration that a given line opens span? |
|
engine
Package engine runs compiled rules over a FileSet: phase 1 fans files out to a worker pool, phase 2 fans finalizers out to a second one (spec §6).
|
Package engine runs compiled rules over a FileSet: phase 1 fans files out to a worker pool, phase 2 fans finalizers out to a second one (spec §6). |
|
finding
Package finding defines the result type every rule evaluation produces.
|
Package finding defines the result type every rule evaluation produces. |
|
fixturetest
Package fixturetest runs each rule against its fire/pass fixture trees and asserts findings match declared expectations exactly (spec §7).
|
Package fixturetest runs each rule against its fire/pass fixture trees and asserts findings match declared expectations exactly (spec §7). |
|
hooks
Hook wiring that is not formwork's.
|
Hook wiring that is not formwork's. |
|
meta
census.go — the escape-hatch enumeration (spec §9).
|
census.go — the escape-hatch enumeration (spec §9). |
|
preprocess
Package preprocess provides line-preserving content transforms that rules select via the envelope's preprocess: param (spec §5, §6; phase-3a design §1).
|
Package preprocess provides line-preserving content transforms that rules select via the envelope's preprocess: param (spec §5, §6; phase-3a design §1). |
|
repoproof
Package repoproof holds gates over this repository's OWN tooling — the Makefile's verdict handling, the clone harness's refusals, the installed git hooks — as Go tests rather than shell scripts.
|
Package repoproof holds gates over this repository's OWN tooling — the Makefile's verdict handling, the clone harness's refusals, the installed git hooks — as Go tests rather than shell scripts. |
|
report
Package report renders findings.
|
Package report renders findings. |
|
rules
Package rules defines the checker contract and the registry mapping YAML `type:` strings to implementations (spec §4).
|
Package rules defines the checker contract and the registry mapping YAML `type:` strings to implementations (spec §4). |
|
rules/baseline
Package baseline implements the `baseline` rule type (spec §5): it extracts a set of values from the in-scope files and compares that set to a tracked baseline file.
|
Package baseline implements the `baseline` rule type (spec §5): it extracts a set of values from the in-scope files and compares that set to a tracked baseline file. |
|
rules/binarycontent
Package binarycontent implements the `binary-content` rule type (spec §5): a per-file guard against oversized or binary blobs in tracked files.
|
Package binarycontent implements the `binary-content` rule type (spec §5): a per-file guard against oversized or binary blobs in tracked files. |
|
rules/command
Package command implements the `command` rule type (spec §5): the interim escape hatch for toolchain gates that cannot be expressed declaratively.
|
Package command implements the `command` rule type (spec §5): the interim escape hatch for toolchain gates that cannot be expressed declaratively. |
|
rules/dartscan
Package dartscan implements heuristic analyzers for Dart source.
|
Package dartscan implements heuristic analyzers for Dart source. |
|
rules/docpathexists
Package docpathexists implements the `doc-path-exists` rule type (spec §5): repo-relative paths cited in docs and comments must exist on disk.
|
Package docpathexists implements the `doc-path-exists` rule type (spec §5): repo-relative paths cited in docs and comments must exist on disk. |
|
rules/filenaming
Package filenaming implements the `file-naming` rule type (spec §5): naming constraints over in-scope file paths (never their content).
|
Package filenaming implements the `file-naming` rule type (spec §5): naming constraints over in-scope file paths (never their content). |
|
rules/filesize
Package filesize implements the `file-size` rule type: per-file line-count caps.
|
Package filesize implements the `file-size` rule type: per-file line-count caps. |
|
rules/gitdiff
Package gitdiff implements the `git-diff` rule type (spec §5): assertions over the added/removed lines of a git range — "no new X", "don't delete Y".
|
Package gitdiff implements the `git-diff` rule type (spec §5): assertions over the added/removed lines of a git range — "no new X", "don't delete Y". |
|
rules/goast
Package goast implements the built-in Go-AST analyzer rule types (spec §4, phase 4).
|
Package goast implements the built-in Go-AST analyzer rule types (spec §4, phase 4). |
|
rules/ordering
Package ordering implements the `ordering` rule type (spec §5): within each file, a `before` pattern must precede an `after` pattern.
|
Package ordering implements the `ordering` rule type (spec §5): within each file, a `before` pattern must precede an `after` pattern. |
|
rules/pairconsistency
Package pairconsistency implements the `pair-consistency` rule type (spec §5): a `trigger` match obliges a `requires` match within the same UNIT.
|
Package pairconsistency implements the `pair-consistency` rule type (spec §5): a `trigger` match obliges a `requires` match within the same UNIT. |
|
rules/pattern
Package pattern implements the line-oriented pattern rule types (spec §5: forbidden-pattern, required-pattern).
|
Package pattern implements the line-oriented pattern rule types (spec §5: forbidden-pattern, required-pattern). |
|
rules/patterncount
Package patterncount implements the `pattern-count` rule type (spec §5): a whole-scope assertion on how many lines match a regex across the in-scope file set.
|
Package patterncount implements the `pattern-count` rule type (spec §5): a whole-scope assertion on how many lines match a regex across the in-scope file set. |
|
rules/setrelation
Package setrelation implements the `set-relation` rule type (spec §5): a cross-file join that extracts a string set from each of two file groups and asserts a relation (subset, equal, disjoint) between them.
|
Package setrelation implements the `set-relation` rule type (spec §5): a cross-file join that extracts a string set from each of two file groups and asserts a relation (subset, equal, disjoint) between them. |
|
rules/sqlparse
Package sqlparse implements the parse-tree-backed SQL rule types (sql/parses, sql/locking-select-order).
|
Package sqlparse implements the parse-tree-backed SQL rule types (sql/parses, sql/locking-select-order). |
|
rules/sqltext
Package sqltext implements the `sql/statement-predicate` rule type: a predicate over individual SQL statements, sourced both from `.sql` files (used verbatim) and from SQL embedded in Go string literals (`.go` files, reassembled heuristically — see sqlextract).
|
Package sqltext implements the `sql/statement-predicate` rule type: a predicate over individual SQL statements, sourced both from `.sql` files (used verbatim) and from SQL embedded in Go string literals (`.go` files, reassembled heuristically — see sqlextract). |
|
scan
restrict.go — the file-set intersection: which walked files are the ones a caller's path list named, including where the two spell the same filename with different bytes (#98).
|
restrict.go — the file-set intersection: which walked files are the ones a caller's path list named, including where the two spell the same filename with different bytes (#98). |
|
sqlextract
Package sqlextract reassembles SQL held in Go string literals and reports the compositions it could not reassemble.
|
Package sqlextract reassembles SQL held in Go string literals and reports the compositions it could not reassemble. |
|
vacuity
Package vacuity judges whether a PASS fixture could ever have failed its rule.
|
Package vacuity judges whether a PASS fixture could ever have failed its rule. |
|
vcs
The guard that belongs to FORMWORK_GIT_ENV=inherit itself.
|
The guard that belongs to FORMWORK_GIT_ENV=inherit itself. |
|
vcs/gitseal
Package gitseal seals a test binary's process environment against the developer's ambient git configuration.
|
Package gitseal seals a test binary's process environment against the developer's ambient git configuration. |
|
Package stdlib is the versioned generic rule packs shipped with the binary.
|
Package stdlib is the versioned generic rule packs shipped with the binary. |
Click to show internal directories.
Click to hide internal directories.