From 55e189760558c955c3ea5659ed4cf0f32759a3bb Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 11 Nov 2024 09:38:00 +0100 Subject: [PATCH] ignore links in license report (#232) --- .github/workflows/link-validator.yml | 2 +- scripts/link-validator.conf | 37 +++++----------------------- 2 files changed, 7 insertions(+), 32 deletions(-) diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml index a3d0133c..632553d2 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -42,4 +42,4 @@ jobs: run: sbt "set ThisBuild / version := \"1.0.0\"; 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 diff --git a/scripts/link-validator.conf b/scripts/link-validator.conf index 48018c93..2d88e8b8 100644 --- a/scripts/link-validator.conf +++ b/scripts/link-validator.conf @@ -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/" @@ -54,39 +59,9 @@ site-link-validator { "https://github.com/" # Links to datastax.com work in practice but fail with link validator "https://docs.datastax.com/" - # license report - "http://stephenc.github.com/jcip-annotations" - "http://fi.java.net" - "http://stax-ex.java.net/" - "https://glassfish.java.net/public/CDDL+GPL_1_1.html" ] non-https-whitelist = [ - # license report - "http://asm.ow2.io/" - "http://creativecommons.org/publicdomain/zero/1.0/" - "http://dev.mysql.com/doc/connector-j/en/" - "http://dom4j.github.io/" - "http://findbugs.sourceforge.net/" - "http://github.com/" - "http://hdrhistogram.github.io/HdrHistogram/" - "http://hibernate.org" - "http://junit.org" - "http://opensource.org/licenses/" - "http://www.opensource.org/licenses/" - "http://repository.jboss.org/licenses/gpl-2.0-ce.txt" - "http://slick.typesafe.com" - "http://stephenc.github.com/jcip-annotations" - "http://www.antlr.org/" - "http://www.apache.org/licenses/" - "http://www.eclipse.org/" - "http://www.gnu.org/" - "http://www.javassist.org/" - "http://www.jboss.org" - "http://www.mozilla.org/" - "http://www.reactive-streams.org/" - "http://www.scala-lang.org/" - "http://www.scalatest.org" - "http://www.slf4j.org" + ] }