Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a glob/regex to specify which files to analyze #136

Open
mrseanryan opened this issue Apr 12, 2020 · 2 comments
Open

Provide a glob/regex to specify which files to analyze #136

mrseanryan opened this issue Apr 12, 2020 · 2 comments
Labels
enhancement has-workaround A bug, but it has a workaround

Comments

@mrseanryan
Copy link
Collaborator

mrseanryan commented Apr 12, 2020

Provide a glob/regex to specify which files to analyze

  • needs to fit with existing options like ignoreFiles - see the README
@mrseanryan
Copy link
Collaborator Author

mrseanryan commented Apr 12, 2020

@maneetgoyal have you tried unix find - it can be used with a regex.

for example:

./bin/ts-unused-exports ./example/simple/tsconfig.json $(cd ./example/simple; find . -regex "\.*/m[a-z]+\.ts")

On my Ubuntu box, this runs ts-unused-exports just for the matching files (math.ts)

You can try it by cloning this repo, and building it (see CONTRIBUTING.md)

@mrseanryan mrseanryan added the has-workaround A bug, but it has a workaround label Apr 12, 2020
@maneetgoyal
Copy link

That’s a helpful tip @mrseanryan 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement has-workaround A bug, but it has a workaround
Projects
None yet
Development

No branches or pull requests

2 participants