[ 
https://issues.apache.org/jira/browse/HBASE-26617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Duo Zhang updated HBASE-26617:
------------------------------
    Hadoop Flags: Reviewed
    Release Note: 
Use spotless to format our java file and pom file, using the 
hbase_eclipse_formatter.xml and eclipse.importerorder file under our 
dev-support directory.
On all branches, the ratchetFrom is set the commit just before the commit which 
introduces the spotless plugin, so we will only format the files which are 
touched in later commits.
>From now on, you should type mvn spotless:apply before generating a PR, the 
>spotless plugin will fix most of the format issues for you.

> Use spotless to reduce the pain on fixing checkstyle issues
> -----------------------------------------------------------
>
>                 Key: HBASE-26617
>                 URL: https://issues.apache.org/jira/browse/HBASE-26617
>             Project: HBase
>          Issue Type: New Feature
>          Components: build, community
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 2.5.0, 3.0.0-alpha-3
>
>
> https://github.com/diffplug/spotless
> Spotless is a tool for reformatting code based on your configuration file, it 
> supports the google java format, as well as a eclipse formatter file.
> I think we could use it to format our code, based on a configuration file in 
> our repo, and all the developpers, no matter what IDE they use, they can just 
> type a mvn spotless:apply before commiting a PR, then everything is fine.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to