go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/fmt-lint.sh (about) 1 #!/bin/bash 2 3 set -e 4 5 MYPATH=$(dirname "${BASH_SOURCE[0]}") 6 LUCICFG="${MYPATH}/.lucicfg" 7 8 trap "rm -f ${LUCICFG}" EXIT 9 go build -o ${LUCICFG} go.chromium.org/luci/lucicfg/cmd/lucicfg 10 11 # Format all Starlark code. 12 ${LUCICFG} fmt "${MYPATH}" 13 14 # Lint only stdlib and examples, but not tests, no one cares. 15 ${LUCICFG} lint "${MYPATH}/starlark" "${MYPATH}/examples"