{"action":"created","issue":{"url":"https://api.github.com/repos/coala/coala-vs-code/issues/43","repository_url":"https://api.github.com/repos/coala/coala-vs-code","labels_url":"https://api.github.com/repos/coala/coala-vs-code/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/coala/coala-vs-code/issues/43/comments","events_url":"https://api.github.com/repos/coala/coala-vs-code/issues/43/events","html_url":"https://github.com/coala/coala-vs-code/issues/43","id":310292492,"number":43,"title":"Diagnostic severity level violates LSP convention","user":{"login":"li-boxuan","id":25746010,"avatar_url":"https://avatars2.githubusercontent.com/u/25746010?v=4","gravatar_id":"","url":"https://api.github.com/users/li-boxuan","html_url":"https://github.com/li-boxuan","followers_url":"https://api.github.com/users/li-boxuan/followers","following_url":"https://api.github.com/users/li-boxuan/following{/other_user}","gists_url":"https://api.github.com/users/li-boxuan/gists{/gist_id}","starred_url":"https://api.github.com/users/li-boxuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/li-boxuan/subscriptions","organizations_url":"https://api.github.com/users/li-boxuan/orgs","repos_url":"https://api.github.com/users/li-boxuan/repos","events_url":"https://api.github.com/users/li-boxuan/events{/privacy}","received_events_url":"https://api.github.com/users/li-boxuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-01T04:20:05Z","updated_at":"2018-04-01T04:20:36Z","closed_at":null,"author_association":"MEMBER","body":"Severity level defined by coala is as follows: ([source code here](https://github.com/coala/coala/blob/master/coalib/results/RESULT_SEVERITY.py))\r\n\r\n```python\r\nRESULT_SEVERITY = enum('INFO', 'NORMAL', 'MAJOR')\r\n```\r\n\r\nThey correspond to 0, 1, 2 respectively.\r\n\r\nHowever, according to [LSP convention](https://microsoft.github.io/language-server-protocol/specification), severity should have 4 levels:\r\n\r\n```javascript\r\nnamespace DiagnosticSeverity {\r\n\t/**\r\n\t * Reports an error.\r\n\t */\r\n\texport const Error = 1;\r\n\t/**\r\n\t * Reports a warning.\r\n\t */\r\n\texport const Warning = 2;\r\n\t/**\r\n\t * Reports an information.\r\n\t */\r\n\texport const Information = 3;\r\n\t/**\r\n\t * Reports a hint.\r\n\t */\r\n\texport const Hint = 4;\r\n}\r\n```\r\n\r\nThat is, 0 is invalid. IMO, 'MAJOR', 'NORMAL', 'INFO' should correspond to 'Error', 'Warning', 'Information' respectively."},"comment":{"url":"https://api.github.com/repos/coala/coala-vs-code/issues/comments/377742651","html_url":"https://github.com/coala/coala-vs-code/issues/43#issuecomment-377742651","issue_url":"https://api.github.com/repos/coala/coala-vs-code/issues/43","id":377742651,"user":{"login":"li-boxuan","id":25746010,"avatar_url":"https://avatars2.githubusercontent.com/u/25746010?v=4","gravatar_id":"","url":"https://api.github.com/users/li-boxuan","html_url":"https://github.com/li-boxuan","followers_url":"https://api.github.com/users/li-boxuan/followers","following_url":"https://api.github.com/users/li-boxuan/following{/other_user}","gists_url":"https://api.github.com/users/li-boxuan/gists{/gist_id}","starred_url":"https://api.github.com/users/li-boxuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/li-boxuan/subscriptions","organizations_url":"https://api.github.com/users/li-boxuan/orgs","repos_url":"https://api.github.com/users/li-boxuan/repos","events_url":"https://api.github.com/users/li-boxuan/events{/privacy}","received_events_url":"https://api.github.com/users/li-boxuan/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T04:20:36Z","updated_at":"2018-04-01T04:20:36Z","author_association":"MEMBER","body":"@gaocegege I would like to solve this issue."}}
{"actor":{"display_login":"li-boxuan"}}