{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/2975","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/2975/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/2975/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/2975/events","html_url":"https://github.com/palantir/tslint/issues/2975","id":239673898,"number":2975,"title":"Unable to exclude directory when name contains multiple underscores","user":{"login":"corydeppen","id":313264,"avatar_url":"https://avatars3.githubusercontent.com/u/313264?v=3","gravatar_id":"","url":"https://api.github.com/users/corydeppen","html_url":"https://github.com/corydeppen","followers_url":"https://api.github.com/users/corydeppen/followers","following_url":"https://api.github.com/users/corydeppen/following{/other_user}","gists_url":"https://api.github.com/users/corydeppen/gists{/gist_id}","starred_url":"https://api.github.com/users/corydeppen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corydeppen/subscriptions","organizations_url":"https://api.github.com/users/corydeppen/orgs","repos_url":"https://api.github.com/users/corydeppen/repos","events_url":"https://api.github.com/users/corydeppen/events{/privacy}","received_events_url":"https://api.github.com/users/corydeppen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-30T04:21:55Z","updated_at":"2017-07-07T02:31:14Z","closed_at":null,"body":"### Bug Report\r\n\r\n- __TSLint version__: 5.4.3\r\n- __TypeScript version__: 2.4.1\r\n- __Running TSLint via__: CLI\r\n\r\n#### Actual behavior\r\n\r\nGiven a `__test_data__` directory in the root of my project, I run the following command:\r\n\r\n```sh\r\n$ ./node_modules/.bin/tslint --project tsconfig.json --type-check --exclude \"__test_data__/*\" \"src/**/*.ts*\"\r\n```\r\n\r\nThis results in the following error:\r\n\r\n`Error File 'C:/path/to/__test_data__/applications.js' is not under 'rootDir' 'C:/path/to/src'. 'rootDir' is expected to contain all source files.`\r\n\r\nIf I remove one of the underscores from either side of the directory name (e.g. `_test_data_`), the command runs without an error.\r\n\r\n#### Expected behavior\r\n\r\nThe command should run the same regardless of how many underscores are in a directory name."},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/313570891","html_url":"https://github.com/palantir/tslint/issues/2975#issuecomment-313570891","issue_url":"https://api.github.com/repos/palantir/tslint/issues/2975","id":313570891,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars2.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T02:31:14Z","updated_at":"2017-07-07T02:31:14Z","body":"Note that the files list is being ignored when you use `--project` (bug, see https://github.com/palantir/tslint/issues/1603). Do you still have this issue when you omit `--project` and `--type-check`?"}}
{"actor":{"display_login":"adidahiya"}}