HBASE-19262 Revisit checkstyle rules

This commit is contained in:
zhangduo 2017-11-15 15:38:02 +08:00
parent d885e2232d
commit c5ad801754
2 changed files with 3 additions and 1 deletions

View File

@ -33,5 +33,6 @@
<suppressions> <suppressions>
<suppress checks="." files=".*/generated/.*\.java"/> <suppress checks="." files=".*/generated/.*\.java"/>
<suppress checks="." files=".*/generated-jamon/.*\.java"/> <suppress checks="." files=".*/generated-jamon/.*\.java"/>
<suppress checks="MagicNumberCheck" files=".*Test\.java"/> <suppress checks="MagicNumberCheck" files=".*/src/test/.*\.java"/>
<suppress checks="VisibilityModifier" files=".*/src/test/.*\.java"/>
</suppressions> </suppressions>

View File

@ -67,6 +67,7 @@
http://checkstyle.sourceforge.net/config_imports.html --> http://checkstyle.sourceforge.net/config_imports.html -->
<module name="AvoidStarImport"/> <module name="AvoidStarImport"/>
<module name="ImportOrder"> <module name="ImportOrder">
<property name="groups" value="*,org.apache.hadoop.hbase.shaded"/>
<property name="option" value="top" /> <property name="option" value="top" />
<property name="ordered" value="true"/> <property name="ordered" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/> <property name="sortStaticImportsAlphabetically" value="true"/>