<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-checkstyle-plugin</artifactid>
<version>${maven-checkstyle-plugin-version}</version>
<configuration>
<includetestsourcedirectory>true</includetestsourcedirectory>
<configlocation>http://YOURSONARSERVER/profiles/export?format=checkstyle&language=java&name=YOURCHECKSTYLEFILERULES</configlocation>
<suppressionslocation>http://sonar.it.ods/checkstyle-suppressions.xml</suppressionslocation>
<suppressionsfileexpression>checkstyle.suppressions.file</suppressionsfileexpression>
</configuration>
<executions>
<execution>
<id>checkstyle</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<failonviolation>true</failonviolation>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupid>com.puppycrawl.tools</groupid>
<artifactid>checkstyle</artifactid>
<version>${checkstyle-version}</version>
</dependency>
</dependencies>
</plugin>
jueves, 10 de septiembre de 2015
maven-checkstyle-plugin configuration usando la configuracion desde Sonar
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario