Thanks. This looks good to me.
> On Jul 17, 2022, at 10:47, Chufeng Gao <[email protected]> wrote: > > Hi Zhenxu, > > Thanks for the comment. Spotless does support fixing style and formatting > incrementally. A example here: > > <configuration> > <ratchetFrom>upstream/main</ratchetFrom> <!-- only format files > which have changed since origin/main --> > <!-- ... define formats ... --> > </configuration> > > For details, see: `ratchet` > https://github.com/diffplug/spotless/tree/main/plugin-maven#ratchet > > Thanks! > > *Best Regards,* > > *Chufeng (Eric) Gao* > > > > kezhenxu94 <[email protected]> 于2022年7月17日周日 10:41写道: > >> >> >>>> On Jul 15, 2022, at 21:03, Chufeng Gao <[email protected]> wrote: >>> >>> Thanks Wenjun for the comment. I agree that we could fix the code style >>> incrementally instead of pushing a super big change and blowing up the >> CI. >>> Since I'm not familiar with DS CI, may I ask how much work we need to do >> in >>> the CI side if we pick up Spotless? >> >> If you want to pick up Spotless, once you finished setting up locally, >> it's just modifying a command in CI (change from checkstyle plugin to >> spotless plugin) >> and removing the ReviewDog related commands, should be a small change in >> CI. >> >> My concern is more about whether Spotless can work in/with incremental >> mode, >> in another word, developers can `check` AND `apply` ONLY to those files >> they modified, >> otherwise it's hard to work if I just change file A and `apply` command >> fixes all files. >> >> Chufeng, can you investigate whether Spotless can work in/with incremental >> mode and >> if so, how to do that. >> >> Thanks.
