Lints and suggestions for the Nix programming language
at main 18 lines 322 B view raw
1mod _utils; 2 3use macros::generate_tests; 4 5generate_tests! { 6 rule: empty_pattern, 7 expressions: [ 8 // match 9 "({ ... }: 42)", 10 "({ ... } @ inputs: inputs)", 11 12 // don't match 13 "({ a, ... }: a)", 14 15 // nixos module, don't match 16 "({ ... }: { imports = []; })", 17 ], 18}