Documentation
¶
Overview ¶
Package invariants checks that each Implemented ADR's `inv: <slug>` invariant tag is backed by a `<marker> invariant: <slug>` comment in a configured source file. The comment marker and the files scanned are language-configurable via the project's invariants config; nothing here assumes Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
Finding is an Implemented-ADR invariant slug that is not satisfied.
func Check ¶
func Check(decisionsDir, root string, cfg *config.InvariantConfig) ([]Finding, error)
Check returns a Finding per unsatisfied Implemented-ADR invariant slug. No required slugs → nil. cfg disabled → nil. cfg nil or source-less → every required slug is Unchecked. Otherwise unbacked slugs are Unbacked.
Click to show internal directories.
Click to hide internal directories.