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

Cannot get 'ignore-url' working #817

Open
ryma2fhir opened this issue Apr 12, 2024 · 0 comments
Open

Cannot get 'ignore-url' working #817

ryma2fhir opened this issue Apr 12, 2024 · 0 comments

Comments

@ryma2fhir
Copy link

ryma2fhir commented Apr 12, 2024

Summary

I have the following that I want ignored:

URL `resource.html#identifiers'
Name `discussion'
Parent URL https://simplifier.net/guide/uk-core-implementation-guide-stu2/Home/ProfilesandExtensions/Profile-UKCore-AllergyIntolerance?version=2.0.0-pre-release, line 530, col 123
Real URL https://simplifier.net/guide/uk-core-implementation-guide-stu2/home/profilesandextensions/resource.html?version=2.0.1-pre-release#identifiers
Check time 3.592 seconds
Info Redirected to
`https://simplifier.net/guide/uk-core-implementation-guide-stu2/home/profilesandextensions/resource.html?version=2.0.1-pre-release#identifiers'
status: 302 Found.
Result Error: 404 Not Found

so I have tried adding the following to ignore in the linkcheckerrc & --ignore-url:
r"^(?!.*http).*html.*$"

This should ignore any url that does not contain 'http' but does contain 'html'. This has been tested with re.search and works as expected, i,e. it finds the expression.

Actual result

url is still checked

Expected result

url is ignored

Environment

  • Operating system: ubuntu-latest (github action)
  • Linkchecker version: 10.4.0
  • Python version: 3.10
  • Install method: PyPI

Configuration

      linkchecker -r 2 --check-extern --no-status --ignore-url=[@] --ignore-url=r"^(?!.*http).*html.*$" -f
      ./IGPageContentValidator/linkcheckerrc https://simplifier.net/guide/uk-core-implementation-guide-stu2/home/terminology/allvaluesets?version=2.0.1-pre-release
##################### filtering options ##########################
[filtering]
ignore=
  \.png
  [@]
  r"^(?!.*http).*html.*$"

https://github.com/NHSDigital/IOPS-FHIR-Test-Scripts/blob/update/linkChecker/IGPageContentValidator/linkcheckerrc

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

1 participant