codeint measures the Software entropy of a codebase (Erosion, Cognitive complexity, Test gap, Duplication, Verbosity, Import cycles, Import boundaries, Orphan files, File size, and Dependency hygiene) and reports Hazards next to Software entropy, in any language that has a Language plugin. 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, Python, Go, SQL, and Shell.
Software entropy: The maintainability cost carried in the shape of code: duplication, needless verbosity, complexity concentrated in a few large functions, and weight that tests do not reach. Avoid: structural debt, tech debt, code quality
Metric: One named measurement of a codebase, reported on its own and never blended with other Metrics into a combined score. Avoid: score, index, grade, rating
Metric version: A positive integer that identifies the calculation rules of one Metric and increases whenever those rules change. Avoid: formula revision, schema version
Erosion: The share of total Function mass held by functions whose cyclomatic complexity is greater than 10. Avoid: complexity score, hotspot ratio
Function mass: The weight of one function, equal to its cyclomatic complexity times the square root of its source lines. Avoid: function weight, function size
Cognitive complexity: The share of total nesting-weighted cognitive complexity held by functions whose cognitive complexity is greater than 15. Avoid: readability score, nesting score
Test gap: The share of total Function mass that tests do not execute. Each function adds its Function mass times the share of it that the Coverage report shows as not executed. Avoid: CRAP, change risk, coverage score
Coverage report: A file, written by the user's own test run, that records which source lines the tests executed. Avoid: coverage data, test report
Verbosity: The share of source lines that are Flagged lines. Avoid: bloat, wordiness
Flagged line: A source line that matches a verbose-code pattern of the source language. Avoid: lint hit, violation, smell
Hazards: The share of source lines that are Hazard lines. Avoid: lint score, defect rate
Hazard line: A source line that matches a pattern of the source language that is likely to cause wrong results, slow execution, or a security exposure. Avoid: violation, vulnerability, anti-pattern
Duplication: The share of source lines that belong to at least one Clone group. Avoid: copy-paste, redundancy
Clone group: Two or more code fragments with the same token sequence once identifiers and literals are normalized. The fragments leave out import and export declarations, and use enough different tokens to be logic rather than a list of the same shape. Avoid: duplicate, copy
Clone family: Three or more overlapping exact or near-clone fragments clustered together across locations in a codebase. Avoid: duplicate cluster, copy group
Evaluation suite: The repeatable accuracy, performance, memory, and Reference range calibration harness built from owned synthetic planted-defect suites and a pinned manifest of public repositories measured only in ephemeral scratch folders outside codeint. Avoid: benchmark pack, test corpus, validation set
Import cycle: A group of modules in which every module can reach every other module through runtime imports. The Import cycles Metric is the share of modules that belong to at least one Import cycle. Avoid: circular dependency, dependency loop
Import boundary: A directional rule or public-file constraint governing which architectural zones may import modules from another zone or which third-party external packages a zone may import. Avoid: layer rule, module fence
Orphan file: 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: The set of three independent Metrics comparing package manifests against imported external packages: unused dependencies, unlisted dependencies, and dev dependencies imported in Production. Avoid: package audit, dependency audit
File size: The share of Production source lines that lie beyond the File size limit in their file. A file adds its source lines above the File size limit; a file at or below the limit adds nothing. Avoid: file length, line count, bloat
File size limit: The most source lines one file may hold before its further lines count toward File size, set by the user. Avoid: max lines, line budget, file threshold
Oversized file: A Production source file that holds more source lines than the File size limit. Avoid: large file, big file, god file
Unresolved import: A runtime import that the Language plugin could not match to a repository file or classify as external. Avoid: broken import, missing import
Workspace package:
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: One located piece of evidence behind a Metric value, such as an eroded function, an untested function, an Oversized file, a Clone group, a Flagged line, a Hazard line, or an Import cycle. Avoid: issue, violation, warning, hotspot
Reference range: The published typical value of a Metric for a class of codebases in one language family, shown next to a measured value for context. Avoid: benchmark, target, threshold
Source set: One of four groups a source file belongs to: Production, Test, Generated, or Vendored. Avoid: file kind, file category
Tooling file:
A Production source file that builds, tests, lints, or configures the repository rather than shipping as application or library runtime code, classified either by its Language plugin (is-tooling-file) or by a universal repository tooling folder (.github/, scripts/, docs/, examples/, tools/, benches/).
Avoid: build script, config file, helper script, non-runtime file
Budget: The highest value a Metric may reach in one Source set before codeint reports a failure. Avoid: limit, threshold, quota
Ratchet:
A repository file (.codeint/ratchet.json by default) that records each Metric's ceiling ratio alongside its Metric version so whole-repository checks fail if Software entropy or Hazards rise above the recorded ceiling.
Avoid: lockfile, snapshot, baseline file
Baseline:
A committed list of existing Findings in .codeint/baseline.json that codeint check hides and removes permanently as those Findings are fixed.
Avoid: ignore list, suppression file, debt file
Regression: An increase in a Metric, from the merge-base of a base Git ref to the code under measurement, that exceeds the allowed limit. Avoid: degradation, drift
Plugin: A unit that extends codeint with either support for one source language or one Metric. Avoid: extension, add-on, provider
Code model: The language-neutral description of a codebase that Language plugins produce, codeint completes with Coverage report facts, and Metric plugins read. Avoid: AST, IR, inventory, syntax tree
Language plugin: A Plugin that owns every rule specific to one language family and lowers its source files into the Code model. Avoid: parser plugin, language adapter, language provider
Conformance runner:
The built-in codeint plugin test command that loads one Wasm Plugin through the Plugin host and checks it against the Plugin contract, printing each violated rule with a fix hint.
Avoid: plugin linter, plugin validator, plugin test suite
Compiled plugin cache:
The plugins-compiled folder of the result cache, where codeint keeps each Wasm Plugin it has compiled, so a later run loads it instead of compiling it again.
Avoid: module cache, wasm cache, plugin cache
Dialect: One variant of a language that its Language plugin reads with different rules, such as PostgreSQL or SQLite within SQL. Avoid: flavor, variant, engine
Framework profile: A package-level rule set inside a Language plugin that adds framework detection, convention entry points, framework-generated Source set paths, fallback import hints, and optional Reference ranges while keeping per-file reading framework-blind. Avoid: framework plugin, preset, adapter
Metric plugin: A Plugin that computes one Metric from the Code model alone, without knowing the source language. Avoid: analyzer, detector, rule
- A Language plugin supports exactly one language family.
- A language family may have several Dialects; one Language plugin reads them all.
- A Metric plugin works on every language that has a Language plugin.
- A Metric plugin computes exactly one Metric.
- Every Metric except Hazards measures Software entropy.
- Verbosity counts Flagged lines only and is independent of Duplication.
- Test gap reads test execution from a Coverage report; codeint never runs tests.
- Test gap covers the Production Source set only.
- File size covers the Production Source set only, and codeint measures it only when the user sets a File size limit.
- A Language plugin may report Hazard lines; Hazards counts them without knowing the language.
- A Metric may have one or more Reference ranges, each for one language family.
- Everything that differs between languages belongs to a Language plugin: decision points, imports, workspaces, Source set rules, Flagged line rules, and Hazard line rules.
- A Metric value is backed by zero or more Findings.
- Every Metric carries a positive integer Metric version that increases whenever its calculation rules change.
- A Budget applies to one Metric in one Source set.
- A Ratchet stores one ceiling and Metric version per measured Metric and applies to whole-repository runs only.
- A Baseline stores the Finding identifiers and Metric version of each measured Metric; a Budget applies to the Findings that the Baseline does not hide.
- Every source file belongs to exactly one Source set.
- A Tooling file stays in the Production Source set for all Production Metrics and Hazards except Orphan files and Dependency hygiene dev-in-production checks.
Listing a Tooling file under
entry_pointsoverrides the Orphan files exclusion (notdev_in_production_dependencies).
- "plugin" and "extension" were both used for the same idea. Resolved: Plugin is the term; "extension" is avoided.
- "score" was used for both a single Metric value and a blended index. Resolved: codeint reports Metrics only; it has no blended score.