diff --git a/scripts/go-lint-all.sh b/scripts/go-lint-all.sh new file mode 100755 index 0000000000..762840f60b --- /dev/null +++ b/scripts/go-lint-all.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -euo pipefail # Bash "strict mode" +script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +root_dirpath="$(dirname "${script_dirpath}")" + +find $root_dirpath -type f -name 'go.mod' -exec sh -c 'dir=$(dirname "{}") && cd "$dir" && echo "$dir" && golangci-lint run' \; \ No newline at end of file