We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee4caa commit 6119b25Copy full SHA for 6119b25
tools/lint-go-gopls.sh
@@ -11,7 +11,7 @@ IGNORE_PATTERNS=(
11
# current absolute path, indicating a error was found. This is necessary
12
# because the tool does not set non-zero exit code when errors are found.
13
# 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[@]}"));
+ERROR_LINES=$("$GO" run "$GOPLS_PACKAGE" check -severity=warning "$@" 2>/dev/null | grep -E "^$PWD" | grep -vFf <(printf '%s\n' "${IGNORE_PATTERNS[@]}"));
15
NUM_ERRORS=$(echo -n "$ERROR_LINES" | wc -l)
16
17
if [ "$NUM_ERRORS" -eq "0" ]; then
0 commit comments