]> source.dussan.org Git - gwtquery.git/commitdiff
Make checkstyle run when validating sources
authorManolo Carrasco <manolo@apache.org>
Fri, 2 Jan 2015 15:27:44 +0000 (16:27 +0100)
committerManolo Carrasco <manolo@apache.org>
Fri, 2 Jan 2015 15:27:44 +0000 (16:27 +0100)
gwtquery-core/pom.xml
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 65aaf451a09cf338896fad6258a41fedc5eb83fc..0a56bc8c553410bc43494264934a46e87bc89ca1 100644 (file)
             <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>
index eea88ce4c53f087f4d87b239ce3c799eb641ccc4..418bfdb0da6c97f29a6eddfb3226e55c0b5ce093 100644 (file)
@@ -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;