aboutsummaryrefslogtreecommitdiffstats
path: root/checkstyle/import-control.xml
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-03-25 09:03:52 +0200
committerVaadin Code Review <review@vaadin.com>2014-03-25 11:33:17 +0000
commitdc89e28f4d8251d0b721a2b9e143770a5fcda195 (patch)
treea52b93e699d304b0218ece0450ff89cb0ad813ed /checkstyle/import-control.xml
parent4379bd6368983de07c907421140499f471465408 (diff)
downloadvaadin-framework-dc89e28f4d8251d0b721a2b9e143770a5fcda195.tar.gz
vaadin-framework-dc89e28f4d8251d0b721a2b9e143770a5fcda195.zip
Trigger a checkstyle error if importing the wrong Element class (#13287)
Change-Id: Ief15e88c9c6fe5fd88dbf9f12783ac2f5ae617c6
Diffstat (limited to 'checkstyle/import-control.xml')
-rw-r--r--checkstyle/import-control.xml9
1 files changed, 9 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