{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4397","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4397/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4397/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4397/events","html_url":"https://github.com/eslint/eslint/issues/4397","id":116453715,"number":4397,"title":"Exported function that calls an undeclared function is not caught","user":{"login":"Zenwolf","id":354809,"avatar_url":"https://avatars.githubusercontent.com/u/354809?v=3","gravatar_id":"","url":"https://api.github.com/users/Zenwolf","html_url":"https://github.com/Zenwolf","followers_url":"https://api.github.com/users/Zenwolf/followers","following_url":"https://api.github.com/users/Zenwolf/following{/other_user}","gists_url":"https://api.github.com/users/Zenwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/Zenwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zenwolf/subscriptions","organizations_url":"https://api.github.com/users/Zenwolf/orgs","repos_url":"https://api.github.com/users/Zenwolf/repos","events_url":"https://api.github.com/users/Zenwolf/events{/privacy}","received_events_url":"https://api.github.com/users/Zenwolf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-12T00:37:42Z","updated_at":"2015-11-12T02:43:54Z","closed_at":null,"body":"**Version:**\r\n1.9.0\r\n\r\n**Config:**\r\n```\r\n{\r\n    \"env\": {\r\n        \"browser\": true,\r\n        \"es6\": true,\r\n        \"node\": true\r\n    },\r\n\r\n    \"ecmaFeatures\": {\r\n        \"modules\": true\r\n    },\r\n\r\n    \"rules\": {\r\n        \"no-unused-vars\": [2, { \"args\": \"none\" }]\r\n    }\r\n}\r\n```\r\n\r\n**Example broken code:**\r\n```\r\nexport function foo() {\r\n    return bar();\r\n}\r\n```\r\n\r\n**Command line:**\r\n```\r\neslint --no-eslintrc -c ./eslint.json ./src\r\n```\r\nWhere `src/foo.js` has the example code above.\r\n\r\n**Result:**\r\n`bar()` is not reported as an undefined function. If I remove the `export` then `bar()` is caught.\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28175260-exported-function-that-calls-an-undeclared-function-is-not-caught?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/155980877","html_url":"https://github.com/eslint/eslint/issues/4397#issuecomment-155980877","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4397","id":155980877,"user":{"login":"ilyavolodin","id":1380062,"avatar_url":"https://avatars.githubusercontent.com/u/1380062?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavolodin","html_url":"https://github.com/ilyavolodin","followers_url":"https://api.github.com/users/ilyavolodin/followers","following_url":"https://api.github.com/users/ilyavolodin/following{/other_user}","gists_url":"https://api.github.com/users/ilyavolodin/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavolodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavolodin/subscriptions","organizations_url":"https://api.github.com/users/ilyavolodin/orgs","repos_url":"https://api.github.com/users/ilyavolodin/repos","events_url":"https://api.github.com/users/ilyavolodin/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavolodin/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T02:43:54Z","updated_at":"2015-11-12T02:43:54Z","body":"Sorry, but your config file doesn't have `no-undef` in it. Is it just a typo?"}}