This commit is contained in:
Liang Ding 2014-09-09 16:33:48 +08:00
parent 1caedf8c41
commit a0d0238a4e
2 changed files with 3 additions and 2 deletions

View File

@ -237,6 +237,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) {
lint["file"] = file
lint["lineNo"] = lineNo - 1
lint["msg"] = msg
lint["severity"] = "error" // warning
lints = append(lints, lint)
}

View File

@ -22,7 +22,7 @@ outputWS.onmessage = function(e) {
goLintFound.push({from: CodeMirror.Pos(lint.lineNo, 0),
to: CodeMirror.Pos(lint.lineNo, 0),
message: lint.msg});
message: lint.msg, severity: lint.severity});
}
return;