{"action":"closed","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1838","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1838/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1838/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1838/events","html_url":"https://github.com/bbatsov/rubocop/issues/1838","id":71291269,"number":1838,"title":"Performance/Sample bug with #shuffle","user":{"login":"dziemba","id":7718617,"avatar_url":"https://avatars.githubusercontent.com/u/7718617?v=3","gravatar_id":"","url":"https://api.github.com/users/dziemba","html_url":"https://github.com/dziemba","followers_url":"https://api.github.com/users/dziemba/followers","following_url":"https://api.github.com/users/dziemba/following{/other_user}","gists_url":"https://api.github.com/users/dziemba/gists{/gist_id}","starred_url":"https://api.github.com/users/dziemba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dziemba/subscriptions","organizations_url":"https://api.github.com/users/dziemba/orgs","repos_url":"https://api.github.com/users/dziemba/repos","events_url":"https://api.github.com/users/dziemba/events{/privacy}","received_events_url":"https://api.github.com/users/dziemba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bbatsov/rubocop/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-27T13:55:00Z","updated_at":"2015-07-09T08:36:40Z","closed_at":"2015-07-09T08:36:40Z","body":"Running the latest rubocop on the following code:\r\n\r\n```ruby\r\ndef m\r\n  [1].shuffle\r\nend\r\n```\r\n\r\ncauses an error:\r\n\r\n```\r\n1 error occurred:\r\nAn error occurred while Performance/Sample cop was inspecting test.rb.\r\nErrors are usually caused by RuboCop bugs.\r\nPlease, report your problems to RuboCop's issue tracker.\r\nMention the following information in the issue report:\r\n0.30.1 (using Parser 2.2.2.1, running on ruby 2.2.1 x86_64-darwin14)\r\n```"}}