Custom pre-commit clippy hook to use the correct toolchain

This commit is contained in:
Erwin Boskma 2022-11-28 16:16:30 +01:00
parent e871964f30
commit a6b2f9d8d7
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -77,7 +77,17 @@
nixpkgs-fmt.enable = true;
statix.enable = true;
deadnix.enable = true;
clippy.enable = true;
rust-overlay-clippy = {
enable = true;
name = "rust-overlay clippy";
entry = "${rustToolchain}/bin/cargo-clippy clippy";
files = "\\.rs$";
excludes = [ "^$" ];
types = [ "file" ];
types_or = [ ];
language = "system";
pass_filenames = false;
};
};
};
};