gocodewalker
gocodewalker copied to clipboard
ExcludeListExtensions disables CustomIgnore functionality
Summary
Setting ExcludeListExtensions completely disables CustomIgnore functionality, making custom ignore files ineffective.
Reproduction Steps
- Create test files:
mkdir test && cd test
echo "content" >file1.txt
echo "file1.txt" >.customignore
- Test without
ExcludeListExtensions(works):
walker := gocodewalker.NewParallelFileWalker([]string{"."}, fileQueue)
walker.CustomIgnore = []string{".customignore"}
// Result: file1.txt is ignored
- Test with
ExcludeListExtensions(broken):
walker := gocodewalker.NewParallelFileWalker([]string{"."}, fileQueue)
walker.ExcludeListExtensions = []string{"exe", "bin"} // Any value breaks it
walker.CustomIgnore = []string{".customignore"}
// Result: file1.txt is NOT ignored
Expected vs Actual
- Expected: Both settings should work together independently
- Actual: ExcludeListExtensions disables CustomIgnore entirely