astro / deadnix

Scan Nix files for dead code
GNU General Public License v3.0
512 stars 13 forks source link

Update `--exclude` option to filter out entire subfolders #65

Closed yvan-sraka closed 1 year ago

yvan-sraka commented 1 year ago

Before this change, using --exclude foobar would search for the exact PATH foobar, which always resulted in false negatives. With this change, both the file ./foobar and the folder ./foobar/, including its contents, are filtered out as expected.

astro commented 1 year ago

Thank you!