codeint measures the Software entropy of a codebase (Erosion, Cognitive complexity, Test gap, Duplication, Verbosity, Import cycles, Import boundaries, Orphan files, 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, and SQL.
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
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, clone lines, or both. 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
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. 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
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, 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
Budget: The highest value a Metric may reach in one Source set before codeint reports a failure. Avoid: limit, threshold, quota
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
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
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 the lines of every Clone group that Duplication finds.
- Test gap reads test execution from a Coverage report; codeint never runs tests.
- Test gap covers the Production Source set only.
- 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.
- A Budget applies to one Metric in one Source set.
- Every source file belongs to exactly one Source set.
- "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.