Great work! we need checkstyle like this to help our code clean. ————————————————— Jialin Qiao Apache IoTDB PMC
Eric Pai <[email protected]> 于2022年4月22日周五 12:16写道: > Hi, all, > > The google-java-format is just a code formatter, which cannot apply some > rules to code semantic. Only a formatter cannot help codes become better. > > So we plan to enable the linter, checkstyle, which has already been > integrated in the validation stage to let the codes developed by different > contributors obey the same style ruleset. > > Currently the AvoidStarImport rule is activated and the following commits > cannot use wildcard import like `import java.io.*` any more. This will not > affect any release branches. > > All the existed violations have been fixed in [1]. Please rebase the > master branch to make sure that the codes in your local branch can pass the > style check. > > Someone may be disrupted by IDEA default style configuration, so you can > reference the code style section of the latest contributor guide page[2] > and find the solutions. > > If anyone has good code style rules in practice, welcome to contribute > them to checkstyle.xml 😊 > > > [1] https://github.com/apache/iotdb/pull/5622 > [2] https://iotdb.apache.org/Development/ContributeGuide.html >
