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

More information about -exclude #46

Open
siewer opened this issue Jan 29, 2021 · 2 comments
Open

More information about -exclude #46

siewer opened this issue Jan 29, 2021 · 2 comments
Labels
docs Documentation improvements enhancement New feature or request

Comments

@siewer
Copy link

siewer commented Jan 29, 2021

Hey! I have some difficulties in using -exclude flag.
When i go like insider --tech javascript --target . -exclude node_modules it works great but however i try to exclude for example results form CSS files anywhere in the projects how to make it work?

-exclude *.css not work

-exclude /.css doesn't work either

@siewer siewer added the enhancement New feature or request label Jan 29, 2021
@mattheusv
Copy link
Contributor

Hi @siewer, the --exclude flag should be a valid Go regex. So, in case to ignore css files you can use like this --exclude .css.
I agree with you that maybe we should add more examples on Example of use section on the cli.

@mattheusv mattheusv added the docs Documentation improvements label Jan 29, 2021
@toastyghost
Copy link

It should be -exclude .*\.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation improvements enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants