-
Notifications
You must be signed in to change notification settings - Fork 288
Description
I often find that I want to exclude files based on something that logically is a "type", but is not reflected in their type as known to QS—for instance, git repository folders (.git), package-manager modules and language-vm cache directories (.npm, __pycache__, etc), and similar artifacts with strong naming conventions. I'd like a third field added to the File & Folder Scanner, of filename patterns to exclude. If a folder is excluded, don't continue scanning within it either.
The simplest would be just glob matching of the filename, but even better would be to match against the relative path from the folder-scanner root if the pattern contains a slash. This would allow it to cover the use-case of "I want to scan every subfolder of this folder except one", by inputting ./IgnoredSubfolder as a pattern, without potential collateral damage if that name appears deeper in the hierarchy.