Skip to content

Add project: pyscn#247

Open
DaisukeYoda wants to merge 1 commit intoml-tooling:mainfrom
DaisukeYoda:add-pyscn
Open

Add project: pyscn#247
DaisukeYoda wants to merge 1 commit intoml-tooling:mainfrom
DaisukeYoda:add-pyscn

Conversation

@DaisukeYoda
Copy link
Copy Markdown

Add project: pyscn

Description

pyscn is an intelligent Python code quality analyzer that performs deep structural static analysis. It uses tree-sitter for parsing, implements control-flow graph (CFG) analysis, and performs tree edit distance calculations for clone detection.

Key Features

  • CFG-based dead code detection – Finds unreachable code after exhaustive if-elif-else chains
  • Multi-algorithm clone detection (Type 1-4) – Identifies refactoring opportunities with LSH acceleration
  • Coupling metrics (CBO) – Tracks architecture quality and module dependencies
  • Cyclomatic complexity analysis – Spots functions that need breaking down
  • MCP integration – Works with AI coding assistants via Model Context Protocol

Why it belongs in Code Metrics & Complexity

pyscn goes beyond traditional complexity counting by combining CFG-based analysis, clone detection, and coupling metrics into a single tool. It fills a gap between simple linters and heavyweight analysis platforms.

Python code quality analyzer with CFG-based dead code detection,
multi-algorithm clone detection (Type 1-4), coupling metrics,
and cyclomatic complexity analysis. Built with Go and tree-sitter.
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