all repos — searchix @ 4197ece130242467189b39619f9e9c6b272b8474

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: fix pre-commit check exclude/ignore patterns
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 13:24:03 +0200
commit

4197ece130242467189b39619f9e9c6b272b8474

parent

027db4372e82e445c531c958c2da0f9cf6ae1e03

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M nix/pre-commit-checks.nixnix/pre-commit-checks.nix
@@ -38,15 +38,17 @@ }; 
     statix = {
       enable = true;
+      # ignore is a glob
       settings.ignore = [ "nix/overlays/*" ];
     };
     deadnix = {
       enable = true;
-      excludes = [ "nix/overlays/*" ];
+      # excludes is a regex
+      excludes = [ "nix/overlays/.*" ];
     };
     nixpkgs-fmt = {
       enable = true;
-      excludes = [ "nix/overlays/*" ];
+      excludes = [ "nix/overlays/.*" ];
     };
 
     convco.enable = true;