{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/419","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/419/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/419/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/419","id":53245370,"number":419,"title":"Create report that will show code with error","user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Awaiting%20Feedback","name":"Awaiting Feedback","color":"207de5"},{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Enhancement","name":"Enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/milestones/1","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/milestones/3.0","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/milestones/1/labels","id":1341500,"number":1,"title":"3.0","description":"","creator":{"login":"gsherwood","id":185976,"avatar_url":"https://avatars.githubusercontent.com/u/185976?v=3","gravatar_id":"","url":"https://api.github.com/users/gsherwood","html_url":"https://github.com/gsherwood","followers_url":"https://api.github.com/users/gsherwood/followers","following_url":"https://api.github.com/users/gsherwood/following{/other_user}","gists_url":"https://api.github.com/users/gsherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/gsherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsherwood/subscriptions","organizations_url":"https://api.github.com/users/gsherwood/orgs","repos_url":"https://api.github.com/users/gsherwood/repos","events_url":"https://api.github.com/users/gsherwood/events{/privacy}","received_events_url":"https://api.github.com/users/gsherwood/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2015-10-06T22:20:15Z","updated_at":"2016-02-12T05:29:09Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2015-01-02T10:09:58Z","updated_at":"2016-02-16T13:55:34Z","closed_at":null,"body":"In Phabricator linting tool the default reporting way is to also show relevant code piece where error is happend with usual 3 lines of context. This drastically reduces switching between Terminal (Mac) and IDE when fixing errors.\r\n\r\nExample:\r\n![phabricator_arcanistlinter](https://cloud.githubusercontent.com/assets/1277526/5595298/d9cf05ac-9277-11e4-86cc-dd7ddf6181a8.png)\r\n\r\nThis is file, that does this: https://github.com/phacility/arcanist/blob/master/src/lint/renderer/ArcanistConsoleLintRenderer.php\r\n\r\nIMO such report might become new default report type."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/184692193","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/419#issuecomment-184692193","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/419","id":184692193,"user":{"login":"VasekPurchart","id":406821,"avatar_url":"https://avatars.githubusercontent.com/u/406821?v=3","gravatar_id":"","url":"https://api.github.com/users/VasekPurchart","html_url":"https://github.com/VasekPurchart","followers_url":"https://api.github.com/users/VasekPurchart/followers","following_url":"https://api.github.com/users/VasekPurchart/following{/other_user}","gists_url":"https://api.github.com/users/VasekPurchart/gists{/gist_id}","starred_url":"https://api.github.com/users/VasekPurchart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasekPurchart/subscriptions","organizations_url":"https://api.github.com/users/VasekPurchart/orgs","repos_url":"https://api.github.com/users/VasekPurchart/repos","events_url":"https://api.github.com/users/VasekPurchart/events{/privacy}","received_events_url":"https://api.github.com/users/VasekPurchart/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T13:55:34Z","updated_at":"2016-02-16T13:55:34Z","body":"I am not speaking about error vs warning, I am talking about workflow ;)\r\n\r\n> In ideal world yes. But at my company we're created coding standard because people have no idea what is wrong with their code until I said them what's wrong.\r\n\r\nEven if you don't know what exactly is wrong with the code, you get references after you have seen it - with reference to the specific line. In the current shape you give the references \"in advance\" - before the user has seen it."}}