I support this proposal, but two important considerations must be noted:

Developers must use JDK 11 or higher for compilation (this requirement is
only for automatic formatting and does not impose a minimum JDK version
restriction on users).

Once this plugin is introduced, the pull request (PR) will inevitably cause
significant conflicts with all existing PRs.

Nevertheless, I still endorse this proposal, just as I had submitted a
similar one to the community a few years ago.

Best Regards!
Jianbin Chen, github-id: funky-eyes

Yongjun Hong <dev.yongj...@gmail.com> 于 2025年2月22日周六 17:30写道:

> Dear Seata community,
>
> Checkstyle is a great tool for maintaining code formatting, but it only
> points out issues without automatically fixing them. On the other hand,
> Spotless provides an apply feature that can automatically format the code,
> making it much more convenient to use.Since Seata is an open-source project
> under Apache, developers from all over the world contribute to it. While it
> would be ideal if everyone were already familiar with Alibaba's Checkstyle
> rules, many contributors, including myself, may not be.
>
> With that in mind, adopting Spotless could be a good option. For reference,
> JUnit, a project I have contributed to multiple times, has integrated
> Spotless, and I found it to be very convenient. What do you think about
> using Spotless?
>
> Best regards,
> Yongjun
>
> PS. Dubbo community is using the Spotless plugin.
>
> https://github.com/apache/dubbo/blob/cedc58316ddce533644aa627e5233711907c2e62/pom.xml#L172
>
> Related document
> - https://github.com/diffplug/spotless
>

Reply via email to