Skip to content

Support unused bucket and confidence filters - #3268

Merged
Widthdom merged 3 commits into
mainfrom
fix-issue3001
Jun 5, 2026
Merged

Support unused bucket and confidence filters#3268
Widthdom merged 3 commits into
mainfrom
fix-issue3001

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add --bucket and --min-confidence to cdidx unused and apply them to list and count paths.
  • Add matching MCP unused_symbols arguments: bucket and minConfidence.
  • Keep filtering based on final unused bucket/confidence classification, including exact filtered count handling.

Validation

  • dotnet build src/CodeIndex/CodeIndex.csproj -c Debug --no-restore -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Debug --no-restore -p:UseSharedCompilation=false --filter FullyQualifiedName~RunUnused
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Debug --no-restore -p:UseSharedCompilation=false --filter FullyQualifiedName~ToolsCall_UnusedSymbols
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --framework net9.0 --no-restore -p:UseSharedCompilation=false --filter FullyQualifiedName~ConsoleUiTests.PrintUsage
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --framework net9.0 --no-restore -p:UseSharedCompilation=false --filter FullyQualifiedName~McpToolContractTests
  • dotnet tools/CodeIndex.Changelog/bin/Debug/net8.0/CodeIndex.Changelog.dll check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • GitHub Actions for 926bb435d: Changelog Fragments, CodeQL, Build and Test all succeeded.
  • Codex adversarial review: no findings.

Documentation / Changelog

  • Updated USER_GUIDE.md.
  • Added changelog.d/unreleased/3001.fixed.md.

Follow-up

  • None.

Fixes #3001

@Widthdom
Widthdom marked this pull request as ready for review June 5, 2026 00:57
@Widthdom
Widthdom merged commit c4b3cd3 into main Jun 5, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3001 branch June 5, 2026 02:48
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.

unused should support bucket and confidence filters

1 participant