nil icon indicating copy to clipboard operation
nil copied to clipboard

Discover all `.nix` files in `nil diagnostics`

Open 9999years opened this issue 1 year ago • 2 comments

Follow-up to #125.

nil diagnostics now accepts directories in addition to files as arguments. If no arguments are given, the current directory (.) is used.

The ignore crate is used to traverse the directories and discover files. This is slightly slower than find . -path '*.nix' -exec nil diagnostics {} + because it inspects .gitignore files and performs glob matching: in my tests, this branch ran nil diagnostics in nixpkgs in 6.75 seconds, compared to 6.35 seconds for the find-based solution.

9999years avatar Mar 01 '24 20:03 9999years