1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Add clang-tidy to pre-commit

This commit is contained in:
Farid Zakaria 2025-05-24 19:02:20 -07:00
parent 81884c36a3
commit 48ec472084

View file

@ -65,6 +65,14 @@
''^tests/functional/lang/eval-fail-set\.nix$''
];
};
clang-tidy = {
enable = true;
# TODO: this requires meson to have been configured
# we could optionally wrap this in a script that runs meson first
# but for now let us keep it simple
entry = "${pkgs.clang-tools}/bin/clang-tidy --fix -p ./build";
files = ''^src/libstore'';
};
clang-format = {
enable = true;
# https://github.com/cachix/git-hooks.nix/pull/532