about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 13:24:03 +0200
committerAlan Pearce2024-05-22 13:24:03 +0200
commit4197ece130242467189b39619f9e9c6b272b8474 (patch)
tree34c3d829b0648e51dceef52a30a0edf3d32406a8
parent027db4372e82e445c531c958c2da0f9cf6ae1e03 (diff)
downloadsearchix-4197ece130242467189b39619f9e9c6b272b8474.tar.lz
searchix-4197ece130242467189b39619f9e9c6b272b8474.tar.zst
searchix-4197ece130242467189b39619f9e9c6b272b8474.zip
build: fix pre-commit check exclude/ignore patterns
-rw-r--r--nix/pre-commit-checks.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/pre-commit-checks.nix b/nix/pre-commit-checks.nix
index e3b651e..a1612ef 100644
--- a/nix/pre-commit-checks.nix
+++ b/nix/pre-commit-checks.nix
@@ -38,15 +38,17 @@ rec {
 
     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;