internal/

directory
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
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).
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).
Package cputime is the single seam through which rule code runs work off its calling thread while retaining per-rule CPU attribution.
Package cputime is the single seam through which rule code runs work off its calling thread while retaining per-rule CPU attribution.
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?
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).
Package finding defines the result type every rule evaluation produces.
Package finding defines the result type every rule evaluation produces.
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).
Hook wiring that is not formwork's.
Hook wiring that is not formwork's.
census.go — the escape-hatch enumeration (spec §9).
census.go — the escape-hatch enumeration (spec §9).
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).
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.
Package report renders findings.
Package report renders findings.
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).
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.
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.
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.
dartscan
Package dartscan implements heuristic analyzers for Dart source.
Package dartscan implements heuristic analyzers for Dart source.
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.
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).
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.
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".
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).
gotypes
Package gotypes is the go/types rule family: rules that resolve what a Go name refers to, which the syntax-only go/* family cannot.
Package gotypes is the go/types rule family: rules that resolve what a Go name refers to, which the syntax-only go/* family cannot.
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.
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.
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).
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.
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.
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).
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).
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).
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.
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.
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.

Jump to

Keyboard shortcuts

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