Skip to content

Commit

Permalink
Fix golint, it does not support ${PKG}/...
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Jul 29, 2021
1 parent 2590ed5 commit e7dca22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OUT=$(go vet -all=true $ROOT_DIR 2>&1 | grep --invert-match -E "(Checking file|\
if [ -n "$OUT" ]; then echo "$OUT"; PROBLEM=1; fi

echo "golint:"
OUT=$(golint $PKG/... 2>&1 | grep --invert-match -E "(/(example|vendor))")
OUT=$(golint ./... 2>&1 | grep --invert-match -E "(^(example|vendor))")
if [ -n "$OUT" ]; then echo "$OUT"; PROBLEM=1; fi

echo "staticcheck:"
Expand Down

0 comments on commit e7dca22

Please sign in to comment.