Skip to content

Load --exclude from a file #302

Closed
Closed

Description

@dblock

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 opensearch-project/OpenSearch#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

  1. lebensterben commented on Aug 31, 2021

    @lebensterben
    Member

    @dblock
    lychee currently support config file. so at least you can put those urls in it.

  2. dblock commented on Aug 31, 2021

    @dblock
    ContributorAuthor

    @dblock
    lychee currently support config file. so at least you can put those urls in it.

    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.

  3. lebensterben commented on Aug 31, 2021

    @lebensterben
    Member

    indeed.

  4. mre commented on Sep 1, 2021

    @mre
    Member

    Good idea!

  5. added
    enhancement
    good first issue
    help wanted
    on Sep 1, 2021
  6. dblock commented on Sep 3, 2021

    @dblock
    ContributorAuthor

    This was implemented in #306, and released in 7.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions