[{"data":1,"prerenderedAt":790},["ShallowReactive",2],{"navigation_docs":3,"-tools-find-unused-code":340,"-tools-find-unused-code-surround":785},[4,30,55,254,271,294,311],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","/getting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"Introduction","/getting-started/introduction","1.getting-started/1.introduction",{"title":14,"path":15,"stem":16},"Platform","/getting-started/platforms","1.getting-started/2.platforms",{"title":18,"path":19,"stem":20},"Installation","/getting-started/installation","1.getting-started/3.installation",{"title":22,"path":23,"stem":24},"Licensing","/getting-started/licensing","1.getting-started/4.licensing",{"title":26,"path":27,"stem":28},"Quick Start","/getting-started/quick-start","1.getting-started/5.quick-start",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Features","/features","2.features",[35,39,43,47,51],{"title":36,"path":37,"stem":38},"Features Overview","/features/overview","2.features/1.overview",{"title":40,"path":41,"stem":42},"Code Quality Metrics","/features/code-quality-metrics","2.features/2.code-quality-metrics",{"title":44,"path":45,"stem":46},"Technical Debt Analysis","/features/technical-debt-analysis","2.features/3.technical-debt-analysis",{"title":48,"path":49,"stem":50},"Code Search","/features/code-search","2.features/4.code-search",{"title":52,"path":53,"stem":54},"Reports","/features/reports","2.features/5.reports",{"title":56,"path":57,"stem":58,"children":59,"page":29},"Tools","/tools","3.tools",[60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,142,148,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250],{"title":61,"path":62,"stem":63},"Tools Overview","/tools/overview","3.tools/1.overview",{"title":65,"path":66,"stem":67},"stellarion_get_symbol_info","/tools/get-symbol-info","3.tools/10.get-symbol-info",{"title":69,"path":70,"stem":71},"stellarion_symbol_search","/tools/symbol-search","3.tools/11.symbol-search",{"title":73,"path":74,"stem":75},"stellarion_get_callers","/tools/get-callers","3.tools/12.get-callers",{"title":77,"path":78,"stem":79},"stellarion_get_callees","/tools/get-callees","3.tools/13.get-callees",{"title":81,"path":82,"stem":83},"stellarion_get_detailed_symbol","/tools/get-detailed-symbol","3.tools/14.get-detailed-symbol",{"title":85,"path":86,"stem":87},"stellarion_find_by_imports","/tools/find-by-imports","3.tools/15.find-by-imports",{"title":89,"path":90,"stem":91},"stellarion_find_by_signature","/tools/find-by-signature","3.tools/16.find-by-signature",{"title":93,"path":94,"stem":95},"stellarion_find_entry_points","/tools/find-entry-points","3.tools/17.find-entry-points",{"title":97,"path":98,"stem":99},"stellarion_find_implementors","/tools/find-implementors","3.tools/18.find-implementors",{"title":101,"path":102,"stem":103},"stellarion_traverse_graph","/tools/traverse-graph","3.tools/19.traverse-graph",{"title":105,"path":106,"stem":107},"stellarion_get_ai_context","/tools/get-ai-context","3.tools/2.get-ai-context",{"title":109,"path":110,"stem":111},"stellarion_memory_store","/tools/memory-store","3.tools/20.memory-store",{"title":113,"path":114,"stem":115},"stellarion_memory_search","/tools/memory-search","3.tools/21.memory-search",{"title":117,"path":118,"stem":119},"stellarion_memory_get","/tools/memory-get","3.tools/22.memory-get",{"title":121,"path":122,"stem":123},"stellarion_memory_context","/tools/memory-context","3.tools/23.memory-context",{"title":125,"path":126,"stem":127},"stellarion_memory_invalidate","/tools/memory-invalidate","3.tools/24.memory-invalidate",{"title":129,"path":130,"stem":131},"stellarion_memory_list","/tools/memory-list","3.tools/25.memory-list",{"title":133,"path":134,"stem":135},"stellarion_memory_stats","/tools/memory-stats","3.tools/26.memory-stats",{"title":137,"path":138,"stem":139,"children":140},"stellarion_reindex_workspace","/tools/reindex-workspace","3.tools/27.reindex-workspace",[141],{"title":137,"path":138,"stem":139},{"title":143,"path":144,"stem":145,"children":146},"stellarion_index_files","/tools/index-files","3.tools/28.index-files",[147],{"title":143,"path":144,"stem":145},{"title":149,"path":150,"stem":151,"children":152},"stellarion_index_directory","/tools/index-directory","3.tools/29.index-directory",[153],{"title":149,"path":150,"stem":151},{"title":155,"path":156,"stem":157},"stellarion_get_edit_context","/tools/get-edit-context","3.tools/3.get-edit-context",{"title":159,"path":160,"stem":161},"stellarion_scan_security [Pro]","/tools/scan-security","3.tools/30.scan-security",{"title":163,"path":164,"stem":165},"stellarion_analyze_coupling [Pro]","/tools/analyze-coupling","3.tools/31.analyze-coupling",{"title":167,"path":168,"stem":169},"stellarion_find_unused_code [Pro]","/tools/find-unused-code","3.tools/32.find-unused-code",{"title":171,"path":172,"stem":173},"stellarion_codebase_health [Pro]","/tools/codebase-health","3.tools/33.codebase-health",{"title":175,"path":176,"stem":177},"stellarion_tech_debt_report [Pro]","/tools/tech-debt-report","3.tools/34.tech-debt-report",{"title":179,"path":180,"stem":181},"stellarion_assess_change_risk [Pro]","/tools/assess-change-risk","3.tools/35.assess-change-risk",{"title":183,"path":184,"stem":185},"stellarion_dependency_drift [Pro]","/tools/dependency-drift","3.tools/36.dependency-drift",{"title":187,"path":188,"stem":189},"stellarion_api_surface [Pro]","/tools/api-surface","3.tools/37.api-surface",{"title":191,"path":192,"stem":193},"stellarion_find_duplicates [Pro]","/tools/find-duplicates","3.tools/38.find-duplicates",{"title":195,"path":196,"stem":197},"stellarion_find_similar [Pro]","/tools/find-similar","3.tools/39.find-similar",{"title":199,"path":200,"stem":201},"stellarion_get_curated_context","/tools/get-curated-context","3.tools/4.get-curated-context",{"title":203,"path":204,"stem":205},"stellarion_cluster_symbols [Pro]","/tools/cluster-symbols","3.tools/40.cluster-symbols",{"title":207,"path":208,"stem":209},"stellarion_compare_symbols [Pro]","/tools/compare-symbols","3.tools/41.compare-symbols",{"title":211,"path":212,"stem":213},"stellarion_mine_git_history [Pro]","/tools/mine-git-history","3.tools/42.mine-git-history",{"title":215,"path":216,"stem":217},"stellarion_mine_git_history_for_file [Pro]","/tools/mine-git-history-for-file","3.tools/43.mine-git-history-for-file",{"title":219,"path":220,"stem":221},"stellarion_search_git_history [Pro]","/tools/search-git-history","3.tools/44.search-git-history",{"title":223,"path":224,"stem":225},"stellarion_find_eda_calls [Pro · EDA]","/tools/find-eda-calls","3.tools/45.find-eda-calls",{"title":227,"path":228,"stem":229},"stellarion_get_flow_graph [Pro · EDA]","/tools/get-flow-graph","3.tools/46.get-flow-graph",{"title":231,"path":232,"stem":233},"stellarion_find_duplicate_constraints [Pro · EDA]","/tools/find-duplicate-constraints","3.tools/47.find-duplicate-constraints",{"title":235,"path":236,"stem":237},"stellarion_analyze_impact","/tools/analyze-impact","3.tools/5.analyze-impact",{"title":239,"path":240,"stem":241},"stellarion_analyze_complexity","/tools/analyze-complexity","3.tools/6.analyze-complexity",{"title":243,"path":244,"stem":245},"stellarion_get_call_graph","/tools/get-call-graph","3.tools/7.get-call-graph",{"title":247,"path":248,"stem":249},"stellarion_get_dependency_graph","/tools/get-dependency-graph","3.tools/8.get-dependency-graph",{"title":251,"path":252,"stem":253},"stellarion_find_related_tests","/tools/find-related-tests","3.tools/9.find-related-tests",{"title":255,"path":256,"stem":257,"children":258,"page":29},"Integrations","/integrations","4.integrations",[259,263,267],{"title":260,"path":261,"stem":262},"Claude Code","/integrations/claude-code","4.integrations/1.claude-code",{"title":264,"path":265,"stem":266},"Cursor","/integrations/cursor","4.integrations/2.cursor",{"title":268,"path":269,"stem":270},"Other MCP Clients","/integrations/other-mcp-clients","4.integrations/3.other-mcp-clients",{"title":272,"path":273,"stem":274,"children":275,"page":29},"Guides","/guides","5.guides",[276,282,286,290],{"title":277,"path":278,"stem":279,"children":280},"Indexing Your Project","/guides/indexing-your-project","5.guides/1.indexing-your-project",[281],{"title":277,"path":278,"stem":279},{"title":283,"path":284,"stem":285},"Improving Code Quality","/guides/improving-code-quality","5.guides/2.improving-code-quality",{"title":287,"path":288,"stem":289},"Reducing Technical Debt","/guides/reducing-technical-debt","5.guides/3.reducing-technical-debt",{"title":291,"path":292,"stem":293},"Slash Commands","/guides/slash-commands","5.guides/4.slash-commands",{"title":295,"path":296,"stem":297,"children":298,"page":29},"Reference","/reference","6.reference",[299,303,307],{"title":300,"path":301,"stem":302},"CLI Commands","/reference/cli-commands","6.reference/1.cli-commands",{"title":304,"path":305,"stem":306},"Environment Variables","/reference/environment-variables","6.reference/2.environment-variables",{"title":308,"path":309,"stem":310},"Troubleshooting","/reference/troubleshooting","6.reference/3.troubleshooting",{"title":312,"path":313,"stem":314,"children":315,"page":29},"Quality","/quality","7.quality",[316,320,324,328,332,336],{"title":317,"path":318,"stem":319},"Code Quality Metrics Overview","/quality/stellarion_quality_metrics","7.quality/1.Stellarion_Quality_Metrics",{"title":321,"path":322,"stem":323},"Cognitive Complexity","/quality/cognitive-complexity","7.quality/2.cognitive-complexity",{"title":325,"path":326,"stem":327},"Cyclomatic Complexity","/quality/cyclomatic-complexity","7.quality/3.cyclomatic-complexity",{"title":329,"path":330,"stem":331},"Maintainability Index","/quality/maintainability","7.quality/4.maintainability",{"title":333,"path":334,"stem":335},"Circular Dependencies","/quality/circular-dependencies","7.quality/5.circular-dependencies",{"title":337,"path":338,"stem":339},"Unused Code Detection","/quality/unused-code","7.quality/6.unused-code",{"id":341,"title":167,"body":342,"description":778,"extension":779,"links":780,"meta":781,"navigation":782,"path":168,"seo":783,"stem":169,"__hash__":784},"docs/3.tools/32.find-unused-code.md",{"type":343,"value":344,"toc":764},"minimark",[345,358,362,367,383,387,523,527,532,542,545,549,555,566,570,576,583,587,593,602,606,609,657,660,706,710],[346,347,349,350,357],"callout",{"type":348},"info","This is a Pro tool. Requires a ",[351,352,356],"a",{"href":353,"rel":354},"https://stellarion.ai/pro",[355],"nofollow","Stellarion Pro license",". A 180-day free trial starts automatically.",[359,360,361],"p",{},"Finds functions, classes, and exports that have no callers or consumers in the codebase. Uses confidence scoring to reduce false positives and framework-aware heuristics to avoid flagging convention-based code (e.g., React lifecycle methods, serialization hooks, test fixtures).",[363,364,366],"h2",{"id":365},"when-to-use","When to Use",[368,369,370,374,377,380],"ul",{},[371,372,373],"li",{},"During cleanup sprints to remove dead code safely",[371,375,376],{},"Before a major refactor to identify code that can be deleted outright",[371,378,379],{},"To reduce bundle size by finding unused exports",[371,381,382],{},"To understand how much of a module is actually exercised",[363,384,386],{"id":385},"parameters","Parameters",[388,389,390,412],"table",{},[391,392,393],"thead",{},[394,395,396,400,403,406,409],"tr",{},[397,398,399],"th",{},"Parameter",[397,401,402],{},"Type",[397,404,405],{},"Required",[397,407,408],{},"Default",[397,410,411],{},"Description",[413,414,415,436,465,485,505],"tbody",{},[394,416,417,424,427,430,433],{},[418,419,420],"td",{},[421,422,423],"code",{},"uri",[418,425,426],{},"string",[418,428,429],{},"No",[418,431,432],{},"workspace",[418,434,435],{},"File or directory to scope the search",[394,437,438,443,446,448,453],{},[418,439,440],{},[421,441,442],{},"scope",[418,444,445],{},"enum",[418,447,429],{},[418,449,450],{},[421,451,452],{},"file",[418,454,455,456,458,459,462,463],{},"Scope of analysis: ",[421,457,452],{},", ",[421,460,461],{},"module",", or ",[421,464,432],{},[394,466,467,472,475,477,482],{},[418,468,469],{},[421,470,471],{},"includeTests",[418,473,474],{},"boolean",[418,476,429],{},[418,478,479],{},[421,480,481],{},"false",[418,483,484],{},"Include test files in the analysis",[394,486,487,492,495,497,502],{},[418,488,489],{},[421,490,491],{},"confidence",[418,493,494],{},"number",[418,496,429],{},[418,498,499],{},[421,500,501],{},"0.7",[418,503,504],{},"Minimum confidence threshold (0.0 to 1.0)",[394,506,507,512,514,516,520],{},[418,508,509],{},[421,510,511],{},"summary",[418,513,474],{},[418,515,429],{},[418,517,518],{},[421,519,481],{},[418,521,522],{},"Return counts and top items instead of full list",[363,524,526],{"id":525},"examples","Examples",[528,529,531],"h3",{"id":530},"find-unused-code-in-a-file","Find unused code in a file",[533,534,539],"pre",{"className":535,"code":537,"language":538},[536],"language-text","Is there any dead code in src/utils/helpers.ts?\n","text",[421,540,537],{"__ignoreMap":541},"",[359,543,544],{},"Scans the file and reports functions or exports with no references elsewhere in the project.",[528,546,548],{"id":547},"workspace-wide-dead-code-scan","Workspace-wide dead code scan",[533,550,553],{"className":551,"code":552,"language":538},[536],"Find all unused functions across the entire project. Only show high-confidence results.\n",[421,554,552],{"__ignoreMap":541},[359,556,557,558,561,562,565],{},"Uses ",[421,559,560],{},"scope: \"workspace\""," and ",[421,563,564],{},"confidence: 0.9"," for a thorough sweep with minimal false positives.",[528,567,569],{"id":568},"include-test-utilities","Include test utilities",[533,571,574],{"className":572,"code":573,"language":538},[536],"Find unused code in src/testing/ — include test files in the analysis.\n",[421,575,573],{"__ignoreMap":541},[359,577,578,579,582],{},"Sets ",[421,580,581],{},"includeTests: true"," to check whether test helpers and fixtures are actually used by test files.",[528,584,586],{"id":585},"module-level-summary","Module-level summary",[533,588,591],{"className":589,"code":590,"language":538},[536],"Give me a summary of unused code in the services/ module.\n",[421,592,590],{"__ignoreMap":541},[359,594,557,595,561,598,601],{},[421,596,597],{},"scope: \"module\"",[421,599,600],{},"summary: true"," for a quick count of dead code by type.",[363,603,605],{"id":604},"output-format","Output Format",[359,607,608],{},"Each finding includes:",[368,610,611,618,624,645,651],{},[371,612,613,617],{},[614,615,616],"strong",{},"Symbol name"," — the function, class, or export that appears unused",[371,619,620,623],{},[614,621,622],{},"File path and line number"," — where it is defined",[371,625,626,629,630,458,633,458,636,458,639,462,642],{},[614,627,628],{},"Kind"," — ",[421,631,632],{},"function",[421,634,635],{},"class",[421,637,638],{},"method",[421,640,641],{},"constant",[421,643,644],{},"export",[371,646,647,650],{},[614,648,649],{},"Confidence"," — score from 0.0 to 1.0 indicating how likely it is truly unused",[371,652,653,656],{},[614,654,655],{},"Reason"," — why it was flagged (e.g., \"no callers found\", \"exported but never imported\")",[359,658,659],{},"Confidence scoring:",[388,661,662,672],{},[391,663,664],{},[394,665,666,669],{},[397,667,668],{},"Score",[397,670,671],{},"Meaning",[413,673,674,682,690,698],{},[394,675,676,679],{},[418,677,678],{},"0.9–1.0",[418,680,681],{},"Almost certainly unused — no references anywhere",[394,683,684,687],{},[418,685,686],{},"0.7–0.9",[418,688,689],{},"Likely unused — may have dynamic references",[394,691,692,695],{},[418,693,694],{},"0.5–0.7",[418,696,697],{},"Possibly unused — framework conventions may apply",[394,699,700,703],{},[418,701,702],{},"\u003C 0.5",[418,704,705],{},"Uncertain — probably referenced dynamically",[363,707,709],{"id":708},"tips","Tips",[368,711,712,719,726,734,754,761],{},[371,713,714,715,718],{},"Start with ",[421,716,717],{},"confidence: 0.8"," or higher to focus on safe deletions",[371,720,721,722,725],{},"Lower to ",[421,723,724],{},"0.5"," when you want a broader view and are willing to manually verify",[371,727,728,729,731,732],{},"The ",[421,730,432],{}," scope checks cross-file references — more accurate but slower than ",[421,733,452],{},[371,735,736,737,458,740,458,743,458,746,749,750,753],{},"Framework-aware heuristics recognize patterns like ",[421,738,739],{},"componentDidMount",[421,741,742],{},"serialize",[421,744,745],{},"__init__",[421,747,748],{},"main",", and ",[421,751,752],{},"#[test]"," — these are not flagged as unused",[371,755,756,757,760],{},"Combine with ",[421,758,759],{},"stellarion_api_surface"," to find unused exports specifically",[371,762,763],{},"Re-run after deleting code — removing one function may make others unused too",{"title":541,"searchDepth":765,"depth":765,"links":766},2,[767,768,769,776,777],{"id":365,"depth":765,"text":366},{"id":385,"depth":765,"text":386},{"id":525,"depth":765,"text":526,"children":770},[771,773,774,775],{"id":530,"depth":772,"text":531},3,{"id":547,"depth":772,"text":548},{"id":568,"depth":772,"text":569},{"id":585,"depth":772,"text":586},{"id":604,"depth":765,"text":605},{"id":708,"depth":765,"text":709},"Detect dead code with confidence scoring and framework-aware heuristics","md",null,{},true,{"title":167,"description":778},"gz9ocW5fHibU7XHgjgna3Ztqm-HSmg4yOsCs0JSRiSg",[786,788],{"title":163,"path":164,"stem":165,"description":787,"children":-1},"Measure module coupling with afferent, efferent, and instability metrics",{"title":171,"path":172,"stem":173,"description":789,"children":-1},"Single-call health dashboard with size metrics, complexity, and a letter grade",1777612938605]