{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/3319","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3319/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3319/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3319/events","html_url":"https://github.com/bbatsov/rubocop/pull/3319","id":165610823,"number":3319,"title":"Extend `Style/MethodMissing` cop to check for the conditions in the style guide","user":{"login":"Drenmi","id":5259935,"avatar_url":"https://avatars.githubusercontent.com/u/5259935?v=3","gravatar_id":"","url":"https://api.github.com/users/Drenmi","html_url":"https://github.com/Drenmi","followers_url":"https://api.github.com/users/Drenmi/followers","following_url":"https://api.github.com/users/Drenmi/following{/other_user}","gists_url":"https://api.github.com/users/Drenmi/gists{/gist_id}","starred_url":"https://api.github.com/users/Drenmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drenmi/subscriptions","organizations_url":"https://api.github.com/users/Drenmi/orgs","repos_url":"https://api.github.com/users/Drenmi/repos","events_url":"https://api.github.com/users/Drenmi/events{/privacy}","received_events_url":"https://api.github.com/users/Drenmi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T17:04:01Z","updated_at":"2016-07-15T07:58:02Z","closed_at":"2016-07-15T07:57:56Z","pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/3319","html_url":"https://github.com/bbatsov/rubocop/pull/3319","diff_url":"https://github.com/bbatsov/rubocop/pull/3319.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/3319.patch"},"body":"As promised in https://github.com/bbatsov/rubocop/pull/3244, here's an extension to `Style/MethodMissing`.\r\n\r\nThis cop was very basic, and would only check for definitions of `#method_missing`. This addresses that by checking for the following conditions outlined in the style guide:\r\n\r\n - The parent class or module also implements `#respond_to_missing?`\r\n - The `#method_missing` definition falls back on `#super`\r\n\r\nI decided not to add the third condition at this point in time, as it proved quite prone to false positives.\r\n\r\nNote that this cop will give a false positive if `#method_missing` and `#respond_to_missing?` are defined in separate class definitions. (Why anyone would do that, I don't know, but still thought it's worth mentioning. 😁 )"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/232887578","html_url":"https://github.com/bbatsov/rubocop/pull/3319#issuecomment-232887578","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/3319","id":232887578,"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},"created_at":"2016-07-15T07:58:02Z","updated_at":"2016-07-15T07:58:02Z","body":"👍 Looks good!"}}
{"actor":{"display_login":"bbatsov"}}