Skip to content

Commit

Permalink
HBASE-27208 Use spotless to purge the missing summary warnings from e…
Browse files Browse the repository at this point in the history
…rror prone (#4628)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
Apache9 authored Jul 19, 2022
1 parent 745142a commit 7484a91
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7484a91

Please sign in to comment.