{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1891","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1891/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1891/events","html_url":"https://github.com/bbatsov/rubocop/pull/1891","id":76205766,"number":1891,"title":"[Fix #1868] Do not register an offense in Performance/Count for select called as a static method","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":1,"created_at":"2015-05-14T02:44:37Z","updated_at":"2015-05-14T06:16:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/1891","html_url":"https://github.com/bbatsov/rubocop/pull/1891","diff_url":"https://github.com/bbatsov/rubocop/pull/1891.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/1891.patch"},"body":"This should unscope most calls to ActiveRecord's `select` methods making this cop safer to use."},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/101933040","html_url":"https://github.com/bbatsov/rubocop/pull/1891#issuecomment-101933040","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1891","id":101933040,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","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},"created_at":"2015-05-14T06:16:34Z","updated_at":"2015-05-14T06:16:34Z","body":"There's a problem with this, btw - for the parser `User` and `USER` are both simply constants. This fix will stop processing all constant receivers."}}