{"action":"created","issue":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6911","repository_url":"https://api.github.com/repos/rubocop-hq/rubocop","labels_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6911/labels{/name}","comments_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6911/comments","events_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6911/events","html_url":"https://github.com/rubocop-hq/rubocop/issues/6911","id":430808292,"node_id":"MDU6SXNzdWU0MzA4MDgyOTI=","number":6911,"title":"Layout/IndentAssignment false positive when assigning multiple values","user":{"login":"Eneroth3","id":5631725,"node_id":"MDQ6VXNlcjU2MzE3MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5631725?v=4","gravatar_id":"","url":"https://api.github.com/users/Eneroth3","html_url":"https://github.com/Eneroth3","followers_url":"https://api.github.com/users/Eneroth3/followers","following_url":"https://api.github.com/users/Eneroth3/following{/other_user}","gists_url":"https://api.github.com/users/Eneroth3/gists{/gist_id}","starred_url":"https://api.github.com/users/Eneroth3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eneroth3/subscriptions","organizations_url":"https://api.github.com/users/Eneroth3/orgs","repos_url":"https://api.github.com/users/Eneroth3/repos","events_url":"https://api.github.com/users/Eneroth3/events{/privacy}","received_events_url":"https://api.github.com/users/Eneroth3/received_events","type":"User","site_admin":false},"labels":[{"id":1353058505,"node_id":"MDU6TGFiZWwxMzUzMDU4NTA1","url":"https://api.github.com/repos/rubocop-hq/rubocop/labels/stale","name":"stale","color":"e83cc5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-04-09T07:25:53Z","updated_at":"2019-05-09T07:43:20Z","closed_at":null,"author_association":"NONE","body":"When assigning multiple values on one line to a value defined on the below line, as shown here, the Layout/IndentAssignment cop has a false positive.\r\n\r\n```ruby\r\na = b =\r\n  c\r\n```\r\n\r\nThe reason why I am making such assignments in the first place is due to the history of the SketchUp Ruby API. When creating a command (a toolbar button) we previously defined a path to a small icon and a path to a large icon, as there are two toolbar scales users can chose from. For the last couple of years though vector icons have been supported, and the large and small icon path typically has the same value, but still needs to be both assigned.\r\n\r\n```ruby\r\nsave_cmd.large_icon = save_cmd.small_icon =\r\n  File.join(PLUGIN_DIR, \"images\", \"tb_save#{LUI.icon_file_extension}\")\r\n```\r\n--------\r\n\r\n## Expected behavior\r\n\r\nCode passes with no offense as the subsequent line is indented.\r\n\r\n## Actual behavior\r\n\r\nLayout/IndentAssignment offense detected, due to right-hand-side not being indented.\r\n\r\n## Steps to reproduce the problem\r\n\r\nCheck following code with RuboCop:\r\n```ruby\r\nsave_cmd.large_icon = save_cmd.small_icon =\r\n  File.join(PLUGIN_DIR, \"images\", \"tb_save#{LUI.icon_file_extension}\")\r\n```\r\n\r\n## RuboCop version\r\n\r\n```\r\nrubocop -V\r\n0.63.1 (using Parser 2.5.1.2, running on ruby 2.4.2 x64-mingw32)\r\n```\r\n(Latest version compatible with [rubocop-sketchup](https://github.com/SketchUp/rubocop-sketchup) it seems)\r\n"},"comment":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/comments/490790374","html_url":"https://github.com/rubocop-hq/rubocop/issues/6911#issuecomment-490790374","issue_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/6911","id":490790374,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MDc5MDM3NA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-05-09T07:43:19Z","updated_at":"2019-05-09T07:43:19Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!\n"}}
{"actor":{"display_login":"stale"}}