astro / deadnix

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

feature request: exclude parameter #53

Closed phip1611 closed 1 year ago

phip1611 commented 1 year ago

It would be convenient to have the following parameter: --exclude foobar.nix --exclude foo/**/*bar.nix and possibly also a --enable|disable-default-excludes. For example, source.nix by nix is a good candidate for a default exclusion.

astro commented 1 year ago

Basic functionality is here!

A PR adding glob pattern support would be welcome.

I don't like hardcoding default paths, and I can't think of any sensible source from which to obtain them.