fix: use a script to lint each module (#15590)

This commit is contained in:
Jacob Gadikian
2023-03-29 03:36:50 +00:00
committed by GitHub
parent bb8663093e
commit 9a07b7defe
3 changed files with 15 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eu
export pwd=$(pwd)
for modfile in $(find . -name go.mod); do
echo "linting $(dirname $modfile)"
DIR=$(dirname $modfile)
(cd $DIR; golangci-lint run ./... --fix -c $pwd/.golangci.yml)
done