Loading...
Loading...
Find orphan functions, dangling imports, and dead code via GitNexus CLI (npx gitnexus@latest). CLI ONLY - NO MCP server exists, never use readMcpResource with gitnexus:// URIs. TRIGGERS - dead code, orphan functions, unused imports, dangling references, unreachable code.
npx skill4agent add terrylica/cc-skills dead-codeCLI ONLY — no MCP server exists. Never usewithreadMcpResourceURIs.gitnexus://
quality-tools:dead-code-detectornpx gitnexus@latest status/gitnexus-tools:reindexnpx gitnexus@latest cypher "MATCH (f:Function) WHERE NOT EXISTS { MATCH ()-[:CALLS]->(f) } AND NOT EXISTS { MATCH ()-[:STEP_IN_PROCESS]->(f) } RETURN f.name, f.file, f.line ORDER BY f.file LIMIT 50"npx gitnexus@latest cypher "MATCH (a)-[r:IMPORTS]->(b) WHERE r.confidence < 0.5 RETURN a.name, b.name, r.confidence, a.file ORDER BY r.confidence LIMIT 30"npx gitnexus@latest cypher "MATCH (f:Function) WHERE NOT EXISTS { MATCH ()-[:CALLS]->(f) } AND NOT EXISTS { MATCH ()-[:STEP_IN_PROCESS]->(f) } AND NOT f.name STARTS WITH '_' AND NOT f.name STARTS WITH 'test_' RETURN f.name, f.file, f.line ORDER BY f.file LIMIT 50"npx gitnexus@latest cypher "MATCH (f:File) WHERE NOT EXISTS { MATCH (f)-[:IMPORTS]->() } AND NOT EXISTS { MATCH ()-[:IMPORTS]->(f) } RETURN f.path ORDER BY f.path LIMIT 30"**/test_***/tests/***/*_test.*__init__maincli__main___## Dead Code Report
### Orphan Functions (N found)
| Function | File | Line |
|----------|------|------|
| ... | ... | ... |
### Dangling Imports (N found)
| Source | Target | Confidence |
|--------|--------|------------|
| ... | ... | ... |
### Isolated Files (N found)
- path/to/file.py
- ...
### Summary
- Total orphans: N
- Total dangling: N
- Total isolated: Nquality-tools:dead-code-detector