We like having a link checker in https://github.com/opensearch-project/OpenSearch, but we also often encounter URLs that no longer work in things like license files. Therefore we can't just fix the links. This leads to a fairly long list of URLs to exclude, which we keep adding to a GitHub action job, which reads poorly. In https://github.com/opensearch-project/OpenSearch/pull/1189 I've hacked our workflow to read the exclusions from a file, but it's not an ideal implementation :) Should we add `--exclude-file` to lychee?
Activity
lebensterben commentedon Aug 31, 2021
@dblock
lychee currently support config file. so at least you can put those urls in it.
dblock commentedon Aug 31, 2021
Oh where/how? I see README mentions a config file, but can't find a reference/example that shows how to specify many URLs.Found https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml#L53
The config file helps, but I think a data file is still cleaner.
lebensterben commentedon Aug 31, 2021
indeed.
mre commentedon Sep 1, 2021
Good idea!
dblock commentedon Sep 3, 2021
This was implemented in #306, and released in 7.0.1.