Other non-configurable rules:
- Within each group, import clauses are ordered alphabetically.
- In multi-import statements, entries are ordered alphabetically, with method / packages
(assumed to be any string starting with a lower case letter) coming before classes.
Currently, this checker only looks at the top-level list of imports.
Style checker that enforces import ordering. The following configuration parameters are available:
For example, to check that "java" and "javax" imports are in a separate group at the top of the import list, you'd use this config:
<parameter name="groups">java,others</parameter> <parameter name="group.java">javax?\..+</parameter> <parameter name="group.other">.+</parameter>
Other non-configurable rules: - Within each group, import clauses are ordered alphabetically. - In multi-import statements, entries are ordered alphabetically, with method / packages (assumed to be any string starting with a lower case letter) coming before classes.
Currently, this checker only looks at the top-level list of imports.