Skip to content

Commit

Permalink
link validator: ignore license report
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed Nov 28, 2024
1 parent c3544a8 commit f08f77f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 41 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/docs/pekko-grpc)
echo "Version is $VERSION"
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf
cs launch net.runne::site-link-validator:0.2.2 -- /tmp/link-validator.conf
cs launch net.runne::site-link-validator:0.2.5 -- /tmp/link-validator.conf
46 changes: 6 additions & 40 deletions scripts/link-validator.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

site-link-validator {
root-dir = "./docs/target/site/"
root-dir = "docs/target/site/"
# relative to `root-dir`
start-file = "docs/pekko-grpc/snapshot/index.html"

Expand All @@ -19,54 +19,20 @@ site-link-validator {

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

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

ignore-prefixes = [
# GitHub will block with "429 Too Many Requests"
"https://github.com/apache/pekko-grpc/"
# MVN repository forbids access after a few requests
"https://mvnrepository.com/artifact/"
# Github links generated by sbt-license-report
"http://pholser.github.com/jopt-simple"
"https://github.com/googleapis/java-iam/proto-google-common-protos"
"https://github.com/netty/netty-tcnative/netty-tcnative-boringssl-static"
# Other links generated by sbt-license-report
"http://lmax-exchange.github.com/disruptor"
# Occasionally returns a 500 Internal Server Error
"http://code.google.com/"
]

non-https-whitelist = [
# license report
"http://www.jetbrains.org",
"http://aopalliance.sourceforge.net",
"http://asm.ow2.io/",
"http://checkerframework.org",
"http://code.google.com/p/",
"http://commons.apache.org/proper/",
"http://findbugs.sourceforge.net/",
"http://fusesource.github.io/jansi",
"http://github.com/typelevel/jawn"
"http://hc.apache.org/",
"http://hdrhistogram.github.io/HdrHistogram/",
"http://jcp.org/en/jsr/detail?id=250",
"http://junit.org",
"http://lmax-exchange.github.com/disruptor",
"http://openjdk.java.net/legal/gplv2+ce.html",
"http://opensource.org/licenses/",
"http://www.opensource.org/licenses/",
"http://parboiled.org",
"http://pholser.github.com/jopt-simple",
"http://source.android.com/",
"http://www.apache.org/licenses",
"http://www.eclipse.org/legal/",
"http://www.gnu.org/licenses/",
"http://www.jcraft.com/jsch/",
"http://www.reactive-streams.org/",
"http://www.scala-lang.org/",
"http://www.scala-sbt.org",
"http://www.scalatest.org",
"http://www.slf4j.org",
"http://creativecommons.org/"
"http://jopt-simple.github.io/"
"http://jspecify.org/"
]
}

0 comments on commit f08f77f

Please sign in to comment.