{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4606","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4606/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4606/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4606/events","html_url":"https://github.com/eslint/eslint/issues/4606","id":120438081,"number":4606,"title":"Feature request: command line option to not follow symlinks","user":{"login":"medains","id":914674,"avatar_url":"https://avatars.githubusercontent.com/u/914674?v=3","gravatar_id":"","url":"https://api.github.com/users/medains","html_url":"https://github.com/medains","followers_url":"https://api.github.com/users/medains/followers","following_url":"https://api.github.com/users/medains/following{/other_user}","gists_url":"https://api.github.com/users/medains/gists{/gist_id}","starred_url":"https://api.github.com/users/medains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medains/subscriptions","organizations_url":"https://api.github.com/users/medains/orgs","repos_url":"https://api.github.com/users/medains/repos","events_url":"https://api.github.com/users/medains/events{/privacy}","received_events_url":"https://api.github.com/users/medains/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"},{"url":"https://api.github.com/repos/eslint/eslint/labels/feature","name":"feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/eslint/eslint/labels/proposal","name":"proposal","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-04T16:36:00Z","updated_at":"2015-12-24T01:33:58Z","closed_at":null,"body":"When checking a large directory structure where one part symlinks to another, I would like to pass eslint a --no-follow command line parameter to have it not traverse symlinks so that either those files are not checked at all (if the symlink goes outside of the scope of the directory traversal) or only get checked once (when inside scope).\r\n\r\ne.g.\r\n```\r\n$ mkdir a\r\n$ echo \"function foo() {}\" > a/bad.js\r\n$ ln -s  a b\r\n$ eslint . --rule \"{no-unused-vars:2}\"\r\n\r\na/badjs.js\r\n  1:10  error  foo is defined but never used  no-unused-vars\r\n\r\nb/badjs.js\r\n  1:10  error  foo is defined but never used  no-unused-vars\r\n\r\n✖ 2 problems (2 errors, 0 warnings)\r\n```\r\n\r\nRequested behavior\r\n```\r\n$ eslint . --rule \"{no-unused-vars:2}\" --no-follow\r\n\r\na/badjs.js\r\n  1:10  error  foo is defined but never used  no-unused-vars\r\n\r\n✖ 1 problems (1 errors, 0 warnings)\r\n```\r\n\r\n\r\nIf I have some time, I may have a go implementing this - but I'm happy for someone else to get in before me ;)\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28856889-feature-request-command-line-option-to-not-follow-symlinks?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/167019284","html_url":"https://github.com/eslint/eslint/issues/4606#issuecomment-167019284","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4606","id":167019284,"user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T01:33:58Z","updated_at":"2015-12-24T01:33:58Z","body":"kinda related: https://github.com/eslint/eslint/issues/3720"}}