{"action":"opened","number":2371,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371","id":49139771,"html_url":"https://github.com/bbatsov/rubocop/pull/2371","diff_url":"https://github.com/bbatsov/rubocop/pull/2371.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/2371.patch","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2371","number":2371,"state":"open","locked":false,"title":"Unused args cops can be configured to ignore empty methods/blocks","user":{"login":"alexdowad","id":1067359,"avatar_url":"https://avatars.githubusercontent.com/u/1067359?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdowad","html_url":"https://github.com/alexdowad","followers_url":"https://api.github.com/users/alexdowad/followers","following_url":"https://api.github.com/users/alexdowad/following{/other_user}","gists_url":"https://api.github.com/users/alexdowad/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdowad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdowad/subscriptions","organizations_url":"https://api.github.com/users/alexdowad/orgs","repos_url":"https://api.github.com/users/alexdowad/repos","events_url":"https://api.github.com/users/alexdowad/events{/privacy}","received_events_url":"https://api.github.com/users/alexdowad/received_events","type":"User","site_admin":false},"body":"I also took the opportunity to do some cleanup at the same time:\r\n\r\n- `cop_config` returns an empty `Hash` if there are no configuration parameters for a cop. This makes extra guard clauses unnecessary.\r\n- Cop class and module have been merged into one. (Rationale is in the commit message.)\r\n- Corrected pervasive misspelling of \"parentheses\".","created_at":"2015-10-29T13:37:21Z","updated_at":"2015-10-29T13:37:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371/commits","review_comments_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371/comments","review_comment_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2371/comments","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/1fe41e8558fee434064897431462e2f97d362091","head":{"label":"alexdowad:configurable_unused_ar","ref":"configurable_unused_ar","sha":"1fe41e8558fee434064897431462e2f97d362091","user":{"login":"alexdowad","id":1067359,"avatar_url":"https://avatars.githubusercontent.com/u/1067359?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdowad","html_url":"https://github.com/alexdowad","followers_url":"https://api.github.com/users/alexdowad/followers","following_url":"https://api.github.com/users/alexdowad/following{/other_user}","gists_url":"https://api.github.com/users/alexdowad/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdowad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdowad/subscriptions","organizations_url":"https://api.github.com/users/alexdowad/orgs","repos_url":"https://api.github.com/users/alexdowad/repos","events_url":"https://api.github.com/users/alexdowad/events{/privacy}","received_events_url":"https://api.github.com/users/alexdowad/received_events","type":"User","site_admin":false},"repo":{"id":44952980,"name":"rubocop","full_name":"alexdowad/rubocop","owner":{"login":"alexdowad","id":1067359,"avatar_url":"https://avatars.githubusercontent.com/u/1067359?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdowad","html_url":"https://github.com/alexdowad","followers_url":"https://api.github.com/users/alexdowad/followers","following_url":"https://api.github.com/users/alexdowad/following{/other_user}","gists_url":"https://api.github.com/users/alexdowad/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdowad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdowad/subscriptions","organizations_url":"https://api.github.com/users/alexdowad/orgs","repos_url":"https://api.github.com/users/alexdowad/repos","events_url":"https://api.github.com/users/alexdowad/events{/privacy}","received_events_url":"https://api.github.com/users/alexdowad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexdowad/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/alexdowad/rubocop","forks_url":"https://api.github.com/repos/alexdowad/rubocop/forks","keys_url":"https://api.github.com/repos/alexdowad/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexdowad/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexdowad/rubocop/teams","hooks_url":"https://api.github.com/repos/alexdowad/rubocop/hooks","issue_events_url":"https://api.github.com/repos/alexdowad/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/alexdowad/rubocop/events","assignees_url":"https://api.github.com/repos/alexdowad/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/alexdowad/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/alexdowad/rubocop/tags","blobs_url":"https://api.github.com/repos/alexdowad/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexdowad/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexdowad/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexdowad/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexdowad/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/alexdowad/rubocop/languages","stargazers_url":"https://api.github.com/repos/alexdowad/rubocop/stargazers","contributors_url":"https://api.github.com/repos/alexdowad/rubocop/contributors","subscribers_url":"https://api.github.com/repos/alexdowad/rubocop/subscribers","subscription_url":"https://api.github.com/repos/alexdowad/rubocop/subscription","commits_url":"https://api.github.com/repos/alexdowad/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexdowad/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexdowad/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexdowad/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexdowad/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/alexdowad/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexdowad/rubocop/merges","archive_url":"https://api.github.com/repos/alexdowad/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexdowad/rubocop/downloads","issues_url":"https://api.github.com/repos/alexdowad/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/alexdowad/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/alexdowad/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/alexdowad/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexdowad/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/alexdowad/rubocop/releases{/id}","created_at":"2015-10-26T07:36:16Z","updated_at":"2015-10-26T07:36:20Z","pushed_at":"2015-10-29T13:35:38Z","git_url":"git://github.com/alexdowad/rubocop.git","ssh_url":"git@github.com:alexdowad/rubocop.git","clone_url":"https://github.com/alexdowad/rubocop.git","svn_url":"https://github.com/alexdowad/rubocop","homepage":"","size":9544,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"2139974f110da8008f5bedae9819d11519204791","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-10-29T09:49:48Z","pushed_at":"2015-10-29T13:32:43Z","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":22242,"stargazers_count":5342,"watchers_count":5342,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":644,"mirror_url":null,"open_issues_count":123,"forks":644,"open_issues":123,"watchers":5342,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/2371"},"issue":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2371"},"comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2371/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2371/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/rubocop/statuses/1fe41e8558fee434064897431462e2f97d362091"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":531,"deletions":523,"changed_files":330}}