Files
libsession-util/utils/ci/drone-format-verify.sh
Jason Rhinelander bcaf7efe18 Rename contrib -> utils
Nothing in here is actually a non-core contribution, so the contrib name
seems wrong.
2022-11-25 14:52:15 -04:00

7 lines
351 B
Bash
Executable File

#!/usr/bin/env bash
test "x$IGNORE" != "x" && exit 0
repo=$(readlink -e $(dirname $0)/../../)
clang-format-15 -i $(find $repo/src $repo/include $repo/tests | 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 ./utils/format.sh\e[0m\n\n' ; exit 1)