2022-07-27 23:33:53 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-04-13 15:58:11 +03:00
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
cd "$REPO_ROOT"
|
|
|
|
|
|
|
|
# shellcheck disable=SC2046
|
2022-07-27 23:33:53 +03:00
|
|
|
shellcheck -x $(awk '/#!\/usr\/bin\/env/&&FNR==1{print FILENAME}' $(git ls-files))
|
2022-04-13 15:58:11 +03:00
|
|
|
find . \( -name 'WORKSPACE' -o -name 'BUILD' -o -name '*.bzl' \) -exec buildifier {} +
|