1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Make it only bugprone check

This commit is contained in:
Farid Zakaria 2025-05-27 09:21:59 -07:00
parent a0527da40e
commit 1552fb6228
3 changed files with 18 additions and 3 deletions

View file

@ -70,8 +70,14 @@
# 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-tidy doesn't work well running it on multiple files
# TODO: change this to use run-clang-tidy.py
entry = "${pkgs.writeShellScript "clang-tidy-wrapper" ''
for file in "$@"; do
"${pkgs.clang-tools}/bin/clang-tidy" --fix -p ./build "$file"
done
''}";
};
clang-format = {
enable = true;