insider icon indicating copy to clipboard operation
insider copied to clipboard

More information about -exclude

Open siewer opened this issue 4 years ago • 2 comments

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 avatar Jan 29 '21 10:01 siewer

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 avatar Jan 29 '21 13:01 mattheusv

It should be -exclude .*\.css

toastyghost avatar May 13 '21 15:05 toastyghost