{"action":"closed","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2819","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2819/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2819/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2819/events","html_url":"https://github.com/bbatsov/rubocop/issues/2819","id":132546265,"number":2819,"title":"Infinite loop correcting Style/SpaceAroundOperators","user":{"login":"ggilder","id":331289,"avatar_url":"https://avatars.githubusercontent.com/u/331289?v=3","gravatar_id":"","url":"https://api.github.com/users/ggilder","html_url":"https://github.com/ggilder","followers_url":"https://api.github.com/users/ggilder/followers","following_url":"https://api.github.com/users/ggilder/following{/other_user}","gists_url":"https://api.github.com/users/ggilder/gists{/gist_id}","starred_url":"https://api.github.com/users/ggilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggilder/subscriptions","organizations_url":"https://api.github.com/users/ggilder/orgs","repos_url":"https://api.github.com/users/ggilder/repos","events_url":"https://api.github.com/users/ggilder/events{/privacy}","received_events_url":"https://api.github.com/users/ggilder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T21:50:07Z","updated_at":"2016-02-09T22:40:51Z","closed_at":"2016-02-09T22:40:51Z","body":"Source to reproduce:\r\n\r\n```ruby\r\nattrs = {}\r\nattrs[:foo], attrs[:bar] = call_some_method\r\nattrs\r\n```\r\n\r\nError looks like:\r\n\r\n```\r\n➤ ./bin/rubocop -D --auto-correct ~/Development/cbms/test.rb\r\nInspecting 1 file\r\nC\r\n\r\nOffenses:\r\n\r\n/Users/gabriel/Development/cbms/test.rb:2:6: C: [Corrected] Style/SpaceAroundOperators: Surrounding space missing for operator [:foo].\r\nattrs[:foo], attrs[:bar] = call_some_method\r\n     ^^^^^^\r\n/Users/gabriel/Development/cbms/test.rb:2:7: C: [Corrected] Style/SpaceAroundOperators: Surrounding space missing for operator [:foo].\r\nattrs [:foo], attrs [:bar] = call_some_method\r\n      ^^^^^^\r\n/Users/gabriel/Development/cbms/test.rb:2:13: C: [Corrected] Style/SpaceBeforeComma: Space found before comma.\r\nattrs [:foo] , attrs [:bar] = call_some_method\r\n            ^\r\n/Users/gabriel/Development/cbms/test.rb:2:19: C: [Corrected] Style/SpaceAroundOperators: Surrounding space missing for operator [:bar].\r\nattrs[:foo], attrs[:bar] = call_some_method\r\n                  ^^^^^^\r\n\r\n0 files inspected, 4 offenses detected, 4 offenses corrected\r\n/Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:184:in `check_for_infinite_loop': Infinite loop detected in /Users/gabriel/Development/cbms/test.rb. (RuboCop::Runner::InfiniteCorrectionLoop)\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:159:in `block in do_inspection_loop'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:158:in `loop'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:158:in `do_inspection_loop'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:87:in `process_file'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:59:in `block in inspect_files'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:57:in `each'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:57:in `inspect_files'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/runner.rb:35:in `run'\r\n    from /Users/gabriel/oss/rubocop/lib/rubocop/cli.rb:30:in `run'\r\n    from ./bin/rubocop:14:in `block in <main>'\r\n    from /Users/gabriel/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\n    from ./bin/rubocop:13:in `<main>'\r\n```"}}