github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/.github/scripts/format-all-go-code.sh (about) 1 #!/usr/bin/env bash 2 3 set -eu 4 5 DIR="$1" 6 7 cd "$DIR" 8 9 export PATH="$(go env GOPATH)/bin:$PATH" 10 for FILE in $(find . -name '*.go'); do 11 if [ "YES" == "$(bash ./.github/scripts/is_autogenerated_file.sh "$FILE")" ]; then 12 echo "Skip autogenerated file: $FILE" >&2 13 continue 14 fi 15 16 if [[ "$FILE" == *"allocator_go1.18.go"* ]]; then 17 echo "Skip allocator_go1.18.go rule: $FILE" >&2 18 continue 19 fi 20 21 bash ./.github/scripts/format-go-code.sh "$FILE" 22 done