mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-30 14:06:48 +02:00
Add clang-format to lefthook
This commit is contained in:
@@ -2,6 +2,10 @@ pre-commit:
|
||||
scripts:
|
||||
lint:
|
||||
tags: lint
|
||||
commands:
|
||||
lint-clang:
|
||||
tags: lint
|
||||
run: command -v clang-format && find . -not -path "./.tmp/*" -not -path "./.git/*" \( -iname "*.h" -o -iname "*.c" -o -iname "*.cpp" \) | xargs clang-format --dry-run --Werror
|
||||
|
||||
pre-push:
|
||||
scripts:
|
||||
|
Reference in New Issue
Block a user