diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-10 19:50:59 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-10 19:50:59 +0300 |
commit | 5eff302078523f50224f4e310b252c8cbb7c2210 (patch) | |
tree | a3149b8f63a0072b14d37b76b7e91101f3d38df4 /hooks | |
parent | RekonqWindow: apply shortcuts (diff) | |
download | rekonq-5eff302078523f50224f4e310b252c8cbb7c2210.tar.xz |
Fix some clang-tidy warnings
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/clang-tidy.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/clang-tidy.sh b/hooks/clang-tidy.sh new file mode 100755 index 00000000..c51b4f7b --- /dev/null +++ b/hooks/clang-tidy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +if [[ ! -f .clang-tidy ]]; then + echo Cannot find .clang-tidy + exit 1 +fi + +echo Running clang-tidy +clang-tidy -p cmake-build-debug $(git diff --staged --name-only --diff-filter=AM) |