{"action":"created","comment":{"url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/comments/38607356","id":38607356,"diff_hunk":"@@ -0,0 +1,400 @@\n+# good (space indent)\n+posts = Post.joins(:user).\n+  merge(User.paid).\n+  where(created_at: target_date)\n+\n+# bad (tab indent)\n+User.active.\n+\tsome_scope(foo).\n+\tother_scope(bar)\n+\n+# good\n+posts = Post.joins(:user).\n+  merge(User.paid).\n+  where(created_at: target_date)\n+posts.each do |post|\n+  next if stuff_ids.include?(post.user_id)\n+  comment_count += post.comments.size\n+end\n+\n+# bad\n+posts = Post.joins(:user).\n+  merge(User.paid).\n+  where(created_at: target_date).each do |post|\n+    next if stuff_ids.include?(post.user_id)\n+    comment_count += post.comments.size\n+  end\n+\n+# good\n+User.active.\n+  some_scope(foo).\n+  other_scope(bar)\n+\n+# bad\n+User.active.\n+some_scope(foo).\n+other_scope(bar)","path":"test.rb","position":36,"original_position":36,"commit_id":"6b25e90bfe31d7477b82d2d5e42eeb588223700f","original_commit_id":"6b25e90bfe31d7477b82d2d5e42eeb588223700f","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":"Use 2 (not 0) spaces for indenting an expression spanning multiple lines.","created_at":"2015-09-03T02:08:12Z","updated_at":"2015-09-03T02:08:12Z","html_url":"https://github.com/miyukki/hound-ci-test/pull/1#discussion_r38607356","pull_request_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/comments/38607356"},"html":{"href":"https://github.com/miyukki/hound-ci-test/pull/1#discussion_r38607356"},"pull_request":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1","id":44062985,"html_url":"https://github.com/miyukki/hound-ci-test/pull/1","diff_url":"https://github.com/miyukki/hound-ci-test/pull/1.diff","patch_url":"https://github.com/miyukki/hound-ci-test/pull/1.patch","issue_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/1","number":1,"state":"open","locked":false,"title":"Add test file","user":{"login":"miyukki","id":720609,"avatar_url":"https://avatars.githubusercontent.com/u/720609?v=3","gravatar_id":"","url":"https://api.github.com/users/miyukki","html_url":"https://github.com/miyukki","followers_url":"https://api.github.com/users/miyukki/followers","following_url":"https://api.github.com/users/miyukki/following{/other_user}","gists_url":"https://api.github.com/users/miyukki/gists{/gist_id}","starred_url":"https://api.github.com/users/miyukki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyukki/subscriptions","organizations_url":"https://api.github.com/users/miyukki/orgs","repos_url":"https://api.github.com/users/miyukki/repos","events_url":"https://api.github.com/users/miyukki/events{/privacy}","received_events_url":"https://api.github.com/users/miyukki/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-03T02:08:06Z","updated_at":"2015-09-03T02:08:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"281834610c9f69d1048463f0eea1c01ce4e88403","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1/commits","review_comments_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1/comments","review_comment_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/1/comments","statuses_url":"https://api.github.com/repos/miyukki/hound-ci-test/statuses/6b25e90bfe31d7477b82d2d5e42eeb588223700f","head":{"label":"miyukki:feature/test","ref":"feature/test","sha":"6b25e90bfe31d7477b82d2d5e42eeb588223700f","user":{"login":"miyukki","id":720609,"avatar_url":"https://avatars.githubusercontent.com/u/720609?v=3","gravatar_id":"","url":"https://api.github.com/users/miyukki","html_url":"https://github.com/miyukki","followers_url":"https://api.github.com/users/miyukki/followers","following_url":"https://api.github.com/users/miyukki/following{/other_user}","gists_url":"https://api.github.com/users/miyukki/gists{/gist_id}","starred_url":"https://api.github.com/users/miyukki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyukki/subscriptions","organizations_url":"https://api.github.com/users/miyukki/orgs","repos_url":"https://api.github.com/users/miyukki/repos","events_url":"https://api.github.com/users/miyukki/events{/privacy}","received_events_url":"https://api.github.com/users/miyukki/received_events","type":"User","site_admin":false},"repo":{"id":41837076,"name":"hound-ci-test","full_name":"miyukki/hound-ci-test","owner":{"login":"miyukki","id":720609,"avatar_url":"https://avatars.githubusercontent.com/u/720609?v=3","gravatar_id":"","url":"https://api.github.com/users/miyukki","html_url":"https://github.com/miyukki","followers_url":"https://api.github.com/users/miyukki/followers","following_url":"https://api.github.com/users/miyukki/following{/other_user}","gists_url":"https://api.github.com/users/miyukki/gists{/gist_id}","starred_url":"https://api.github.com/users/miyukki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyukki/subscriptions","organizations_url":"https://api.github.com/users/miyukki/orgs","repos_url":"https://api.github.com/users/miyukki/repos","events_url":"https://api.github.com/users/miyukki/events{/privacy}","received_events_url":"https://api.github.com/users/miyukki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miyukki/hound-ci-test","description":"","fork":false,"url":"https://api.github.com/repos/miyukki/hound-ci-test","forks_url":"https://api.github.com/repos/miyukki/hound-ci-test/forks","keys_url":"https://api.github.com/repos/miyukki/hound-ci-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miyukki/hound-ci-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miyukki/hound-ci-test/teams","hooks_url":"https://api.github.com/repos/miyukki/hound-ci-test/hooks","issue_events_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/events{/number}","events_url":"https://api.github.com/repos/miyukki/hound-ci-test/events","assignees_url":"https://api.github.com/repos/miyukki/hound-ci-test/assignees{/user}","branches_url":"https://api.github.com/repos/miyukki/hound-ci-test/branches{/branch}","tags_url":"https://api.github.com/repos/miyukki/hound-ci-test/tags","blobs_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miyukki/hound-ci-test/statuses/{sha}","languages_url":"https://api.github.com/repos/miyukki/hound-ci-test/languages","stargazers_url":"https://api.github.com/repos/miyukki/hound-ci-test/stargazers","contributors_url":"https://api.github.com/repos/miyukki/hound-ci-test/contributors","subscribers_url":"https://api.github.com/repos/miyukki/hound-ci-test/subscribers","subscription_url":"https://api.github.com/repos/miyukki/hound-ci-test/subscription","commits_url":"https://api.github.com/repos/miyukki/hound-ci-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/miyukki/hound-ci-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/miyukki/hound-ci-test/contents/{+path}","compare_url":"https://api.github.com/repos/miyukki/hound-ci-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miyukki/hound-ci-test/merges","archive_url":"https://api.github.com/repos/miyukki/hound-ci-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miyukki/hound-ci-test/downloads","issues_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues{/number}","pulls_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls{/number}","milestones_url":"https://api.github.com/repos/miyukki/hound-ci-test/milestones{/number}","notifications_url":"https://api.github.com/repos/miyukki/hound-ci-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miyukki/hound-ci-test/labels{/name}","releases_url":"https://api.github.com/repos/miyukki/hound-ci-test/releases{/id}","created_at":"2015-09-03T01:52:09Z","updated_at":"2015-09-03T01:52:09Z","pushed_at":"2015-09-03T02:08:06Z","git_url":"git://github.com/miyukki/hound-ci-test.git","ssh_url":"git@github.com:miyukki/hound-ci-test.git","clone_url":"https://github.com/miyukki/hound-ci-test.git","svn_url":"https://github.com/miyukki/hound-ci-test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"miyukki:master","ref":"master","sha":"322624eacc2f88661674531856606eef87607a39","user":{"login":"miyukki","id":720609,"avatar_url":"https://avatars.githubusercontent.com/u/720609?v=3","gravatar_id":"","url":"https://api.github.com/users/miyukki","html_url":"https://github.com/miyukki","followers_url":"https://api.github.com/users/miyukki/followers","following_url":"https://api.github.com/users/miyukki/following{/other_user}","gists_url":"https://api.github.com/users/miyukki/gists{/gist_id}","starred_url":"https://api.github.com/users/miyukki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyukki/subscriptions","organizations_url":"https://api.github.com/users/miyukki/orgs","repos_url":"https://api.github.com/users/miyukki/repos","events_url":"https://api.github.com/users/miyukki/events{/privacy}","received_events_url":"https://api.github.com/users/miyukki/received_events","type":"User","site_admin":false},"repo":{"id":41837076,"name":"hound-ci-test","full_name":"miyukki/hound-ci-test","owner":{"login":"miyukki","id":720609,"avatar_url":"https://avatars.githubusercontent.com/u/720609?v=3","gravatar_id":"","url":"https://api.github.com/users/miyukki","html_url":"https://github.com/miyukki","followers_url":"https://api.github.com/users/miyukki/followers","following_url":"https://api.github.com/users/miyukki/following{/other_user}","gists_url":"https://api.github.com/users/miyukki/gists{/gist_id}","starred_url":"https://api.github.com/users/miyukki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyukki/subscriptions","organizations_url":"https://api.github.com/users/miyukki/orgs","repos_url":"https://api.github.com/users/miyukki/repos","events_url":"https://api.github.com/users/miyukki/events{/privacy}","received_events_url":"https://api.github.com/users/miyukki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miyukki/hound-ci-test","description":"","fork":false,"url":"https://api.github.com/repos/miyukki/hound-ci-test","forks_url":"https://api.github.com/repos/miyukki/hound-ci-test/forks","keys_url":"https://api.github.com/repos/miyukki/hound-ci-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miyukki/hound-ci-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miyukki/hound-ci-test/teams","hooks_url":"https://api.github.com/repos/miyukki/hound-ci-test/hooks","issue_events_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/events{/number}","events_url":"https://api.github.com/repos/miyukki/hound-ci-test/events","assignees_url":"https://api.github.com/repos/miyukki/hound-ci-test/assignees{/user}","branches_url":"https://api.github.com/repos/miyukki/hound-ci-test/branches{/branch}","tags_url":"https://api.github.com/repos/miyukki/hound-ci-test/tags","blobs_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miyukki/hound-ci-test/statuses/{sha}","languages_url":"https://api.github.com/repos/miyukki/hound-ci-test/languages","stargazers_url":"https://api.github.com/repos/miyukki/hound-ci-test/stargazers","contributors_url":"https://api.github.com/repos/miyukki/hound-ci-test/contributors","subscribers_url":"https://api.github.com/repos/miyukki/hound-ci-test/subscribers","subscription_url":"https://api.github.com/repos/miyukki/hound-ci-test/subscription","commits_url":"https://api.github.com/repos/miyukki/hound-ci-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/miyukki/hound-ci-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/miyukki/hound-ci-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/miyukki/hound-ci-test/contents/{+path}","compare_url":"https://api.github.com/repos/miyukki/hound-ci-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miyukki/hound-ci-test/merges","archive_url":"https://api.github.com/repos/miyukki/hound-ci-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miyukki/hound-ci-test/downloads","issues_url":"https://api.github.com/repos/miyukki/hound-ci-test/issues{/number}","pulls_url":"https://api.github.com/repos/miyukki/hound-ci-test/pulls{/number}","milestones_url":"https://api.github.com/repos/miyukki/hound-ci-test/milestones{/number}","notifications_url":"https://api.github.com/repos/miyukki/hound-ci-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miyukki/hound-ci-test/labels{/name}","releases_url":"https://api.github.com/repos/miyukki/hound-ci-test/releases{/id}","created_at":"2015-09-03T01:52:09Z","updated_at":"2015-09-03T01:52:09Z","pushed_at":"2015-09-03T02:08:06Z","git_url":"git://github.com/miyukki/hound-ci-test.git","ssh_url":"git@github.com:miyukki/hound-ci-test.git","clone_url":"https://github.com/miyukki/hound-ci-test.git","svn_url":"https://github.com/miyukki/hound-ci-test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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/miyukki/hound-ci-test/pulls/1"},"html":{"href":"https://github.com/miyukki/hound-ci-test/pull/1"},"issue":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/issues/1"},"comments":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/miyukki/hound-ci-test/statuses/6b25e90bfe31d7477b82d2d5e42eeb588223700f"}}}}