Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/workshop_mcp/dead_code_detection/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Dead code detection tools for identifying unused Python code."""

__version__ = "0.1.0"

from .detector import DeadCodeDetector, DeadCodeResult, DeadCodeSummary, detect_dead_code
from .patterns import DeadCodeCategory, DeadCodeIssue
from .usage_graph import UsageGraph, build_usage_graph

Comment on lines +1 to +8

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Dead code tool wrong path 📎 Requirement gap ✓ Correctness

• The dead code detection implementation is added under src/workshop_mcp/dead_code_detection/
  instead of the required src/workshop_mcp/tools/dead_code_detection/ location.
• This breaks the repository’s prescribed tool structure/discoverability expectations and can cause
  import/packaging inconsistencies for MCP tools.
Agent Prompt
## Issue description
The dead code detection tool code is not located in the required tool module directory (`src/workshop_mcp/tools/dead_code_detection/`).

## Issue Context
The compliance checklist mandates this directory structure for discoverability/consistency.

## Fix Focus Areas
- src/workshop_mcp/dead_code_detection/__init__.py[1-18]
- src/workshop_mcp/dead_code_detection/detector.py[1-450]
- src/workshop_mcp/dead_code_detection/patterns.py[1-57]
- src/workshop_mcp/dead_code_detection/usage_graph.py[1-99]
- src/workshop_mcp/server.py[15-20]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

__all__ = [
"DeadCodeCategory",
"DeadCodeDetector",
"DeadCodeIssue",
"DeadCodeResult",
"DeadCodeSummary",
"UsageGraph",
"build_usage_graph",
"detect_dead_code",
]
Loading