Skip to content
Discussion options

You must be logged in to vote

Thanks for raising this question.

It seems like the path glob is overriding the exclude path regexp or maybe I'm just doing something wrong.

Yes, I think that's exactly what happens. Specific files take precedence over excluded paths. Your '**/*.md' expands to the specific markdown files, so excluded paths have no effect. Also your ^ in the excluded path might not work as expected. This can be debugged with --dump-inputs.

Instead, you want to probably use lychee --exclude-path '\/renv\/' . or to only exactly check .md files lychee --exclude-path '\/renv\/' --extensions md .

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aariq
Comment options

@thomas-zahner
Comment options

@Aariq
Comment options

Answer selected by Aariq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants