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:
parent
81884c36a3
commit
48ec472084
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue