[
https://issues.apache.org/jira/browse/HBASE-26617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17464216#comment-17464216
]
Bryan Beaudreault commented on HBASE-26617:
-------------------------------------------
We also use [https://prettier.io/] at my company. We use it to format all java
projects at our company, so it's many thousands of class files across many
hundreds of projects. Can similarly do mvn prettier:write and has IDE plugins.
I don't have a specific comparison between the 2 and probably either will be a
net-win, but just wanted to point it out.
> 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
> Priority: Major
>
> 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)