From 235fb926382cfed5a6353106c732e85a9140d6da Mon Sep 17 00:00:00 2001
From: Stypox <stypox@pm.me>
Date: Sun, 31 Dec 2023 18:11:35 +0100
Subject: [PATCH] Make checkstyle accept javadocs with long links

---
 checkstyle/checkstyle.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml
index 3377e3b8431..ee091fa9f44 100644
--- a/checkstyle/checkstyle.xml
+++ b/checkstyle/checkstyle.xml
@@ -39,11 +39,13 @@
     <module name="Translation"/>
 
     <!-- Checks for Size Violations.                    -->
-    <!-- See https://checkstyle.org/config_sizes.html -->
+    <!-- See https://checkstyle.sourceforge.io/checks/sizes/index.html -->
     <module name="FileLength"/>
     <module name="LineLength">
       <property name="max" value="100"/>
       <property name="fileExtensions" value="java"/>
+      <!-- Also allow links in javadocs to be longer (the default would just cover imports) -->
+      <property name="ignorePattern" value="^((package|import) .*)|( *\* &lt;a href ?\= ?&quot;.*&quot;&gt;)$"/>
     </module>
 
     <!-- Checks for whitespace                               -->