aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manolo@apache.org>2015-01-04 10:52:10 +0100
committerManuel Carrasco Moñino <manolo@apache.org>2015-01-04 10:52:10 +0100
commit0b490ea05a0c05da8abff00724db4c4e24586934 (patch)
tree8a4a21fb6ff3afb204b698b622c78e9b0a384bbd
parent29e9e508cbf08a239f44f9d7df447cd32e9426b5 (diff)
parentcfd1a3ffb2119c48fdba28683047ecdcf8b65409 (diff)
downloadgwtquery-0b490ea05a0c05da8abff00724db4c4e24586934.tar.gz
gwtquery-0b490ea05a0c05da8abff00724db4c4e24586934.zip
Merge pull request #332 from manolo/mcm_checkstyle
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;