{"action":"closed","number":1858,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858","id":34596929,"html_url":"https://github.com/bbatsov/rubocop/pull/1858","diff_url":"https://github.com/bbatsov/rubocop/pull/1858.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/1858.patch","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1858","number":1858,"state":"closed","locked":false,"title":"[Close #1837] Add EachWithObjectArgument cop","user":{"login":"jonas054","id":336720,"avatar_url":"https://avatars.githubusercontent.com/u/336720?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas054","html_url":"https://github.com/jonas054","followers_url":"https://api.github.com/users/jonas054/followers","following_url":"https://api.github.com/users/jonas054/following{/other_user}","gists_url":"https://api.github.com/users/jonas054/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas054/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas054/subscriptions","organizations_url":"https://api.github.com/users/jonas054/orgs","repos_url":"https://api.github.com/users/jonas054/repos","events_url":"https://api.github.com/users/jonas054/events{/privacy}","received_events_url":"https://api.github.com/users/jonas054/received_events","type":"User","site_admin":false},"body":"A lint cop to detect a bug in the usage of `Enumerable#each_with_object`.","created_at":"2015-05-03T06:03:46Z","updated_at":"2015-05-03T06:33:03Z","closed_at":"2015-05-03T06:33:03Z","merged_at":"2015-05-03T06:33:03Z","merge_commit_sha":"383374a5f16991f8ea6535ec35b1be9847e7f449","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858/commits","review_comments_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858/comments","review_comment_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1858/comments","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/b3d9df06f451b9e39f8e36bfb2e5fe5c27484aab","head":{"label":"jonas054:1837_each_with_object","ref":"1837_each_with_object","sha":"b3d9df06f451b9e39f8e36bfb2e5fe5c27484aab","user":{"login":"jonas054","id":336720,"avatar_url":"https://avatars.githubusercontent.com/u/336720?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas054","html_url":"https://github.com/jonas054","followers_url":"https://api.github.com/users/jonas054/followers","following_url":"https://api.github.com/users/jonas054/following{/other_user}","gists_url":"https://api.github.com/users/jonas054/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas054/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas054/subscriptions","organizations_url":"https://api.github.com/users/jonas054/orgs","repos_url":"https://api.github.com/users/jonas054/repos","events_url":"https://api.github.com/users/jonas054/events{/privacy}","received_events_url":"https://api.github.com/users/jonas054/received_events","type":"User","site_admin":false},"repo":{"id":6784696,"name":"rubocop","full_name":"jonas054/rubocop","owner":{"login":"jonas054","id":336720,"avatar_url":"https://avatars.githubusercontent.com/u/336720?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas054","html_url":"https://github.com/jonas054","followers_url":"https://api.github.com/users/jonas054/followers","following_url":"https://api.github.com/users/jonas054/following{/other_user}","gists_url":"https://api.github.com/users/jonas054/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas054/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas054/subscriptions","organizations_url":"https://api.github.com/users/jonas054/orgs","repos_url":"https://api.github.com/users/jonas054/repos","events_url":"https://api.github.com/users/jonas054/events{/privacy}","received_events_url":"https://api.github.com/users/jonas054/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonas054/rubocop","description":"A robust Ruby code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/jonas054/rubocop","forks_url":"https://api.github.com/repos/jonas054/rubocop/forks","keys_url":"https://api.github.com/repos/jonas054/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonas054/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonas054/rubocop/teams","hooks_url":"https://api.github.com/repos/jonas054/rubocop/hooks","issue_events_url":"https://api.github.com/repos/jonas054/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/jonas054/rubocop/events","assignees_url":"https://api.github.com/repos/jonas054/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/jonas054/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/jonas054/rubocop/tags","blobs_url":"https://api.github.com/repos/jonas054/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonas054/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonas054/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonas054/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonas054/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/jonas054/rubocop/languages","stargazers_url":"https://api.github.com/repos/jonas054/rubocop/stargazers","contributors_url":"https://api.github.com/repos/jonas054/rubocop/contributors","subscribers_url":"https://api.github.com/repos/jonas054/rubocop/subscribers","subscription_url":"https://api.github.com/repos/jonas054/rubocop/subscription","commits_url":"https://api.github.com/repos/jonas054/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonas054/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonas054/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonas054/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonas054/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/jonas054/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonas054/rubocop/merges","archive_url":"https://api.github.com/repos/jonas054/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonas054/rubocop/downloads","issues_url":"https://api.github.com/repos/jonas054/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/jonas054/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/jonas054/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/jonas054/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonas054/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/jonas054/rubocop/releases{/id}","created_at":"2012-11-20T20:34:59Z","updated_at":"2014-11-08T07:23:45Z","pushed_at":"2015-05-03T06:03:08Z","git_url":"git://github.com/jonas054/rubocop.git","ssh_url":"git@github.com:jonas054/rubocop.git","clone_url":"https://github.com/jonas054/rubocop.git","svn_url":"https://github.com/jonas054/rubocop","homepage":"","size":10488,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"bbatsov:master","ref":"master","sha":"19615076fce251927658d68bd39ad63d3622275c","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"repo":{"id":4095287,"name":"rubocop","full_name":"bbatsov/rubocop","owner":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbatsov/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":false,"url":"https://api.github.com/repos/bbatsov/rubocop","forks_url":"https://api.github.com/repos/bbatsov/rubocop/forks","keys_url":"https://api.github.com/repos/bbatsov/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbatsov/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbatsov/rubocop/teams","hooks_url":"https://api.github.com/repos/bbatsov/rubocop/hooks","issue_events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/bbatsov/rubocop/events","assignees_url":"https://api.github.com/repos/bbatsov/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/bbatsov/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/bbatsov/rubocop/tags","blobs_url":"https://api.github.com/repos/bbatsov/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbatsov/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbatsov/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbatsov/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/bbatsov/rubocop/languages","stargazers_url":"https://api.github.com/repos/bbatsov/rubocop/stargazers","contributors_url":"https://api.github.com/repos/bbatsov/rubocop/contributors","subscribers_url":"https://api.github.com/repos/bbatsov/rubocop/subscribers","subscription_url":"https://api.github.com/repos/bbatsov/rubocop/subscription","commits_url":"https://api.github.com/repos/bbatsov/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbatsov/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbatsov/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/bbatsov/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbatsov/rubocop/merges","archive_url":"https://api.github.com/repos/bbatsov/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbatsov/rubocop/downloads","issues_url":"https://api.github.com/repos/bbatsov/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/bbatsov/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/bbatsov/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/bbatsov/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbatsov/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/bbatsov/rubocop/releases{/id}","created_at":"2012-04-21T10:09:58Z","updated_at":"2015-05-03T05:30:26Z","pushed_at":"2015-05-03T06:33:03Z","git_url":"git://github.com/bbatsov/rubocop.git","ssh_url":"git@github.com:bbatsov/rubocop.git","clone_url":"https://github.com/bbatsov/rubocop.git","svn_url":"https://github.com/bbatsov/rubocop","homepage":"","size":20497,"stargazers_count":4434,"watchers_count":4434,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":458,"mirror_url":null,"open_issues_count":83,"forks":458,"open_issues":83,"watchers":4434,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/1858"},"issue":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/1858"},"comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/1858/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/1858/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/rubocop/statuses/b3d9df06f451b9e39f8e36bfb2e5fe5c27484aab"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":80,"deletions":0,"changed_files":5}}