GitHub PullRequestEvent at 2014-05-24 20:13:44
Repository: ruby-style-guide
Actor: maxlinc
Payload: {"action":"opened","number":320,"pull_request":{"url":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320","id":16308603,"html_url":"https://github.com/bbatsov/ruby-style-guide/pull/320","diff_url":"https://github.com/bbatsov/ruby-style-guide/pull/320.diff","patch_url":"https://github.com/bbatsov/ruby-style-guide/pull/320.patch","issue_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/320","number":320,"state":"open","title":"Multiple assignments per expression","user":{"login":"maxlinc","id":896878,"avatar_url":"https://avatars.githubusercontent.com/u/896878?","gravatar_id":"9b142d5f1d946a0a9751bdabce91794c","url":"https://api.github.com/users/maxlinc","html_url":"https://github.com/maxlinc","followers_url":"https://api.github.com/users/maxlinc/followers","following_url":"https://api.github.com/users/maxlinc/following{/other_user}","gists_url":"https://api.github.com/users/maxlinc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxlinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxlinc/subscriptions","organizations_url":"https://api.github.com/users/maxlinc/orgs","repos_url":"https://api.github.com/users/maxlinc/repos","events_url":"https://api.github.com/users/maxlinc/events{/privacy}","received_events_url":"https://api.github.com/users/maxlinc/received_events","type":"User","site_admin":false},"body":"@lolmaus tracked this down in https://github.com/middleman/middleman/issues/501#issuecomment-44087354, and I thought it would be a good addition to the style guide / rubocop.\r\n\r\nPerhaps I over generalized, but I would be in favor of any recommendation that catches this code:\r\n```ruby\r\n@current_locks = locks, @current_opts = opts\r\n```","created_at":"2014-05-24T20:13:43Z","updated_at":"2014-05-24T20:13:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320/commits","review_comments_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320/comments","review_comment_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/320/comments","statuses_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/statuses/c94eace4fead924c3e6e0ac2b06811661caf9b61","head":{"label":"maxlinc:patch-1","ref":"patch-1","sha":"c94eace4fead924c3e6e0ac2b06811661caf9b61","user":{"login":"maxlinc","id":896878,"avatar_url":"https://avatars.githubusercontent.com/u/896878?","gravatar_id":"9b142d5f1d946a0a9751bdabce91794c","url":"https://api.github.com/users/maxlinc","html_url":"https://github.com/maxlinc","followers_url":"https://api.github.com/users/maxlinc/followers","following_url":"https://api.github.com/users/maxlinc/following{/other_user}","gists_url":"https://api.github.com/users/maxlinc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxlinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxlinc/subscriptions","organizations_url":"https://api.github.com/users/maxlinc/orgs","repos_url":"https://api.github.com/users/maxlinc/repos","events_url":"https://api.github.com/users/maxlinc/events{/privacy}","received_events_url":"https://api.github.com/users/maxlinc/received_events","type":"User","site_admin":false},"repo":{"id":20138028,"name":"ruby-style-guide","full_name":"maxlinc/ruby-style-guide","owner":{"login":"maxlinc","id":896878,"avatar_url":"https://avatars.githubusercontent.com/u/896878?","gravatar_id":"9b142d5f1d946a0a9751bdabce91794c","url":"https://api.github.com/users/maxlinc","html_url":"https://github.com/maxlinc","followers_url":"https://api.github.com/users/maxlinc/followers","following_url":"https://api.github.com/users/maxlinc/following{/other_user}","gists_url":"https://api.github.com/users/maxlinc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxlinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxlinc/subscriptions","organizations_url":"https://api.github.com/users/maxlinc/orgs","repos_url":"https://api.github.com/users/maxlinc/repos","events_url":"https://api.github.com/users/maxlinc/events{/privacy}","received_events_url":"https://api.github.com/users/maxlinc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxlinc/ruby-style-guide","description":"A community-driven Ruby coding style guide","fork":true,"url":"https://api.github.com/repos/maxlinc/ruby-style-guide","forks_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/forks","keys_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/teams","hooks_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/hooks","issue_events_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/events","assignees_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/tags","blobs_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/languages","stargazers_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/stargazers","contributors_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/contributors","subscribers_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/subscribers","subscription_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/subscription","commits_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/issues/comments/{number}","contents_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/merges","archive_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/downloads","issues_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/maxlinc/ruby-style-guide/releases{/id}","created_at":"2014-05-24T19:44:08Z","updated_at":"2014-05-24T20:13:43Z","pushed_at":"2014-05-24T20:13:08Z","git_url":"git://github.com/maxlinc/ruby-style-guide.git","ssh_url":"git@github.com:maxlinc/ruby-style-guide.git","clone_url":"https://github.com/maxlinc/ruby-style-guide.git","svn_url":"https://github.com/maxlinc/ruby-style-guide","homepage":"","size":3195,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":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":"88fc53e116e1d6ccfb09ad87b0f4d0b39b5b29e5","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?","gravatar_id":"7710f41976a45c0b25deaf0f2a4577bc","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":2371106,"name":"ruby-style-guide","full_name":"bbatsov/ruby-style-guide","owner":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?","gravatar_id":"7710f41976a45c0b25deaf0f2a4577bc","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/ruby-style-guide","description":"A community-driven Ruby coding style guide","fork":false,"url":"https://api.github.com/repos/bbatsov/ruby-style-guide","forks_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/forks","keys_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/teams","hooks_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/hooks","issue_events_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/events","assignees_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/tags","blobs_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/languages","stargazers_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/stargazers","contributors_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/contributors","subscribers_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/subscribers","subscription_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/subscription","commits_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/comments/{number}","contents_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/merges","archive_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/downloads","issues_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/releases{/id}","created_at":"2011-09-12T13:03:05Z","updated_at":"2014-05-24T16:52:56Z","pushed_at":"2014-05-14T19:29:09Z","git_url":"git://github.com/bbatsov/ruby-style-guide.git","ssh_url":"git@github.com:bbatsov/ruby-style-guide.git","clone_url":"https://github.com/bbatsov/ruby-style-guide.git","svn_url":"https://github.com/bbatsov/ruby-style-guide","homepage":"","size":3195,"stargazers_count":5768,"watchers_count":5768,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1428,"mirror_url":null,"open_issues_count":34,"forks":1428,"open_issues":34,"watchers":5768,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320"},"html":{"href":"https://github.com/bbatsov/ruby-style-guide/pull/320"},"issue":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/320"},"comments":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/320/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/pulls/320/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/ruby-style-guide/statuses/c94eace4fead924c3e6e0ac2b06811661caf9b61"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":0,"changed_files":1}}