2020-06-12 18:32:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-09-23 11:06:11 +00:00
|
|
|
test "x$IGNORE" != "x" && exit 0
|
2022-10-20 22:23:14 +00:00
|
|
|
|
|
|
|
. $(dirname $0)/../format-version.sh
|
|
|
|
|
2020-06-12 18:32:13 +00:00
|
|
|
repo=$(readlink -e $(dirname $0)/../../)
|
2022-10-20 22:23:14 +00:00
|
|
|
$CLANG_FORMAT -i $(find $repo/jni $repo/daemon $repo/llarp $repo/include $repo/pybind | grep -E '\.[hc](pp)?$')
|
2021-10-15 00:01:33 +00:00
|
|
|
jsonnetfmt -i $repo/.drone.jsonnet
|
2020-06-12 18:32:13 +00:00
|
|
|
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)
|