Thanks for your reply Justin.

For duplicated work, I mean we don't need to maintain two files, one is
checkstyle-strict,xml,
the other is eclipse_formatter.xml for the same checkstyle purpose.

I've found the eclipse plugin for checkstyle[1] so that one can reuse
checkstyle-strict.xml for
lint and format code.

Best,
tison.

[1] https://checkstyle.org/eclipse-cs/#!/


Justin Ling Mao <[email protected]> 于2019年10月8日周二 下午1:38写道:

> 1. AFAIK, the IDEA also supports  Eclipse Format Template(install Eclipse
> Code Formatter plugin for IDEA) , so no duplicated work.
>
> 2. Since we now use a customized code checkstyle, so we cannot take
> advantage of the ready-make sun/google formatter, we also need a
> customized formatter, just like this:
> https://github.com/apache/hbase/blob/master/dev-support/hbase_eclipse_formatter.xml
>
> 3. Overall, this work is not in a hurry because mvn cmd can tell us where
> is the violations
>
> ----- Original Message -----
> From: Zili Chen <[email protected]>
> To: Justin Ling Mao <[email protected]>
> Cc: dev <[email protected]>
> Subject: Re: Coding Style
> Date: 2019-10-08 10:52
>
> Hi Justin,
>
> If Eclipse has a checkstyle plugin as that in IDEA I don't think we have to
> maintain two versions of code style rules. Otherwise we have to sync one
> with the other when we add/remove rules, which is unnecessarily overhead.
>
> Best,
> tison.
>
>
> Justin Ling Mao <[email protected]> 于2019年10月8日周二 上午10:49写道:
>
> 1. Currently, our coding style checker(maven checkstyle plugin) doesn't
> abide by Sun's conventions completely
> 2. maybe we need a eclipse_formatter.xml to  the automatic formatting for
> the IDEs,  https://hbase.apache.org/book.html#eclipse.code.formatting is
> a good example.
> ----- Original Message -----
> From: David Mollitor <[email protected]>
> To: [email protected]
> Subject: Coding Style
> Date: 2019-10-08 03:10
>
> Hello,
> I am looking at this page for a coding style format / template.
> https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
> There is a note about it with a link to: "Sun's conventions" (however, the
> link is dead)
> Can someone propose an Eclipse Format Template which has the required
> coding standards required by this project and submit them into 'dev' folder
> in GitHub?
> Thanks!
>
>

Reply via email to