{"action":"created","comment":{"url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/comments/60281307","id":60281307,"diff_hunk":"@@ -137,9 +152,14 @@ module.exports =\n           return messages.map (message) ->\n             startPoint = [message.line - 1, message.column - 1]\n             endPoint = [message.line - 1, message.column]\n-            return {\n+            ret = {\n               type: message.type\n-              text: message.message\n               filePath,\n               range: [startPoint, endPoint]\n             }\n+            if showSource\n+              ret.html = '<span class=\"badge badge-flexible\">' + (message.source or 'Unknown') + '</span> '","path":"lib/main.coffee","position":60,"original_position":60,"commit_id":"74cc30307c853244218a65f6dbef626e8557d3d8","original_commit_id":"74cc30307c853244218a65f6dbef626e8557d3d8","user":{"login":"UziTech","id":97994,"avatar_url":"https://avatars.githubusercontent.com/u/97994?v=3","gravatar_id":"","url":"https://api.github.com/users/UziTech","html_url":"https://github.com/UziTech","followers_url":"https://api.github.com/users/UziTech/followers","following_url":"https://api.github.com/users/UziTech/following{/other_user}","gists_url":"https://api.github.com/users/UziTech/gists{/gist_id}","starred_url":"https://api.github.com/users/UziTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UziTech/subscriptions","organizations_url":"https://api.github.com/users/UziTech/orgs","repos_url":"https://api.github.com/users/UziTech/repos","events_url":"https://api.github.com/users/UziTech/events{/privacy}","received_events_url":"https://api.github.com/users/UziTech/received_events","type":"User","site_admin":false},"body":"That's what I did initially but I figured this should never actually happen if everything is working correctly so it would be better to let the user know that they have showSource on but we don't actually know the source.","created_at":"2016-04-19T18:09:14Z","updated_at":"2016-04-19T18:09:14Z","html_url":"https://github.com/AtomLinter/linter-phpcs/pull/136#discussion_r60281307","pull_request_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/comments/60281307"},"html":{"href":"https://github.com/AtomLinter/linter-phpcs/pull/136#discussion_r60281307"},"pull_request":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136","id":67021451,"html_url":"https://github.com/AtomLinter/linter-phpcs/pull/136","diff_url":"https://github.com/AtomLinter/linter-phpcs/pull/136.diff","patch_url":"https://github.com/AtomLinter/linter-phpcs/pull/136.patch","issue_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/136","number":136,"state":"open","locked":false,"title":"Add showSource option and -s parameter","user":{"login":"UziTech","id":97994,"avatar_url":"https://avatars.githubusercontent.com/u/97994?v=3","gravatar_id":"","url":"https://api.github.com/users/UziTech","html_url":"https://github.com/UziTech","followers_url":"https://api.github.com/users/UziTech/followers","following_url":"https://api.github.com/users/UziTech/following{/other_user}","gists_url":"https://api.github.com/users/UziTech/gists{/gist_id}","starred_url":"https://api.github.com/users/UziTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UziTech/subscriptions","organizations_url":"https://api.github.com/users/UziTech/orgs","repos_url":"https://api.github.com/users/UziTech/repos","events_url":"https://api.github.com/users/UziTech/events{/privacy}","received_events_url":"https://api.github.com/users/UziTech/received_events","type":"User","site_admin":false},"body":"![screenshot1](https://cloud.githubusercontent.com/assets/97994/14641334/5b011356-060b-11e6-8c26-67737866cae2.PNG)\r\n![screenshot2](https://cloud.githubusercontent.com/assets/97994/14641345/6069e700-060b-11e6-9cbb-961f7a1c4c27.PNG)\r\n\r\nFixes #98.\r\n","created_at":"2016-04-19T13:48:58Z","updated_at":"2016-04-19T18:09:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"834df46f3607f6e95fb826ca7a5b23afd197f55e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136/commits","review_comments_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136/comments","review_comment_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/136/comments","statuses_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/statuses/74cc30307c853244218a65f6dbef626e8557d3d8","head":{"label":"UziTech:master","ref":"master","sha":"74cc30307c853244218a65f6dbef626e8557d3d8","user":{"login":"UziTech","id":97994,"avatar_url":"https://avatars.githubusercontent.com/u/97994?v=3","gravatar_id":"","url":"https://api.github.com/users/UziTech","html_url":"https://github.com/UziTech","followers_url":"https://api.github.com/users/UziTech/followers","following_url":"https://api.github.com/users/UziTech/following{/other_user}","gists_url":"https://api.github.com/users/UziTech/gists{/gist_id}","starred_url":"https://api.github.com/users/UziTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UziTech/subscriptions","organizations_url":"https://api.github.com/users/UziTech/orgs","repos_url":"https://api.github.com/users/UziTech/repos","events_url":"https://api.github.com/users/UziTech/events{/privacy}","received_events_url":"https://api.github.com/users/UziTech/received_events","type":"User","site_admin":false},"repo":{"id":56546624,"name":"linter-phpcs","full_name":"UziTech/linter-phpcs","owner":{"login":"UziTech","id":97994,"avatar_url":"https://avatars.githubusercontent.com/u/97994?v=3","gravatar_id":"","url":"https://api.github.com/users/UziTech","html_url":"https://github.com/UziTech","followers_url":"https://api.github.com/users/UziTech/followers","following_url":"https://api.github.com/users/UziTech/following{/other_user}","gists_url":"https://api.github.com/users/UziTech/gists{/gist_id}","starred_url":"https://api.github.com/users/UziTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UziTech/subscriptions","organizations_url":"https://api.github.com/users/UziTech/orgs","repos_url":"https://api.github.com/users/UziTech/repos","events_url":"https://api.github.com/users/UziTech/events{/privacy}","received_events_url":"https://api.github.com/users/UziTech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UziTech/linter-phpcs","description":"Linter plugin for PHP, using phpcs.","fork":true,"url":"https://api.github.com/repos/UziTech/linter-phpcs","forks_url":"https://api.github.com/repos/UziTech/linter-phpcs/forks","keys_url":"https://api.github.com/repos/UziTech/linter-phpcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UziTech/linter-phpcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UziTech/linter-phpcs/teams","hooks_url":"https://api.github.com/repos/UziTech/linter-phpcs/hooks","issue_events_url":"https://api.github.com/repos/UziTech/linter-phpcs/issues/events{/number}","events_url":"https://api.github.com/repos/UziTech/linter-phpcs/events","assignees_url":"https://api.github.com/repos/UziTech/linter-phpcs/assignees{/user}","branches_url":"https://api.github.com/repos/UziTech/linter-phpcs/branches{/branch}","tags_url":"https://api.github.com/repos/UziTech/linter-phpcs/tags","blobs_url":"https://api.github.com/repos/UziTech/linter-phpcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UziTech/linter-phpcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UziTech/linter-phpcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/UziTech/linter-phpcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UziTech/linter-phpcs/statuses/{sha}","languages_url":"https://api.github.com/repos/UziTech/linter-phpcs/languages","stargazers_url":"https://api.github.com/repos/UziTech/linter-phpcs/stargazers","contributors_url":"https://api.github.com/repos/UziTech/linter-phpcs/contributors","subscribers_url":"https://api.github.com/repos/UziTech/linter-phpcs/subscribers","subscription_url":"https://api.github.com/repos/UziTech/linter-phpcs/subscription","commits_url":"https://api.github.com/repos/UziTech/linter-phpcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/UziTech/linter-phpcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/UziTech/linter-phpcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/UziTech/linter-phpcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/UziTech/linter-phpcs/contents/{+path}","compare_url":"https://api.github.com/repos/UziTech/linter-phpcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UziTech/linter-phpcs/merges","archive_url":"https://api.github.com/repos/UziTech/linter-phpcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UziTech/linter-phpcs/downloads","issues_url":"https://api.github.com/repos/UziTech/linter-phpcs/issues{/number}","pulls_url":"https://api.github.com/repos/UziTech/linter-phpcs/pulls{/number}","milestones_url":"https://api.github.com/repos/UziTech/linter-phpcs/milestones{/number}","notifications_url":"https://api.github.com/repos/UziTech/linter-phpcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UziTech/linter-phpcs/labels{/name}","releases_url":"https://api.github.com/repos/UziTech/linter-phpcs/releases{/id}","deployments_url":"https://api.github.com/repos/UziTech/linter-phpcs/deployments","created_at":"2016-04-18T22:28:41Z","updated_at":"2016-04-18T22:28:42Z","pushed_at":"2016-04-19T13:44:10Z","git_url":"git://github.com/UziTech/linter-phpcs.git","ssh_url":"git@github.com:UziTech/linter-phpcs.git","clone_url":"https://github.com/UziTech/linter-phpcs.git","svn_url":"https://github.com/UziTech/linter-phpcs","homepage":null,"size":86,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AtomLinter:master","ref":"master","sha":"d324547eceb59afe78d8b99c32904741eba98cda","user":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":18764318,"name":"linter-phpcs","full_name":"AtomLinter/linter-phpcs","owner":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AtomLinter/linter-phpcs","description":"Linter plugin for PHP, using phpcs.","fork":false,"url":"https://api.github.com/repos/AtomLinter/linter-phpcs","forks_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/forks","keys_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/teams","hooks_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/hooks","issue_events_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/events{/number}","events_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/events","assignees_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/assignees{/user}","branches_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/branches{/branch}","tags_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/tags","blobs_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/statuses/{sha}","languages_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/languages","stargazers_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/stargazers","contributors_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/contributors","subscribers_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/subscribers","subscription_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/subscription","commits_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/contents/{+path}","compare_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/merges","archive_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/downloads","issues_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues{/number}","pulls_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls{/number}","milestones_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/milestones{/number}","notifications_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/labels{/name}","releases_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/releases{/id}","deployments_url":"https://api.github.com/repos/AtomLinter/linter-phpcs/deployments","created_at":"2014-04-14T14:47:44Z","updated_at":"2016-03-04T22:04:04Z","pushed_at":"2016-04-19T13:48:58Z","git_url":"git://github.com/AtomLinter/linter-phpcs.git","ssh_url":"git@github.com:AtomLinter/linter-phpcs.git","clone_url":"https://github.com/AtomLinter/linter-phpcs.git","svn_url":"https://github.com/AtomLinter/linter-phpcs","homepage":null,"size":96,"stargazers_count":29,"watchers_count":29,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":7,"forks":22,"open_issues":7,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136"},"html":{"href":"https://github.com/AtomLinter/linter-phpcs/pull/136"},"issue":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/136"},"comments":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/AtomLinter/linter-phpcs/statuses/74cc30307c853244218a65f6dbef626e8557d3d8"}}}}