Add wildcard import warning to checkstyle configuration
This commit is contained in:
1 parent
77a6c509f7
commit
c45c0f4a92
1 file changed
+7
-1
@@ -12,7 +12,6 @@ page at http://checkstyle.sourceforge.net/config.html -->
|
|||||||
<module name="SuppressionFilter">
|
<module name="SuppressionFilter">
|
||||||
<property name="file" value="tools/suppressions.xml"/>
|
<property name="file" value="tools/suppressions.xml"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module name="RegexpSingleline">
|
<module name="RegexpSingleline">
|
||||||
<!-- Requires a copyright notice in each file.
|
<!-- Requires a copyright notice in each file.
|
||||||
Code intended to be open-sourced may have a multi-line copyright
|
Code intended to be open-sourced may have a multi-line copyright
|
||||||
@@ -32,6 +31,13 @@ page at http://checkstyle.sourceforge.net/config.html -->
|
|||||||
<property name="severity" value="error"/>
|
<property name="severity" value="error"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|
||||||
|
<module name="RegexpSingleline">
|
||||||
|
<property name="format" value="^import.*\*.*$"/>
|
||||||
|
<property name="message" value="Wildcard imports are not ideal."/>
|
||||||
|
<property name="severity" value="warning"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<module name="FileTabCharacter">
|
<module name="FileTabCharacter">
|
||||||
<!-- Checks that there are no tab characters in the file.
|
<!-- Checks that there are no tab characters in the file.
|
||||||
-->
|
-->
|
||||||
|
|||||||
Reference in new issue
Block a user