diff --git a/.rules b/.rules index b2afedc8..49180b1c 100644 --- a/.rules +++ b/.rules @@ -1,7 +1,7 @@ # Agent guidance codeint is a command-line tool that measures the Software entropy of a codebase, in any language that has a Language plugin, so that developers who work with coding agents see it grow before it compounds. -Built-in Language plugins cover TypeScript/JavaScript/Vue/Svelte, Rust, PHP, Dart, and Python. +Built-in Language plugins cover TypeScript/JavaScript/Vue/Svelte, Rust, PHP, Dart, Python, and Go. Kit: avidianity/factory v0.4.0, bootstrapped 2026-11-21. Review mode: Never ([ADR 0001](docs/adr/0001-review-mode-never.md)). diff --git a/Cargo.lock b/Cargo.lock index aef3c70d..b7fb1e9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -286,6 +286,7 @@ dependencies = [ "codeint-config", "codeint-git", "codeint-lang-dart", + "codeint-lang-go", "codeint-lang-php", "codeint-lang-python", "codeint-lang-rust", @@ -338,6 +339,13 @@ dependencies = [ "serde-saphyr", ] +[[package]] +name = "codeint-lang-go" +version = "0.6.0" +dependencies = [ + "codeint-model", +] + [[package]] name = "codeint-lang-php" version = "0.6.0" @@ -407,6 +415,7 @@ version = "0.6.0" dependencies = [ "codeint-config", "codeint-lang-dart", + "codeint-lang-go", "codeint-lang-php", "codeint-lang-python", "codeint-lang-rust", diff --git a/Cargo.toml b/Cargo.toml index 17f9603c..c4a4f3b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ clap = { version = "=4.6.9", features = ["derive"] } codeint-config = { path = "crates/config" } codeint-git = { path = "crates/git" } codeint-lang-dart = { path = "plugins/languages/dart" } +codeint-lang-go = { path = "plugins/languages/go" } codeint-lang-php = { path = "plugins/languages/php" } codeint-lang-python = { path = "plugins/languages/python" } codeint-lang-rust = { path = "plugins/languages/rust" } diff --git a/GLOSSARY.md b/GLOSSARY.md index 5b7ec03b..5cd215d7 100644 --- a/GLOSSARY.md +++ b/GLOSSARY.md @@ -2,7 +2,7 @@ codeint measures the Software entropy of a codebase, in any language that has a Language plugin: duplication, needless verbosity, and complexity concentrated in a few large functions. It is for developers whose code is increasingly written by coding agents, so they see Software entropy grow before it compounds. -Built-in Language plugins cover TypeScript/JavaScript/Vue/Svelte, Rust, PHP, Dart, and Python. +Built-in Language plugins cover TypeScript/JavaScript/Vue/Svelte, Rust, PHP, Dart, Python, and Go. ## Language @@ -76,7 +76,7 @@ A directional rule or public-file constraint governing which architectural zones _Avoid_: layer rule, module fence **Orphan file**: -A Production source file unreachable through runtime imports from any manifest-declared, program-start, or configured entry point, classified as unreferenced or test-only. +A Production source file unreachable through runtime imports from any entry point, classified as unreferenced or test-only. _Avoid_: dead file, unused file **Dependency hygiene**: @@ -88,7 +88,7 @@ A runtime import that the Language plugin could not match to a repository file o _Avoid_: broken import, missing import **Workspace package**: -A package declared by a repository workspace, measured on its own alongside the repository total. +A package declared by a repository workspace or by a module manifest such as `go.mod`, measured on its own alongside the repository total. _Avoid_: subpackage, member package, workspace member **Finding**: diff --git a/README.md b/README.md index 74bdaae0..1bf7c7b1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Each pull request can pass tests and linters while quietly adding copied blocks, Over dozens of changes, that structural drag compounds until both humans and agents slow down. codeint measures **Software entropy** directly from the shape of your source code so you see it grow before it compounds. -It ships with five built-in Language plugins covering TypeScript/JavaScript (including React `.jsx`/`.tsx`, Vue, and Svelte `