This commit is contained in:
parent
1caedf8c41
commit
a0d0238a4e
|
@ -237,6 +237,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
lint["file"] = file
|
lint["file"] = file
|
||||||
lint["lineNo"] = lineNo - 1
|
lint["lineNo"] = lineNo - 1
|
||||||
lint["msg"] = msg
|
lint["msg"] = msg
|
||||||
|
lint["severity"] = "error" // warning
|
||||||
lints = append(lints, lint)
|
lints = append(lints, lint)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ outputWS.onmessage = function(e) {
|
||||||
|
|
||||||
goLintFound.push({from: CodeMirror.Pos(lint.lineNo, 0),
|
goLintFound.push({from: CodeMirror.Pos(lint.lineNo, 0),
|
||||||
to: CodeMirror.Pos(lint.lineNo, 0),
|
to: CodeMirror.Pos(lint.lineNo, 0),
|
||||||
message: lint.msg});
|
message: lint.msg, severity: lint.severity});
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue