aboutsummaryrefslogtreecommitdiffstats
path: root/checkstyle
diff options
context:
space:
mode:
Diffstat (limited to 'checkstyle')
-rw-r--r--checkstyle/import-control.xml9
-rw-r--r--checkstyle/vaadin-checkstyle.xml4
2 files changed, 13 insertions, 0 deletions
diff --git a/checkstyle/import-control.xml b/checkstyle/import-control.xml
new file mode 100644
index 0000000000..076dbd8a22
--- /dev/null
+++ b/checkstyle/import-control.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE import-control PUBLIC
+ "-//Puppy Crawl//DTD Import Control 1.1//EN"
+ "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
+
+<import-control pkg="com.vaadin">
+ <allow pkg=".*" regex="true" />
+ <disallow class="com.google.gwt.user.client.Element" />
+</import-control> \ No newline at end of file
diff --git a/checkstyle/vaadin-checkstyle.xml b/checkstyle/vaadin-checkstyle.xml
index bcbbaf9171..ca572fe1a5 100644
--- a/checkstyle/vaadin-checkstyle.xml
+++ b/checkstyle/vaadin-checkstyle.xml
@@ -142,6 +142,10 @@
<module name="IllegalImport" /> <!-- defaults to sun.* packages -->
<module name="RedundantImport" />
<module name="UnusedImports" />
+ <module name="ImportControl">
+ <property name="file" value="${checkstyle.importControl.file}" />
+ <property name="severity" value="error" />
+ </module>
<!-- Checks for Size Violations. -->