Dear Yongjun,

This is a fantastic proposal! 🎉 I wholeheartedly agree that automating
code formatting aligns perfectly with Seata’s goals of improving
contributor experience and maintaining consistent code quality. Your points
about Checkstyle’s limitations (especially the lack of auto-fixing) and
Spotless’ actionable “apply” feature are spot-on.

The community-friendly aspect you highlighted is crucial for our global
contributors. By reducing friction around formatting rules (even for those
unfamiliar with Alibaba’s specific guidelines), Spotless could lower the
barrier to entry and streamline collaboration. The JUnit reference adds
significant credibility—seeing a widely-used project successfully adopt it
gives confidence in its feasibility.


Best Regards,
Jiangke Wu(xingfudeshi)


On Sat, Feb 22, 2025 at 5:30 PM Yongjun Hong <dev.yongj...@gmail.com> wrote:

> 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