{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/7120","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/7120/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/7120/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/7120/events","html_url":"https://github.com/eslint/eslint/pull/7120","id":176264328,"number":7120,"title":"New: `class-methods-use-this`: add `exceptions` option (fixes #7085)","user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/CLA:%20Valid","name":"CLA: Valid","color":"007700"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-09-11T20:50:08Z","updated_at":"2016-09-12T21:10:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/7120","html_url":"https://github.com/eslint/eslint/pull/7120","diff_url":"https://github.com/eslint/eslint/pull/7120.diff","patch_url":"https://github.com/eslint/eslint/pull/7120.patch"},"body":"**What is the purpose of this pull request? (put an \"X\" next to item)**\r\n\r\n```\r\n[ ] Documentation update\r\n[ ] Bug fix ([template](https://github.com/eslint/eslint/blob/master/templates/bug-report.md))\r\n[ ] New rule ([template](https://github.com/eslint/eslint/blob/master/templates/rule-proposal.md))\r\n[x] Changes an existing rule ([template](https://github.com/eslint/eslint/blob/master/templates/rule-change-proposal.md))\r\n[ ] Add autofixing to a rule\r\n[ ] Add a CLI option\r\n[ ] Add something to the core\r\n[ ] Other, please explain:\r\n```\r\n\r\n*If the item you've check above has a template, please paste the template questions here and answer them.*\r\n**What rule do you want to change?**\r\n`class-methods-use-this`\r\n\r\n**Does this change cause the rule to produce more or fewer warnings?**\r\nFewer.\r\n\r\n**How will the change be implemented? (New option, new default behavior, etc.)?**\r\nNew option.\r\n\r\n**Please provide some example code that this change will affect:**\r\nSee https://github.com/eslint/eslint/issues/7085#issuecomment-245784395\r\n\r\n**What does the rule currently do for this code?**\r\nNothing.\r\n\r\n**What will the rule do after it's changed?**\r\nExempt specified method names from reporting.\r\n\r\n\r\n**Please check each item to ensure your pull request is ready:**\r\n\r\n- [x] I've read the [pull request guide](http://eslint.org/docs/developer-guide/contributing/pull-requests)\r\n- [x] I've included tests for my change\r\n- [x] I've updated documentation for my change (if appropriate)\r\n\r\n**What changes did you make? (Give an overview)**\r\nI added an options object to the schema, created an object map (default empty) to look up method names, and used `Object#hasOwnProperty` (to avoid prototype lookup issues) to determine if a method should be excluded.\r\n\r\n**Is there anything you'd like reviewers to focus on?**\r\n¯\\\\\\_(ツ)_/¯ "},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/246494539","html_url":"https://github.com/eslint/eslint/pull/7120#issuecomment-246494539","issue_url":"https://api.github.com/repos/eslint/eslint/issues/7120","id":246494539,"user":{"login":"eslintbot","id":13383618,"avatar_url":"https://avatars.githubusercontent.com/u/13383618?v=3","gravatar_id":"","url":"https://api.github.com/users/eslintbot","html_url":"https://github.com/eslintbot","followers_url":"https://api.github.com/users/eslintbot/followers","following_url":"https://api.github.com/users/eslintbot/following{/other_user}","gists_url":"https://api.github.com/users/eslintbot/gists{/gist_id}","starred_url":"https://api.github.com/users/eslintbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslintbot/subscriptions","organizations_url":"https://api.github.com/users/eslintbot/orgs","repos_url":"https://api.github.com/users/eslintbot/repos","events_url":"https://api.github.com/users/eslintbot/events{/privacy}","received_events_url":"https://api.github.com/users/eslintbot/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T21:10:01Z","updated_at":"2016-09-12T21:10:01Z","body":"LGTM"}}
{"actor":{"display_login":"eslintbot"}}