You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/07/19 01:53:27 UTC

[hbase] branch branch-2.5 updated: HBASE-27208 Use spotless to purge the missing summary warnings from error prone (#4628)

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

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


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

commit aae664b7b5830ed0c69a0cea51fd903acf2761c9
Author: Duo Zhang <zh...@apache.org>
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 <ap...@apache.org>
    (cherry picked from commit 7484a9163a438f2cd9c4e0ac5ab88b00b3340737)
---
 pom.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index c1be8d559a3..562ba6cc102 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>