Skip to content

Commit

Permalink
Ignore scaladoc files in broken links checks (#4167)
Browse files Browse the repository at this point in the history
These cause issues once in a while, but in general Scaladoc bugs are
outside of our control so it doesn't make sense to block PRs on them
  • Loading branch information
lihaoyi authored Dec 20, 2024
1 parent 7a6a76a commit bc8c063
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/package.mill
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,12 @@ object `package` extends RootModule {
.toMap

val brokenLinksPerPath: Seq[(os.Path, Seq[(String, String)])] =
for ((path, remoteLinks, localLinks, ids) <- allLinksAndAnchors0) yield{
for {
(path, remoteLinks, localLinks, ids) <- allLinksAndAnchors0
// Skip scaladoc files when scanning for broken links because some
// of those are scaladoc bugs outside of our control.
if !path.segments.contains("api")
} yield{
(
path,
localLinks.flatMap{case (elementString, url) =>
Expand Down

0 comments on commit bc8c063

Please sign in to comment.