{"action":"created","issue":{"url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/56","repository_url":"https://api.github.com/repos/mysticatea/eslint-plugin-node","labels_url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/56/comments","events_url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/56/events","html_url":"https://github.com/mysticatea/eslint-plugin-node/pull/56","id":186459980,"number":56,"title":"Fix: `no-deprecated-api` crash on undeclared assignment (fixes #55)","user":{"login":"not-an-aardvark","id":11638619,"avatar_url":"https://avatars.githubusercontent.com/u/11638619?v=3","gravatar_id":"","url":"https://api.github.com/users/not-an-aardvark","html_url":"https://github.com/not-an-aardvark","followers_url":"https://api.github.com/users/not-an-aardvark/followers","following_url":"https://api.github.com/users/not-an-aardvark/following{/other_user}","gists_url":"https://api.github.com/users/not-an-aardvark/gists{/gist_id}","starred_url":"https://api.github.com/users/not-an-aardvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-an-aardvark/subscriptions","organizations_url":"https://api.github.com/users/not-an-aardvark/orgs","repos_url":"https://api.github.com/users/not-an-aardvark/repos","events_url":"https://api.github.com/users/not-an-aardvark/events{/privacy}","received_events_url":"https://api.github.com/users/not-an-aardvark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-01T05:05:32Z","updated_at":"2016-11-01T05:07:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/pulls/56","html_url":"https://github.com/mysticatea/eslint-plugin-node/pull/56","diff_url":"https://github.com/mysticatea/eslint-plugin-node/pull/56.diff","patch_url":"https://github.com/mysticatea/eslint-plugin-node/pull/56.patch"},"body":"When assigning to a standard library module, `no-deprecated-api` stores the name of the variable that was assigned, and track references to it. However, if the variable has no declaration, it was throwing an error (see https://github.com/mysticatea/eslint-plugin-node/issues/55):\r\n\r\n```js\r\nfoo = require('fs');\r\n```\r\n\r\nThis fixes the issue by adding a null check to ensure that the variable has a declaration."},"comment":{"url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/comments/257489839","html_url":"https://github.com/mysticatea/eslint-plugin-node/pull/56#issuecomment-257489839","issue_url":"https://api.github.com/repos/mysticatea/eslint-plugin-node/issues/56","id":257489839,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars.githubusercontent.com/u/8655789?v=3","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T05:07:59Z","updated_at":"2016-11-01T05:07:59Z","body":"## [Current coverage](https://codecov.io/gh/mysticatea/eslint-plugin-node/pull/56?src=pr) is 98.79% (diff: 100%)\n> Merging [#56](https://codecov.io/gh/mysticatea/eslint-plugin-node/pull/56?src=pr) into [master](https://codecov.io/gh/mysticatea/eslint-plugin-node/branch/master?src=pr) will increase coverage by **0.22%**\n\n```diff\n@@             master        #56   diff @@\n==========================================\n  Files            36         36          \n  Lines           910        912     +2   \n  Methods           0          0          \n  Messages          0          0          \n  Branches          0          0          \n==========================================\n+ Hits            897        901     +4   \n+ Misses           13         11     -2   \n  Partials          0          0          \n```\n\n> Powered by [Codecov](https://codecov.io?src=pr). Last update [382886e...a51a7ff](https://codecov.io/gh/mysticatea/eslint-plugin-node/compare/382886e54d9c863dda8e731670b544feaf581e33...a51a7ff53bf35da8b13fd3c40c2d639dd6c623c0?src=pr)"}}
{"actor":{"display_login":"codecov-io"}}