Skip to content

Commit 97d6f90

Browse files
committed
修改checkstyle配置,以符合IDEA默认的import顺序规则
1 parent 2146372 commit 97d6f90

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quality-checks/google_checks.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@
163163
<module name="OverloadMethodsDeclarationOrder"/>
164164
<module name="VariableDeclarationUsageDistance"/>
165165
<module name="CustomImportOrder">
166+
<property name="customImportOrderRules"
167+
value="THIRD_PARTY_PACKAGE###SPECIAL_IMPORTS###STANDARD_JAVA_PACKAGE###STATIC"/>
168+
<property name="specialImportsRegExp" value="^javax\."/>
169+
<property name="standardPackageRegExp" value="^java\."/>
166170
<property name="sortImportsInGroupAlphabetically" value="true"/>
167-
<property name="separateLineBetweenGroups" value="true"/>
168-
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
171+
<property name="separateLineBetweenGroups" value="false"/>
169172
</module>
170173
<module name="MethodParamPad"/>
171174
<module name="ParenPad"/>

0 commit comments

Comments
 (0)