aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkstyle.xml
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-04-02 13:41:15 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-04-02 13:41:15 +0200
commit846b379eb293420bb3fb9ea91112e9575f8caee0 (patch)
treeda6a90c9502fbb53cd638b5f6a86925da0ebca1b /tools/checkstyle.xml
parent269f7feb8924a2d6a77df1153d31d2a98cfa6ea0 (diff)
parentc45c0f4a92750422dda762c70956a7a6fe0b556f (diff)
downloadopen-keychain-846b379eb293420bb3fb9ea91112e9575f8caee0.tar.gz
open-keychain-846b379eb293420bb3fb9ea91112e9575f8caee0.tar.bz2
open-keychain-846b379eb293420bb3fb9ea91112e9575f8caee0.zip
Merge pull request #507 from thi/fix-wildcard-imports
Fix wildcard imports
Diffstat (limited to 'tools/checkstyle.xml')
-rw-r--r--tools/checkstyle.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/checkstyle.xml b/tools/checkstyle.xml
index 95ef07a90..c99f858ab 100644
--- a/tools/checkstyle.xml
+++ b/tools/checkstyle.xml
@@ -12,7 +12,6 @@ page at http://checkstyle.sourceforge.net/config.html -->
<module name="SuppressionFilter">
<property name="file" value="tools/suppressions.xml"/>
</module>
-
<module name="RegexpSingleline">
<!-- Requires a copyright notice in each file.
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"/>
</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">
<!-- Checks that there are no tab characters in the file.
-->