Create initial format style enforcement (#127)
- All rules are initially suppressed Resolves: https://jira.duraspace.org/browse/VIVO-1692
This commit is contained in:
parent
89bdf16008
commit
c0ad14b734
1 changed files with 48 additions and 0 deletions
48
pom.xml
48
pom.xml
|
@ -314,6 +314,54 @@
|
||||||
<stagingDirectory>${stagingBase}/vivo/${project.version}</stagingDirectory>
|
<stagingDirectory>${stagingBase}/vivo/${project.version}</stagingDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Used to validate all code style rules in source code using Checkstyle -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>verify-style</id>
|
||||||
|
<!-- Bind to verify so it runs after package & unit tests, but before install -->
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>check</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<configLocation>
|
||||||
|
duraspace-checkstyle/checkstyle.xml
|
||||||
|
</configLocation>
|
||||||
|
<suppressionsLocation>
|
||||||
|
vitro-checkstyle/checkstyle-suppressions.xml
|
||||||
|
</suppressionsLocation>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
<consoleOutput>true</consoleOutput>
|
||||||
|
<logViolationsToConsole>true</logViolationsToConsole>
|
||||||
|
<failOnViolation>true</failOnViolation>
|
||||||
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||||
|
</configuration>
|
||||||
|
<dependencies>
|
||||||
|
<!-- Override dependencies to use latest version of checkstyle -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
|
<artifactId>checkstyle</artifactId>
|
||||||
|
<version>8.18</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.duraspace</groupId>
|
||||||
|
<artifactId>codestyle</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.vivoweb</groupId>
|
||||||
|
<artifactId>checkstyle</artifactId>
|
||||||
|
<version>1.11.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
Loading…
Add table
Reference in a new issue