[
https://issues.apache.org/jira/browse/HBASE-14902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035139#comment-15035139
]
Appy commented on HBASE-14902:
------------------------------
{quote}
Let me add the single line allowance.
{quote}
Seems fairly prevalent in the code
([trunkCheckstyle|https://builds.apache.org/job/PreCommit-HBASE-Build/16722/artifact/patchprocess/trunkCheckstyle.xml]
~1700) . Let's do it.
{noquote}
Thanks for quoting the Ref guide on empty lines. Agree. Let me make sure
javadoc does not complain if @throws not present.
On first item, when it says this: JavadocTagContinuationIndentation Line
continuation have incorrect indentation level, expected level should be 4.....
it wants me to put four spaces after the '*' when I add a second line on
javadoc? It seems so arbitrary. Why not two or none? Most of the code seems to
have none.. just continue on the line below? Shouldn't this be the default?
{quote}
Yeah, 'what's the right number' is kind of an issue. Since there's no good
answer and corresponding justification, the best I can think is, lets choose
what's most prevalent in the code.
With 4 spaces, #errors = 844
With 2 spaces, #errors = 790
With 0 spaces, #errors = 0 (Something's clearly wrong, it throws no error. So
won't be useful in checking anything)
Lets choose 2, given it's also the indentation we follow in code.
> Revert some of the stringency recently introduced by checkstyle tightening
> --------------------------------------------------------------------------
>
> Key: HBASE-14902
> URL: https://issues.apache.org/jira/browse/HBASE-14902
> Project: HBase
> Issue Type: Sub-task
> Reporter: stack
> Fix For: 2.0.0
>
>
> I think we should undo some of the plugins that were recently added to
> checkstyle. They are too much.
> JavadocTagContinuationIndentationCheck is about adding indent if javadoc is
> two lines or more (javadoc tool doesn't care)
> NonEmptyAtclauseDescriptionCheck would have us add javadoc on each exception:
> e.g. @throws IOException needs to have text added.
> NeedBracesCheck has us undoing cases where an if fits all on one line (don't
> want to start style wars but if short and fits on one line, I think its more
> readable... but I could relent on this one.... ).
> The first two at least should go.
> You ok w/ that [~appy]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)