HBASE-27421 Bump spotless plugin to 2.27.2 and reimplement the 'Remove unhelpful javadoc stubs' rule (#4824)

Signed-off-by: Xiaolin Ha <haxiaolin@apache.org>
(cherry picked from commit 0d260f5b22)
This commit is contained in:
Duo Zhang 2022-10-12 23:14:08 +08:00
parent 00f72f346f
commit 98ccae9494
1 changed files with 16 additions and 2 deletions

18
pom.xml
View File

@ -624,7 +624,7 @@
<surefire.version>3.0.0-M6</surefire.version>
<wagon.ssh.version>2.12</wagon.ssh.version>
<xml.maven.version>1.0.1</xml.maven.version>
<spotless.version>2.24.1</spotless.version>
<spotless.version>2.27.2</spotless.version>
<hbase-thirdparty.version>4.1.2</hbase-thirdparty.version>
<maven-site.version>3.12.0</maven-site.version>
<!-- Intraproject jar naming properties -->
@ -2220,6 +2220,19 @@
<exclude>**/generated/*</exclude>
<exclude>**/package-info.java</exclude>
</excludes>
<!--
e.g., remove the following lines:
"* @param paramName"
"* @throws ExceptionType"
"* @return returnType"'
Multiline to allow anchors on newlines
See https://errorprone.info/bugpattern/EmptyBlockTag
-->
<replaceRegex>
<name>Remove unhelpful javadoc stubs</name>
<searchRegex>(?m)^ *\* *@(?:param|throws|return) *\w* *\n</searchRegex>
<replacement/>
</replaceRegex>
<!--
e.g., rewrite
/** @return blabla */
@ -2229,7 +2242,8 @@
*/
to
/** Returns blabla */
See https://errorprone.info/bugpattern/EmptyBlockTag
See https://errorprone.info/bugpattern/MissingSummary
https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment
-->
<replaceRegex>
<name>Purge single returns tag multi line</name>