fix: index.extra_ignores is parsed but never applied by the walker #61
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: a1x dogfood session (external agent) on a 235-project .NET repo.
Symptom
Setting
extra_ignores = ["obj/", "bin/", ...]in.code-index.tomlhas no effect — the walker ingests those paths anyway, and startup logs nothing about ignores, so the operator cannot tell it was a no-op.Root cause
IndexConfig.extra_ignores(crates/indexer/src/config.rs:53) is parsed into the struct but no code ever reads it.walker::walk(root)andwalker::Coverage::new(root)build their filter solely fromskip_set_for(root)+.code-index-ignore+ standard gitignore. Whole-workspace grep found the field only in the struct definition and thecode-index inittemplate.Fix (implemented, pending commit)
walker::extra_ignores_matcher(root)loads the root manifest and compilesindex.extra_ignores(gitignore syntax) into aGitignore.walk()(per-entry — prunes ignored dirs) andCoverage::permanently_excluded(viamatched_path_or_any_parents) from the ONE shared helper, so the enumerator and the coverage oracle cannot drift (guarded by the existing walk↔coverage agreement test).config::log_effective_ignores(root, cfg)logs the effective ignore set (skip dirs + extra_ignores) at daemon / mcp / cli-index startup, alongside the size-cap line.walker::tests::extra_ignores_applied_in_walk_and_coverage..code-index-ignorealready worked as a per-directory override; this makes the documented TOML field work too.