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>
This commit is contained in:
parent
b656456e20
commit
0d260f5b22
18
pom.xml
18
pom.xml
|
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue