Skip to content

Releases: miguelbravo7/code-inspector

v0.2.0 — any-language metrics, dependency edges, perf, and a Claude skill

21 Jun 20:29

Choose a tag to compare

code-inspector v0.2.0 — additive over v0.1.0 (no breaking API changes).

A Go CLI and library that finds your highest-value refactoring targets by ranking code on complexity × git churn, cognitive complexity, duplication, the Maintainability Index, and the import dependency graph.

Highlights

  • Any tree-sitter language. 18 grammars bundled (Go, Python, JS/TS/JSX/TSX, Rust, Java, C/C++, C#, Ruby, PHP, Bash, Scala, CSS, HTML, JSON) plus RegisterLanguage to add any grammar — metric hints are auto-derived by introspecting each grammar's node-kind/field vocabulary.
  • Cross-language dependency graph. Generic, precision-first import resolution (unique path-suffix) in addition to the dedicated Go/Python/JS resolvers; fan-in/fan-out + cycle detection.
  • Faster, leaner. ~80% fewer allocations and 20–45% faster analysis (interned node kinds + single-pass walk + byte-keyed Halstead); single global worker pool.
  • Ships a Claude Code skill (.claude/skills/code-hotspots) that drives the tool for a first-pass code-health review and proposes prioritized, evidence-backed refactoring actions.

Install

```bash
go install github.com/miguelbravo7/code-inspector/cmd/code-inspector@v0.2.0
```
Requires cgo (a C compiler + `CGO_ENABLED=1`). See the README.