mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
7 lines
379 B
Bash
Executable File
7 lines
379 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)?$')
|
|
jsonnetfmt -i $repo/.drone.jsonnet
|
|
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)
|