mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
a9d23d3ac3
* ignore tun interfaces on windows for mitigating foot cannons * add flag for git add -p when using format verifier as git hook * use explicit path for route command on windows * fix typo * fix typo * remove hunk for win32 route exclusion based off being a tun interface * add metric to win32 route command * * refactor win32 route poking to use a common function for iterating over routes * put interface in route poking for default route * mnake it compile * use correct route command on windows * use fs::path for service::Identity::EnsureKeys
6 lines
343 B
Bash
Executable File
6 lines
343 B
Bash
Executable File
#!/usr/bin/env bash
|
|
test "x$IGNORE" != "x" && exit 0
|
|
repo=$(readlink -e $(dirname $0)/../../)
|
|
clang-format-9 -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)
|