aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-01-02 16:27:44 +0100
committerManolo Carrasco <manolo@apache.org>2015-01-02 16:27:44 +0100
commitcfd1a3ffb2119c48fdba28683047ecdcf8b65409 (patch)
tree8a4a21fb6ff3afb204b698b622c78e9b0a384bbd
parent29e9e508cbf08a239f44f9d7df447cd32e9426b5 (diff)
downloadgwtquery-cfd1a3ffb2119c48fdba28683047ecdcf8b65409.tar.gz
gwtquery-cfd1a3ffb2119c48fdba28683047ecdcf8b65409.zip
Make checkstyle run when validating sources
-rw-r--r--gwtquery-core/pom.xml13
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java2
2 files changed, 12 insertions, 3 deletions
diff --git a/gwtquery-core/pom.xml b/gwtquery-core/pom.xml
index 65aaf451..0a56bc8c 100644
--- a/gwtquery-core/pom.xml
+++ b/gwtquery-core/pom.xml
@@ -148,10 +148,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.13</version>
<configuration>
<configLocation>src/main/code-style/gwt-checkstyle.xml</configLocation>
</configuration>
+ <executions>
+ <execution>
+ <id>checkstyle</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <failOnViolation>true</failOnViolation>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
index eea88ce4..418bfdb0 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
@@ -13,8 +13,6 @@
*/
package com.google.gwt.query.client;
-import static com.google.gwt.query.client.GQuery.$;
-import static com.google.gwt.query.client.GQuery.document;
import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
import com.google.gwt.core.client.GWT;