internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT

Directories

Path Synopsis
Package arch is the domain of anarch-lint: the facts a loader extracts from a Go program, the target-architecture model, and every measure, rule, judgement slot and gate computed from them.
Package arch is the domain of anarch-lint: the facts a loader extracts from a Go program, the target-architecture model, and every measure, rule, judgement slot and gate computed from them.
Package balance measures Vlad Khononov's Balanced Coupling for every ordered pair of subsystems: how much knowledge flows between them (integration strength), how far apart they are (distance), and how likely they are to change (volatility), with the balance of the three (connascence.md §9).
Package balance measures Vlad Khononov's Balanced Coupling for every ordered pair of subsystems: how much knowledge flows between them (integration strength), how far apart they are (distance), and how likely they are to change (volatility), with the balance of the three (connascence.md §9).
Package codeowners reads GitHub's CODEOWNERS format and answers who owns each package, for the owner boundary of Balanced Coupling's distance (connascence.md §9.3).
Package codeowners reads GitHub's CODEOWNERS format and answers who owns each package, for the owner boundary of Balanced Coupling's distance (connascence.md §9.3).
Package connascence measures the connascence of a Go program deterministically: what it can count exactly, what it can only flag as a candidate, and what a reviewer must judge (connascence.md).
Package connascence measures the connascence of a Go program deterministically: what it can count exactly, what it can only flag as a candidate, and what a reviewer must judge (connascence.md).
Package coverage reads a test coverage profile, as go test -coverprofile writes one, with golang.org/x/tools/cover, and attributes its statements to the program's functions (IMPROVEMENTS.md 6.4).
Package coverage reads a test coverage profile, as go test -coverprofile writes one, with golang.org/x/tools/cover, and attributes its statements to the program's functions (IMPROVEMENTS.md 6.4).
Package fitness measures a Go program the way ArchUnit tests a Java one: Lakos, visibility and component dependency metrics, elementary cycles, and the model's fitness rules (layer access, an onion architecture, slices, dependents, calls and interface-only use), each with a reason, a gate and a result.
Package fitness measures a Go program the way ArchUnit tests a Java one: Lakos, visibility and component dependency metrics, elementary cycles, and the model's fitness rules (layer access, an onion architecture, slices, dependents, calls and interface-only use), each with a reason, a gate and a result.
Package git reads the lines a change touched and the commits that changed each file, by running the git command line tool.
Package git reads the lines a change touched and the commits that changed each file, by running the git command line tool.
Package gopackages loads Go packages with golang.org/x/tools/go/packages and translates them into the facts of an arch.Program: types, functions with their size and complexity, type-to-type references and imports.
Package gopackages loads Go packages with golang.org/x/tools/go/packages and translates them into the facts of an arch.Program: types, functions with their size and complexity, type-to-type references and imports.
Package graphql reads GraphQL schemas into arch.GraphQLSchema: the fields of the root operation types, and the errors of operation documents validated against the schema.
Package graphql reads GraphQL schemas into arch.GraphQLSchema: the fields of the root operation types, and the errors of operation documents validated against the schema.
Package judging asks judges the questions the measures cannot answer, and admits their answers as verification events (mmi-plan.md §9.3 C–G, J).
Package judging asks judges the questions the measures cannot answer, and admits their answers as verification events (mmi-plan.md §9.3 C–G, J).
Package modelith reads modelith domain models (*.modelith.yaml files) into arch.DomainModel: the entities with their relationships, attributes and actions, the enums with their values in declared order, the glossary, the invariants and the imports that anarch-lint compares with the code.
Package modelith reads modelith domain models (*.modelith.yaml files) into arch.DomainModel: the entities with their relationships, attributes and actions, the enums with their values in declared order, the glossary, the invariants and the imports that anarch-lint compares with the code.
Package openapi reads OpenAPI documents into arch.APIDocument: each operation's method, path template and declaring line, and the servers' base paths.
Package openapi reads OpenAPI documents into arch.APIDocument: each operation's method, path template and declaring line, and the servers' base paths.
Package pipeline is the imperative shell every measurement shares: it reads the model, the judgements, the domain models, the baseline and the waivers, loads the packages, and runs the measures a check gates on.
Package pipeline is the imperative shell every measurement shares: it reads the model, the judgements, the domain models, the baseline and the waivers, loads the packages, and runs the measures a check gates on.
Package plantuml reads a PlantUML component diagram into a model skeleton, as ArchUnit's adhereToPlantUmlDiagram reads one into rules (TODO.md, "The model from a diagram").
Package plantuml reads a PlantUML component diagram into a model skeleton, as ArchUnit's adhereToPlantUmlDiagram reads one into rules (TODO.md, "The model from a diagram").
Package protobuf reads .proto files into arch.ProtoFiles: the gRPC services they declare, and the messages whose buf.validate constraints do not compile.
Package protobuf reads .proto files into arch.ProtoFiles: the gRPC services they declare, and the messages whose buf.validate constraints do not compile.
Package sarif writes the gate's result as SARIF 2.1.0, the format code scanning reads (TODO.md, "SARIF output"), through github.com/owenrumney/go-sarif.
Package sarif writes the gate's result as SARIF 2.1.0, the format code scanning reads (TODO.md, "SARIF output"), through github.com/owenrumney/go-sarif.
Package schema generates the JSON Schema of anarch.json from the Go types that define it, so editors can offer completion and catch typos while a model is written.
Package schema generates the JSON Schema of anarch.json from the Go types that define it, so editors can offer completion and catch typos while a model is written.
Package text renders reports and gate verdicts for people, with text/tabwriter.
Package text renders reports and gate verdicts for people, with text/tabwriter.

Jump to

Keyboard shortcuts

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