[
https://issues.apache.org/jira/browse/HBASE-26899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517285#comment-17517285
]
Duo Zhang commented on HBASE-26899:
-----------------------------------
I found an interesting gradle spotless config:
https://apache.googlesource.com/geode/+/refs/tags/rel/v1.11.0/gradle/spotless.gradle
It uses the regex replace to remove the useless javadoc stuff.
{noformat}
custom 'Remove unhelpful javadoc stubs', {
// e.g., remove the following lines:
// "* @param paramName"
// "* @throws ExceptionType"
// "* @return returnType"'
// Multiline to allow anchors on newlines
it.replaceAll(/(?m)^ *\* *@(?:param|throws|return) *\w* *\n/, '')
}
custom 'Remove any empty Javadocs and block comments', {
// Matches any /** [...] */ or /* [...] */ that contains:
// (a) only whitespace
// (b) trivial information, such as "@param paramName" or @throws
ExceptionType
// without any additional information. This information is implicit
in the signature.
it.replaceAll(/\/\*+\s*\n(\s*\*\s*\n)*\s*\*+\/\s*\n/, '')
}
{noformat}
We could try to see if it could work under maven.
> Run spotless:apply
> ------------------
>
> Key: HBASE-26899
> URL: https://issues.apache.org/jira/browse/HBASE-26899
> Project: HBase
> Issue Type: Sub-task
> Reporter: Andrew Kyle Purtell
> Assignee: Andrew Kyle Purtell
> Priority: Major
> Fix For: 2.5.0, 3.0.0-alpha-3, 2.4.12
>
>
> Given we will ask and encourage contributors to run spotless:apply before
> completing contributions, we should apply spotless:apply to all live
> branches, to establish a clean baseline. In particular branch-2.4 has issues.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)