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

ignore broken links in license report #259

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
JAVA_OPTS: "-verbose:gc -Xmx4g"

- name: Run Link Validator
run: cs launch net.runne::site-link-validator:0.2.2 -- scripts/link-validator.conf
run: cs launch net.runne::site-link-validator:0.2.5 -- scripts/link-validator.conf
33 changes: 8 additions & 25 deletions scripts/link-validator.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ site-link-validator {

ignore-missing-local-files-regex = ""

ignore-files = [
# This file is generated, we can't do much about the invalid links here
"license-report.html"
]

ignore-prefixes = [
# runtime is part of the published Scaladoc
"https://www.scala-lang.org/api/2.13.15/scala/runtime/AbstractFunction2.html"
Expand All @@ -33,34 +38,12 @@ site-link-validator {
# MVN repository forbids access after a few requests
"https://mvnrepository.com/artifact/"
# gives: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure requests
"https://javadoc.io/static/",
"https://javadoc.io/static/"
# The address is hit too often and blocked
"https://opensource.org/licenses/Apache-2.0",
# broken URL in license report
"http://asm.objectweb.org/license.html"
"https://opensource.org/licenses/Apache-2.0"
]

non-https-whitelist = [
# license report
"http://www.apache.org/licenses/",
"http://asm.objectweb.org/license.html",
"http://commons.apache.org/proper/commons-lang/",
"http://www.eclipse.org/legal/epl-v10.html",
"http://findbugs.sourceforge.net",
"http://github.com/FasterXML/jackson",
"http://github.com/google/re2j"
"http://github.com/jnr/",
"http://www.gnu.org/licenses/"
"http://hamcrest.org/JavaHamcrest/",
"http://junit.org",
"http://opensource.org/licenses/",
"http://www.opensource.org/licenses/",
"http://www.reactive-streams.org/",
"http://www.scala-lang.org/",
"http://www.scala-sbt.org",
"http://www.scalatest.org",
"http://www.slf4j.org",
"http://www.snakeyaml.org"
"http://asm.ow2.io/"

]
}