{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1831","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1831/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1831/events","html_url":"https://github.com/bbatsov/rubocop/pull/1831","id":70849799,"number":1831,"title":"Parallel assignment","user":{"login":"rrosenblum","id":1528852,"avatar_url":"https://avatars.githubusercontent.com/u/1528852?v=3","gravatar_id":"","url":"https://api.github.com/users/rrosenblum","html_url":"https://github.com/rrosenblum","followers_url":"https://api.github.com/users/rrosenblum/followers","following_url":"https://api.github.com/users/rrosenblum/following{/other_user}","gists_url":"https://api.github.com/users/rrosenblum/gists{/gist_id}","starred_url":"https://api.github.com/users/rrosenblum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrosenblum/subscriptions","organizations_url":"https://api.github.com/users/rrosenblum/orgs","repos_url":"https://api.github.com/users/rrosenblum/repos","events_url":"https://api.github.com/users/rrosenblum/events{/privacy}","received_events_url":"https://api.github.com/users/rrosenblum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-25T04:05:53Z","updated_at":"2015-04-26T04:20:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/1831","html_url":"https://github.com/bbatsov/rubocop/pull/1831","diff_url":"https://github.com/bbatsov/rubocop/pull/1831.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/1831.patch"},"body":"This fixes #1136.\r\n\r\nI have been working on this cop for quite some time, and I think that I finally have all the kinks worked out. It will only register an offense when the number of variables being assigned to matches the number of assigning variables. It will also allow you to perform variable reassignment (`a, b = b, a`). Any assignment using splat or a method is also allowed.\r\n\r\nI think that this will be able to detect a large number of offenses while allowing parallel assignment where you would want to use it. \r\n\r\nPlease look over it and let me know if you have any concerns with this cop."},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/96321633","html_url":"https://github.com/bbatsov/rubocop/pull/1831#issuecomment-96321633","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1831","id":96321633,"user":{"login":"rrosenblum","id":1528852,"avatar_url":"https://avatars.githubusercontent.com/u/1528852?v=3","gravatar_id":"","url":"https://api.github.com/users/rrosenblum","html_url":"https://github.com/rrosenblum","followers_url":"https://api.github.com/users/rrosenblum/followers","following_url":"https://api.github.com/users/rrosenblum/following{/other_user}","gists_url":"https://api.github.com/users/rrosenblum/gists{/gist_id}","starred_url":"https://api.github.com/users/rrosenblum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrosenblum/subscriptions","organizations_url":"https://api.github.com/users/rrosenblum/orgs","repos_url":"https://api.github.com/users/rrosenblum/repos","events_url":"https://api.github.com/users/rrosenblum/events{/privacy}","received_events_url":"https://api.github.com/users/rrosenblum/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T04:20:32Z","updated_at":"2015-04-26T04:20:32Z","body":"I have split the fixing of offenses into 2 commits."}}