You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2023/12/09 19:13:54 UTC

(freemarker) 02/02: Gradle build: All javadoc "lint" check were disabled accidentally, instead of just "missing" (tested it, and it didn't stop at HTML errors without adding "all,")

This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 3
in repository https://gitbox.apache.org/repos/asf/freemarker.git

commit a5db56197ef658f61804918b933eb4f824781605
Author: ddekany <dd...@apache.org>
AuthorDate: Sat Dec 9 20:13:24 2023 +0100

    Gradle build: All javadoc "lint" check were disabled accidentally, instead of just "missing" (tested it, and it didn't stop at HTML errors without adding "all,")
---
 .../freemarker/build/module/common/JavadocStyleAdjustments.kt     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/buildSrc/module-common/src/main/kotlin/org/apache/freemarker/build/module/common/JavadocStyleAdjustments.kt b/buildSrc/module-common/src/main/kotlin/org/apache/freemarker/build/module/common/JavadocStyleAdjustments.kt
index 1ed2b6e6..e4a11fc3 100644
--- a/buildSrc/module-common/src/main/kotlin/org/apache/freemarker/build/module/common/JavadocStyleAdjustments.kt
+++ b/buildSrc/module-common/src/main/kotlin/org/apache/freemarker/build/module/common/JavadocStyleAdjustments.kt
@@ -19,14 +19,14 @@
 
 package org.apache.freemarker.build.module.common
 
-import java.nio.charset.Charset
-import java.nio.charset.StandardCharsets
-import java.nio.file.Files
 import org.gradle.api.Action
 import org.gradle.api.Task
 import org.gradle.api.plugins.JavaBasePlugin
 import org.gradle.api.tasks.javadoc.Javadoc
 import org.gradle.external.javadoc.StandardJavadocDocletOptions
+import java.nio.charset.Charset
+import java.nio.charset.StandardCharsets
+import java.nio.file.Files
 
 fun configureJavadocDefaults(javadoc: Javadoc) {
     javadoc.group = JavaBasePlugin.DOCUMENTATION_GROUP
@@ -46,7 +46,7 @@ fun configureJavadocDefaults(javadoc: Javadoc) {
         charSet = javadocEncoding.name()
 
         // There are too many to check
-        addStringOption("Xdoclint:-missing", "-quiet")
+        addStringOption("Xdoclint:all,-missing", "-quiet")
     }
 
     javadoc.doLast(JavadocStyleAdjustments())