[DISCUSS] Java files have different import order from Scala files
As we all know, the Java files have different import order from the Scala
files in the whole project. For the Java files, we can import the packages
like 'org.apache.commons' before 'org.apache.carbondata' but without any
checkstyle plugin detected.
Code is written once by its author, but read and modified multiple times by
lots of other engineers. As most bugs actually come from future modification
of the code, we need to optimize our codebase for long-term, global
readability and maintainability. Although the order of imports seems not to
be a big deal at most of the time, it does break the readability and
maintainability of the whole project, and even make the project hard to
After some investigation, I find it is easy to keep the same import order
between Java and Scala files.
This is the configs from dev/javastyle-config.xml for Checktyle, the Maven