{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/5300","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5300/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5300/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5300/events","html_url":"https://github.com/bbatsov/rubocop/pull/5300","id":284238969,"number":5300,"title":"Display correction candidate if an incorrect cop name is given","user":{"login":"yhirano55","id":15371677,"avatar_url":"https://avatars3.githubusercontent.com/u/15371677?v=4","gravatar_id":"","url":"https://api.github.com/users/yhirano55","html_url":"https://github.com/yhirano55","followers_url":"https://api.github.com/users/yhirano55/followers","following_url":"https://api.github.com/users/yhirano55/following{/other_user}","gists_url":"https://api.github.com/users/yhirano55/gists{/gist_id}","starred_url":"https://api.github.com/users/yhirano55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhirano55/subscriptions","organizations_url":"https://api.github.com/users/yhirano55/orgs","repos_url":"https://api.github.com/users/yhirano55/repos","events_url":"https://api.github.com/users/yhirano55/events{/privacy}","received_events_url":"https://api.github.com/users/yhirano55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-22T19:46:43Z","updated_at":"2017-12-23T00:43:23Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/5300","html_url":"https://github.com/bbatsov/rubocop/pull/5300","diff_url":"https://github.com/bbatsov/rubocop/pull/5300.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/5300.patch"},"body":"Maybe we cannot memorize correctly cop names.\r\n\r\nif an incorrect cop name is given with `--only` or `--except` options on CLI option,\r\nit just only raises exception. I think it's not friendly.\r\n\r\nSo I've added its error message to correction candidate.\r\n\r\nExample:\r\n\r\n```\r\n$ bundle exec rubocop --only Lint/Li\r\nInspecting 1081 files\r\n\r\n0 files inspected, no offenses detected\r\nUnrecognized cop or department: Lint/Li.\r\nDid you mean? Lint/LiteralAsCondition, Lint/LiteralInInterpolation\r\n...\r\n```\r\n\r\n-----------------\r\n\r\nBefore submitting the PR make sure the following are checked:\r\n\r\n* [x] Wrote [good commit messages][1].\r\n* [ ] Commit message starts with `[Fix #issue-number]` (if the related issue exists).\r\n* [x] Feature branch is up-to-date with `master` (if not - rebase it).\r\n* [x] Squashed related commits together.\r\n* [x] Added tests.\r\n* [x] Added an entry to the [Changelog](../blob/master/CHANGELOG.md) if the new code introduces user-observable changes. See [changelog entry format](../blob/master/CONTRIBUTING.md#changelog-entry-format).\r\n* [x] The PR relates to *only* one subject with a clear title\r\n  and description in grammatically correct, complete sentences.\r\n* [x] Run `rake default` or `rake parallel`. It executes all tests and RuboCop for itself, and generates the documentation.\r\n\r\n[1]: http://chris.beams.io/posts/git-commit/\r\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/353696130","html_url":"https://github.com/bbatsov/rubocop/pull/5300#issuecomment-353696130","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5300","id":353696130,"user":{"login":"garettarrowood","id":12770108,"avatar_url":"https://avatars3.githubusercontent.com/u/12770108?v=4","gravatar_id":"","url":"https://api.github.com/users/garettarrowood","html_url":"https://github.com/garettarrowood","followers_url":"https://api.github.com/users/garettarrowood/followers","following_url":"https://api.github.com/users/garettarrowood/following{/other_user}","gists_url":"https://api.github.com/users/garettarrowood/gists{/gist_id}","starred_url":"https://api.github.com/users/garettarrowood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garettarrowood/subscriptions","organizations_url":"https://api.github.com/users/garettarrowood/orgs","repos_url":"https://api.github.com/users/garettarrowood/repos","events_url":"https://api.github.com/users/garettarrowood/events{/privacy}","received_events_url":"https://api.github.com/users/garettarrowood/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T00:43:23Z","updated_at":"2017-12-23T00:43:23Z","author_association":"CONTRIBUTOR","body":"You should be good with a rebase. "}}
{"actor":{"display_login":"garettarrowood"}}