HBASE-27208 Use spotless to purge the missing summary warnings from error prone (#4628)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Duo Zhang 2022-07-19 09:45:06 +08:00 committed by GitHub
parent 745142adb1
commit 7484a9163a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
pom.xml
View File

@ -2715,6 +2715,27 @@
<!-- spotless manve plugin does not allow empty here, so use \n -->
<replacement>\n</replacement>
</replaceRegex>
<!--
e.g., rewrite
/** @return blabla */
or
/**
* @return blabla
*/
to
/** Returns blabla */
See https://errorprone.info/bugpattern/FutureReturnValueIgnored
-->
<replaceRegex>
<name>Purge single returns tag multi line</name>
<searchRegex>(?m)^ */\*\*\n *\* *@return *(.*) *\n *\*/$</searchRegex>
<replacement>/** Returns $1 */</replacement>
</replaceRegex>
<replaceRegex>
<name>Purge single returns tag single line</name>
<searchRegex>^ */\*\* *@return *(.*) *\*/$</searchRegex>
<replacement>/** Returns $1 */</replacement>
</replaceRegex>
<!-- apply a specific flavor -->
<eclipse>
<file>${session.executionRootDirectory}/dev-support/hbase_eclipse_formatter.xml</file>