Skip to content

Commit

Permalink
HBASE-27421 Bump spotless plugin to 2.27.2 and reimplement the 'Remov…
Browse files Browse the repository at this point in the history
…e unhelpful javadoc stubs' rule (#4824)

Signed-off-by: Xiaolin Ha <[email protected]>
  • Loading branch information
Apache9 authored Oct 12, 2022
1 parent b656456 commit 0d260f5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,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>
<maven-site.version>3.12.0</maven-site.version>
<!-- compression -->
<aircompressor.version>0.21</aircompressor.version>
Expand Down Expand Up @@ -2734,6 +2734,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 */
Expand All @@ -2743,7 +2756,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>
Expand Down

0 comments on commit 0d260f5

Please sign in to comment.