Not understanding --exclude-path
#2077
|
If I want to check links in all .md files, recursively, but exclude the directory It seems like the path glob is overriding the exclude path regexp or maybe I'm just doing something wrong. |
Replies: 1 comment 3 replies
|
Thanks for raising this question.
Yes, I think that's exactly what happens. Specific files take precedence over excluded paths. Your Instead, you want to probably use |
Thanks for raising this question.
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.mdfileslychee --exclude-path '\/renv\/' --extensions md .