Add an `exclude_directory_from_parse` config
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 5.6k
- Forks
- 365
- Avg merge
- 1h 25m
- Merged PRs (30d)
- 6
Description
exclude_file_regex is an inefficient way to exclude directories, and regexes are inconvenient to set up for users.
Add exclude_directory_from_parse, which accepts a case-sensitive path and normalizes it. The parse phase should check if the directory which is about to be iterated over is listed in that config.
- Warn if one of the folders didn't exclude anything
exclude_file_regex currently acts on the list of files, after the files in an (effectively excluded) directory are listed, which is inefficient
- I hope to be able to change that to also act on directories while iterating
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing exclude_file_regex handling and the parse phase where directories are iterated. Add the normalized, case-sensitive directory configuration, skip matching directories before iteration, and warn when configured folders exclude nothing; verify the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100