{"action":"created","issue":{"url":"https://api.github.com/repos/angelozerr/tern.java/issues/359","labels_url":"https://api.github.com/repos/angelozerr/tern.java/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/angelozerr/tern.java/issues/359/comments","events_url":"https://api.github.com/repos/angelozerr/tern.java/issues/359/events","html_url":"https://github.com/angelozerr/tern.java/issues/359","id":112618176,"number":359,"title":"[Linting] Extend API to provide original linter message json","user":{"login":"zielu","id":464103,"avatar_url":"https://avatars.githubusercontent.com/u/464103?v=3","gravatar_id":"","url":"https://api.github.com/users/zielu","html_url":"https://github.com/zielu","followers_url":"https://api.github.com/users/zielu/followers","following_url":"https://api.github.com/users/zielu/following{/other_user}","gists_url":"https://api.github.com/users/zielu/gists{/gist_id}","starred_url":"https://api.github.com/users/zielu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zielu/subscriptions","organizations_url":"https://api.github.com/users/zielu/orgs","repos_url":"https://api.github.com/users/zielu/repos","events_url":"https://api.github.com/users/zielu/events{/privacy}","received_events_url":"https://api.github.com/users/zielu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T15:41:10Z","updated_at":"2015-10-21T16:00:19Z","closed_at":null,"body":"Hi, I'm integrating tern.java with IntelliJ and have following usecase:\r\n\r\ntern.server.protocol.lint.ITernLintCollector#addMessage provides generic API for all linters, I'd like to have however access to original linter message i.e. ESLint provides additionally \"ruleId\" and sometimes \"fix\", I would also like to have access to original line & column.\r\n\r\nThis data is needed as I want to use \"ruleId\" to provide quick fixes for some problems.\r\nMaybe linting API could be extended to add flag to TernLintQuery.setReturnOriginalMessage\r\n\r\nAnd then either additional method or one more parameter in collector addMessage that provides original message JsonObject."},"comment":{"url":"https://api.github.com/repos/angelozerr/tern.java/issues/comments/149942947","html_url":"https://github.com/angelozerr/tern.java/issues/359#issuecomment-149942947","issue_url":"https://api.github.com/repos/angelozerr/tern.java/issues/359","id":149942947,"user":{"login":"zielu","id":464103,"avatar_url":"https://avatars.githubusercontent.com/u/464103?v=3","gravatar_id":"","url":"https://api.github.com/users/zielu","html_url":"https://github.com/zielu","followers_url":"https://api.github.com/users/zielu/followers","following_url":"https://api.github.com/users/zielu/following{/other_user}","gists_url":"https://api.github.com/users/zielu/gists{/gist_id}","starred_url":"https://api.github.com/users/zielu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zielu/subscriptions","organizations_url":"https://api.github.com/users/zielu/orgs","repos_url":"https://api.github.com/users/zielu/repos","events_url":"https://api.github.com/users/zielu/events{/privacy}","received_events_url":"https://api.github.com/users/zielu/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T16:00:19Z","updated_at":"2015-10-21T16:00:19Z","body":"> Cool! Have you a link to the repo?\r\n\r\nIt's in the private repo for now, but I it think in a month I'll push it to github. My goal is to have support for web development in Community Edition on level that I don't need to open any \"web editors\".\r\n\r\n>But perhaps we should add \"ruleId\" and \"fix\" for the whole linters even if they doesn\"t manage it? \r\n\r\nIn my opinion ruleId is generic enough but that fix looks very eslint specific:\r\n```javascript\r\n\"fix\":{\"range\":[86,86],\"text\":\";\"}\r\n```\r\nFor my needs fix as JsonObject passed to addMessage would be great :) - I don't know yet if I'll be using it directly or skip it and implement some rules using IntelliJ apis."}}