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

Ignore multiple files #21

Closed NobbZ closed 2 years ago

NobbZ commented 2 years ago

To get my configuration in an initial acceptable shape, I wanted to use statix and -i those files that do not need further treatment in my opinion, as I disagree with the remaining rules.

THough -i seems to be not repeatable, how to ignore more than one file?

oppiliappan commented 2 years ago

The -i flag accepts more than one glob, you can run statix like so:

statix check target_dir -i Cargo.nix '*abc.nix' 'some_other_file.nix'