Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ignore file:/// paths? #136

Closed
wolf99 opened this issue Jun 25, 2022 · 2 comments
Closed

How to ignore file:/// paths? #136

wolf99 opened this issue Jun 25, 2022 · 2 comments

Comments

@wolf99
Copy link
Contributor

wolf99 commented Jun 25, 2022

Hi

I am trying to add this action on the https://github.com/GitCredentialManager/git-credential-manager project.
The project includes some HTML files that are auto-generated by build tools that contain references to the local filesystem using paths like file:///....

Of course these links fail for the link checker.
On git-ecosystem/git-credential-manager#700 see the "Lint documentation / Check for broken links (pull_request)" job.

I have tried using --exclude-path "file:///" (See git-ecosystem/git-credential-manager@7304c59) but it has not had the desired affect - probably I am not using it correctly.
How can I tell Lychee to ignore such paths without ignoring the whole file?

Thanks!

@wolf99
Copy link
Contributor Author

wolf99 commented Jun 25, 2022

I think I misunderstood the purpose of the --exclude-path argument; it is for the setting of files within the repo that should not be checked rather than setting a path link within any file that it should ignore.

Instead I have tried adding a .lycheeignore file with the regex

file:\/\/\/.*

(git-ecosystem/git-credential-manager@3a8767c)

@wolf99 wolf99 closed this as completed Jun 25, 2022
@mre
Copy link
Member

mre commented Jun 26, 2022

Alternatively lychee --scheme http https -- example.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants