{"action":"created","issue":{"url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/21","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/21/comments","events_url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/21/events","html_url":"https://github.com/codeclimate/codeclimate-rubocop/pull/21","id":107596707,"number":21,"title":"Add RuboCop configuration and basic style corrections","user":{"login":"andyw8","id":13400,"avatar_url":"https://avatars.githubusercontent.com/u/13400?v=3","gravatar_id":"","url":"https://api.github.com/users/andyw8","html_url":"https://github.com/andyw8","followers_url":"https://api.github.com/users/andyw8/followers","following_url":"https://api.github.com/users/andyw8/following{/other_user}","gists_url":"https://api.github.com/users/andyw8/gists{/gist_id}","starred_url":"https://api.github.com/users/andyw8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyw8/subscriptions","organizations_url":"https://api.github.com/users/andyw8/orgs","repos_url":"https://api.github.com/users/andyw8/repos","events_url":"https://api.github.com/users/andyw8/events{/privacy}","received_events_url":"https://api.github.com/users/andyw8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T20:55:40Z","updated_at":"2015-09-22T16:35:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/pulls/21","html_url":"https://github.com/codeclimate/codeclimate-rubocop/pull/21","diff_url":"https://github.com/codeclimate/codeclimate-rubocop/pull/21.diff","patch_url":"https://github.com/codeclimate/codeclimate-rubocop/pull/21.patch"},"body":"It seems only fitting that the RuboCop engine should pass its own checks!\r\n\r\nI added a minimal configuration based on the current code, then ran\r\nRuboCop using the `-a` (autocorrect) option.\r\n\r\nThe only non-stylistic change I made was to use an `any?` block in place\r\nof a `detect` block combined with `!!`.\r\n\r\nThere are two violations remaining, both about method length, but\r\nsince there’s a little more involved I’ve left them alone."},"comment":{"url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/comments/142342499","html_url":"https://github.com/codeclimate/codeclimate-rubocop/pull/21#issuecomment-142342499","issue_url":"https://api.github.com/repos/codeclimate/codeclimate-rubocop/issues/21","id":142342499,"user":{"login":"wfleming","id":188402,"avatar_url":"https://avatars.githubusercontent.com/u/188402?v=3","gravatar_id":"","url":"https://api.github.com/users/wfleming","html_url":"https://github.com/wfleming","followers_url":"https://api.github.com/users/wfleming/followers","following_url":"https://api.github.com/users/wfleming/following{/other_user}","gists_url":"https://api.github.com/users/wfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/wfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfleming/subscriptions","organizations_url":"https://api.github.com/users/wfleming/orgs","repos_url":"https://api.github.com/users/wfleming/repos","events_url":"https://api.github.com/users/wfleming/events{/privacy}","received_events_url":"https://api.github.com/users/wfleming/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T16:35:02Z","updated_at":"2015-09-22T16:35:02Z","body":"Thanks @andyw8!"}}