This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 1c56b5fad57 HBASE-27208 Use spotless to purge the missing summary 
warnings from error prone (#4628)
1c56b5fad57 is described below

commit 1c56b5fad579052d6b1eabbb80892b3aef0abd66
Author: Duo Zhang <[email protected]>
AuthorDate: Tue Jul 19 09:45:06 2022 +0800

    HBASE-27208 Use spotless to purge the missing summary warnings from error 
prone (#4628)
    
    Signed-off-by: Andrew Purtell <[email protected]>
    (cherry picked from commit 7484a9163a438f2cd9c4e0ac5ab88b00b3340737)
---
 pom.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index d02fadace04..83cb3ad5f18 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2393,6 +2393,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>

Reply via email to