Hi community, Right now, we use checkstyle plugin to check if the new PR's code style is suitable for our code specification. And we have defined our code specification in a checkstyle.xml file[1]. When contributors want to contribute code, they need to import our checkstyle file into their IDE. Although, we have introduced how to config this in IDE[2]. But I find many new contributors still don't know how to config this, and their contribution has been blocked by the code style issue.
This proposal hopes to use spotless plugin to format code[3], with spotless plugin, user only need to execute ./gradlew spotlessApply, then their code will be formatted automatically, they didn't need to do another config. This can help contributors to focus on their contributions. [1] https://github.com/apache/incubator-eventmesh/blob/master/style/checkStyle.xml [2] https://github.com/apache/incubator-eventmesh/blob/master/CONTRIBUTING.md#code-style [3] https://github.com/diffplug/spotless/tree/main/plugin-gradle Best, Wenjun Ruan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
