Skip to content

ExcludeListExtensions disables CustomIgnore functionality #17

Description

@zx8

Summary

Setting ExcludeListExtensions completely disables CustomIgnore functionality, making custom ignore files ineffective.

Reproduction Steps

  1. Create test files:
mkdir test && cd test
echo "content" >file1.txt
echo "file1.txt" >.customignore
  1. Test without ExcludeListExtensions (works):
walker := gocodewalker.NewParallelFileWalker([]string{"."}, fileQueue)
walker.CustomIgnore = []string{".customignore"}
// Result: file1.txt is ignored
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions