Description
While using the megalinter workflow I got errors related to links defined in .lycheeignore
An identical error can be found in this zephyr github actions run
Errors in .lycheeignore
[400] https://packagemanager.posit.co/cran/$%7B%7Bmatrix.config.date | Network error: Bad Request
I don't think .lycheeignore should be analyzed for lints as it defines regexes of urls to ignore - but a regex does not necessarily match itself (like https://packagemanager.posit.co/cran/$%7B%7Bmatrix.config.date). Which leads to a false positive lint in .lycheeignore
Workaround
Mentioning .lycheeignore in .gitignore fixes the issue as it instructs megalinter to skip .lycheeignore (and as .lycheeignore is fetched within the workflow this doesn't cause issues)
Potential Solution
Add --exclude-path .lycheeignore to SPELL_LYCHEE_ARGUMENTS
Description
While using the megalinter workflow I got errors related to links defined in .lycheeignore
An identical error can be found in this zephyr github actions run
I don't think .lycheeignore should be analyzed for lints as it defines regexes of urls to ignore - but a regex does not necessarily match itself (like
https://packagemanager.posit.co/cran/$%7B%7Bmatrix.config.date). Which leads to a false positive lint in .lycheeignoreWorkaround
Mentioning
.lycheeignorein.gitignorefixes the issue as it instructs megalinter to skip .lycheeignore (and as .lycheeignore is fetched within the workflow this doesn't cause issues)Potential Solution
Add
--exclude-path .lycheeignoreto SPELL_LYCHEE_ARGUMENTS