Skip to content

Commit

Permalink
ignore links in license report (apache#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Nov 11, 2024
1 parent 952fed6 commit 4fb8554
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
run: sbt -Dpekko.genjavadoc.enabled=true "set ThisBuild / version := \"1.0.0\"; Javaunidoc/doc; Compile/unidoc; docs/paradox"

- 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
34 changes: 5 additions & 29 deletions scripts/link-validator.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ site-link-validator {
ignore-missing-local-files-regex = ""
// e.g. "^api/alpakka/snapshot/pekko/stream/alpakka/googlecloud/storage/impl/Formats.*"

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

ignore-prefixes = [
# Fails after a number of requests with "403 Forbidden"
"https://javadoc.io/static/"
Expand All @@ -64,40 +69,11 @@ site-link-validator {
"http://code.google.com/"
# sample endpoint
"http://localhost:8080"
# broken URL in license report
"http://pholser.github.com/"
"http://specs2.org/"
]

non-https-whitelist = [
# sample in docs
"http://example.com"
# license report
"http://asm.ow2.io/"
"http://commons.apache.org/"
"http://www.apache.org/licenses/LICENSE-2.0"
"http://findbugs.sourceforge.net/"
"http://github.com/FasterXML/"
"http://github.com/ronmamo/"
"http://github.com/sbt/junit-interface/"
"http://jopt-simple.github.io/jopt-simple"
"http://junit.org"
"http://netty.io/"
"http://openjdk.java.net/legal/gplv2+ce.html"
"http://opensource.org/licenses/MIT"
"http://parboiled.org"
"http://specs2.org/"
"http://www.eclipse.org/legal/epl-v10.html"
"http://www.javassist.org/"
"http://www.mozilla.org/MPL/MPL-1.1.html"
"http://www.opensource.org/licenses/"
"http://opensource.org/licenses/"
"http://www.reactive-streams.org/"
"http://www.scala-lang.org/"
"http://www.scala-sbt.org"
"http://www.scalacheck.org"
"http://www.scalatest.org"
"http://www.slf4j.org"
# no https support
"http://spray.io/blog/"
# javadoc
Expand Down

0 comments on commit 4fb8554

Please sign in to comment.