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

Scan only a subdirectory in CLI #135

Closed
gsklee opened this issue May 12, 2015 · 4 comments

Comments

@gsklee
Copy link
Contributor

commented May 12, 2015

Is there something like $ standard ./src/util that I can do to only scan a subdir through the cli?

@Flet

This comment has been minimized.

Copy link
Member

commented May 12, 2015

standard src/util/**/*.js (the /**/ means it will be recursive and check subdirectories)
or
cd src/util && standard

@gsklee

This comment has been minimized.

Copy link
Contributor Author

commented May 12, 2015

Thanks! I've sent a PR to update the readme with #136 accordingly.

@mnquintana

This comment has been minimized.

Copy link
Contributor

commented Aug 28, 2015

Any chance of reopening this? It wasn't obvious even from the Readme that passing in directory names wasn't supported, and that makes Standard oddly inconsistent with other linters (including eslint, which Standard uses in the background).

@feross

This comment has been minimized.

Copy link
Member

commented Aug 28, 2015

Sure, let's reopen. I would accept a PR that added support for passing a directory name to the standard CLI. I think the necessary changes would go into deglob.

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.