oppiliappan / statix

lints and suggestions for the nix programming language
https://git.peppe.rs/languages/statix/about
MIT License
557 stars 21 forks source link

statix also checks git ref files of branches with ".nix" suffix #28

Closed tfc closed 2 years ago

tfc commented 2 years ago

i happen to have files like this in my project:

statix will scan them unless explicitly ignored and error-out because these files have nothing to do with nix, it's just branch names with a .nix suffix.

i can tell statix to ignore them using --ignore .git but it appears useful to teach statix to generally avoid .git subfolders, does this make sense?

oppiliappan commented 2 years ago

Thanks for the report! I'll add this in.

oppiliappan commented 2 years ago

The fix is on master, I'll make a release tomorrow (with a bunch of other cool changes ;). It should land in nixpkgs-unstable in a couple of days.

oppiliappan commented 2 years ago

Fixed in v0.5.0, thanks for the report!