Skip to content

codopsy v1.0.0

Choose a tag to compare

@O6lvl4 O6lvl4 released this 10 Mar 05:58
· 44 commits to main since this release

codopsy v1.0.0

AST-level code quality analyzer for 19 languages.

Supported Languages

TypeScript, TSX, JavaScript, Rust, Go, Python, C, C++, Java, Ruby, C#, PHP, Scala, Haskell, Bash, HTML, CSS, JSON, OCaml

Features

  • Cyclomatic & cognitive complexity analysis per function
  • Language-specific lint rules — JS/TS: 11 rules, Rust: 6 rules
  • Threshold rules for all languages (max-lines, max-depth, max-params, max-complexity)
  • A–F quality scoring (complexity 35% + issues 40% + structure 25%)
  • Baseline tracking for quality degradation detection
  • Hotspot detection — complexity × git churn
  • Parallel analysis via rayon
  • Configurable via .codopsyrc.json

Install

cargo install --git https://github.com/O6lvl4/codopsy.git

Quick Start

codopsy analyze ./src          # Analyze a project
codopsy analyze ./src -v       # Verbose per-file output
codopsy analyze ./src --hotspots  # Show complexity hotspots
codopsy init                   # Generate .codopsyrc.json