{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments/41556633","id":41556633,"diff_hunk":"@@ -0,0 +1,34 @@\n+var Linter = require(\"../lib/linter\");\n+\n+QUnit.module(\"Linter\");\n+\n+test(\"JSCS linting\", function() {\n+  var payload = {\n+    content: \"// TODO\",\n+    config: '{ \"disallowKeywordsInComments\": true }',\n+    filename: \"filename\",\n+    commit_sha: \"commit_sha\",\n+    pull_request_number: \"pull_request_number\",\n+    patch: \"patch\",\n+  };\n+  var outbound = {\n+    enqueue: function(job) {\n+      return job;\n+    }\n+  };\n+  var linter = new Linter(outbound);\n+\n+  var job = linter.lint(payload);\n+  var violation = job.violations[0];\n+\n+  ok(violation.message.match(/todo/i), \"includes the proper message\");\n+  equal(violation.line, 1, \"includes the proper line\");\n+  equal(job.filename, payload.filename, \"passes through filename\");\n+  equal(job.commit_sha, payload.commit_sha, \"passes through commit_sha\");\n+  equal(\n+    job.pull_request_number,","path":"tests/linter-test.js","position":29,"original_position":29,"commit_id":"76b5cba0fc2c5d9ddaa5e931e42e88665cd1fa8c","original_commit_id":"76b5cba0fc2c5d9ddaa5e931e42e88665cd1fa8c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'pull_request_number' is not in camel case.","created_at":"2015-10-08T19:24:43Z","updated_at":"2015-10-08T19:24:43Z","html_url":"https://github.com/thoughtbot/hound-jscs/pull/2#discussion_r41556633","pull_request_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments/41556633"},"html":{"href":"https://github.com/thoughtbot/hound-jscs/pull/2#discussion_r41556633"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2","id":47194186,"html_url":"https://github.com/thoughtbot/hound-jscs/pull/2","diff_url":"https://github.com/thoughtbot/hound-jscs/pull/2.diff","patch_url":"https://github.com/thoughtbot/hound-jscs/pull/2.patch","issue_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/2","number":2,"state":"open","locked":false,"title":"Replace Spike code with test driven code","user":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"body":"* Introduce `Queue` to wrap `Resque.queue` with `RSVP` promises.\n* Introduce `Linter` to encapsulate `JSCS` checking logic\n* Refactor `index.js` to utilize new classes","created_at":"2015-10-08T19:16:48Z","updated_at":"2015-10-08T19:24:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccdaa9b6cb99ccd934821979e05de9d3240ee9cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/2/comments","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/76b5cba0fc2c5d9ddaa5e931e42e88665cd1fa8c","head":{"label":"thoughtbot:sd-tests","ref":"sd-tests","sha":"76b5cba0fc2c5d9ddaa5e931e42e88665cd1fa8c","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":43764089,"name":"hound-jscs","full_name":"thoughtbot/hound-jscs","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jscs","description":null,"fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jscs","forks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jscs/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jscs/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jscs/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jscs/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jscs/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jscs/releases{/id}","created_at":"2015-10-06T16:46:18Z","updated_at":"2015-10-08T15:42:28Z","pushed_at":"2015-10-08T19:23:56Z","git_url":"git://github.com/thoughtbot/hound-jscs.git","ssh_url":"git@github.com:thoughtbot/hound-jscs.git","clone_url":"https://github.com/thoughtbot/hound-jscs.git","svn_url":"https://github.com/thoughtbot/hound-jscs","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"d13f7048c00067a88e5c1bd8bb5c9082f3a4c680","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":43764089,"name":"hound-jscs","full_name":"thoughtbot/hound-jscs","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jscs","description":null,"fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jscs","forks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jscs/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jscs/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jscs/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jscs/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jscs/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jscs/releases{/id}","created_at":"2015-10-06T16:46:18Z","updated_at":"2015-10-08T15:42:28Z","pushed_at":"2015-10-08T19:23:56Z","git_url":"git://github.com/thoughtbot/hound-jscs.git","ssh_url":"git@github.com:thoughtbot/hound-jscs.git","clone_url":"https://github.com/thoughtbot/hound-jscs.git","svn_url":"https://github.com/thoughtbot/hound-jscs","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2"},"html":{"href":"https://github.com/thoughtbot/hound-jscs/pull/2"},"issue":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/2"},"comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/76b5cba0fc2c5d9ddaa5e931e42e88665cd1fa8c"}}}}