{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2398","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2398/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2398/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2398/events","html_url":"https://github.com/bbatsov/rubocop/pull/2398","id":115486748,"number":2398,"title":"Add #assignment? and #asgn_method_call? to Node, use to make code more concise","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-06T11:21:31Z","updated_at":"2015-11-06T16:33:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2398","html_url":"https://github.com/bbatsov/rubocop/pull/2398","diff_url":"https://github.com/bbatsov/rubocop/pull/2398.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/2398.patch"},"body":"Leveraging `NodePattern` to do some refactoring here.\r\n\r\nA test case for the ABC cop has been adjusted, because this code:\r\n\r\n   x[0] = 1\r\n\r\n...is now counted as an assignment and a method call, rather than 2 method calls."},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/154461573","html_url":"https://github.com/bbatsov/rubocop/pull/2398#issuecomment-154461573","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2398","id":154461573,"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":"2015-11-06T16:33:39Z","updated_at":"2015-11-06T16:33:39Z","body":"Yeah, I know what you mean. But I've always been a bit believer in pushing things forward and would never support an obsolete technology just to prolong the agony of its users. "}}