Skip to content

Commit 6119b25

Browse files
committed
set severity
1 parent cee4caa commit 6119b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lint-go-gopls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ IGNORE_PATTERNS=(
1111
# current absolute path, indicating a error was found. This is necessary
1212
# because the tool does not set non-zero exit code when errors are found.
1313
# ref: https://github.com/golang/go/issues/67078
14-
ERROR_LINES=$("$GO" run "$GOPLS_PACKAGE" check "$@" 2>/dev/null | grep -E "^$PWD" | grep -vFf <(printf '%s\n' "${IGNORE_PATTERNS[@]}"));
14+
ERROR_LINES=$("$GO" run "$GOPLS_PACKAGE" check -severity=warning "$@" 2>/dev/null | grep -E "^$PWD" | grep -vFf <(printf '%s\n' "${IGNORE_PATTERNS[@]}"));
1515
NUM_ERRORS=$(echo -n "$ERROR_LINES" | wc -l)
1616

1717
if [ "$NUM_ERRORS" -eq "0" ]; then

0 commit comments

Comments
 (0)