mirror of
https://github.com/google/santa.git
synced 2026-01-14 08:47:57 -05:00
18 lines
391 B
Bash
Executable File
18 lines
391 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function main() {
|
|
GIT_ROOT=$(git rev-parse --show-toplevel)
|
|
err=0
|
|
|
|
find $GIT_ROOT \( -name "*.m" -o -name "*.h" -name "*.mm" \) -exec clang-format --Werror --dry-run {} \+
|
|
err="$(( $err | $? ))"
|
|
|
|
go get github.com/bazelbuild/buildtools/buildifier
|
|
~/go/bin/buildifier --lint=warn -r $GIT_ROOT
|
|
err="$(( $err | $? ))"
|
|
return $err
|
|
}
|
|
|
|
main $@
|
|
exit $?
|