mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
e5aa96ed7c
The formatting changes here are not too large and also nice: in particular clang-format-11 appears to do better handling of `{...}` constructor braces/arguments.
6 lines
344 B
Bash
Executable File
6 lines
344 B
Bash
Executable File
#!/usr/bin/env bash
|
|
test "x$IGNORE" != "x" && exit 0
|
|
repo=$(readlink -e $(dirname $0)/../../)
|
|
clang-format-11 -i $(find $repo/jni $repo/daemon $repo/llarp $repo/include $repo/pybind | grep -E '\.[hc](pp)?$')
|
|
git --no-pager diff --exit-code --color || (echo -ne '\n\n\e[31;1mLint check failed; please run ./contrib/format.sh\e[0m\n\n' ; exit 1)
|