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:
parent
a0527da40e
commit
1552fb6228
3 changed files with 18 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue