Skip to content

lychee linter lints .lycheeignore #23

@rszymanski

Description

@rszymanski

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions