Skip to content

Add code-inspector#1845

Open
miguelbravo7 wants to merge 1 commit into
analysis-tools-dev:masterfrom
miguelbravo7:add-code-inspector
Open

Add code-inspector#1845
miguelbravo7 wants to merge 1 commit into
analysis-tools-dev:masterfrom
miguelbravo7:add-code-inspector

Conversation

@miguelbravo7

Copy link
Copy Markdown

Adds code-inspector — an open-source (MIT) Go CLI and library that reports code-quality metrics across many languages.

It is closest in spirit to lizard/gocyclo already in the list, but combines several metrics in one tool:

  • Cyclomatic and cognitive complexity (per function), Halstead measures, and a Maintainability Index
  • Token-normalized duplicate/clone detection
  • Import dependency graph (fan-in/fan-out + cycle detection)
  • Complexity × git-churn "hotspot" ranking to prioritize refactoring
  • Multi-language via tree-sitter (Go, Python, JS/TS, Rust, Java, C/C++, C#, Ruby, PHP, Scala, …), plus a registration API for any other grammar

Source: https://github.com/miguelbravo7/code-inspector

Added data/tools/code-inspector.yml following the existing schema (mirrors lizard.yml: name, categories, tags, license, types, source, homepage, description). Disclosure: I'm the author — happy to adjust tags/category/wording to fit the list's conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant