Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

[Quality Layer] Code Quality & Smell Detection #20

Description

@gloomcheng

Problem

No detection of:

  • High cyclomatic complexity
  • Code duplication (beyond basic patterns)
  • Long methods/classes
  • God objects

Developer Pain Points

  • Code quality degrades over time
  • No automated refactoring suggestions
  • Manual code reviews catch issues late
  • No visibility into technical debt

Proposed Solution

Code Quality Analyzer with:

  1. Calculate complexity metrics (McCabe, Halstead)
  2. AST-based duplication detection
  3. Identify refactoring candidates
  4. Suggest design patterns

Features

  • Cyclomatic complexity calculation
  • Code duplication detection (AST comparison)
  • Long method detection (>50 lines)
  • God object detection (>10 methods)
  • Design pattern suggestions

MCP Tools

  • quality-analyze: Analyze code quality
  • quality-complexity: Calculate complexity
  • quality-duplicates: Find duplicated code
  • quality-refactor: Suggest refactorings

Priority

Medium

Effort Estimate

2 days

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlayer:analysisAnalysis Layer - static analysis & impactpriority:mediumMedium priority item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions