mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Add clang-format to lefthook
This commit is contained in:
@@ -2,6 +2,10 @@ pre-commit:
|
|||||||
scripts:
|
scripts:
|
||||||
lint:
|
lint:
|
||||||
tags: 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:
|
pre-push:
|
||||||
scripts:
|
scripts:
|
||||||
|
Reference in New Issue
Block a user