Enabled PMD checking for jsp files

2 rulesets are included.
master
Evan Harris 5 years ago
parent 42537686fc
commit 29c1b5dbca
No known key found for this signature in database
GPG Key ID: FF3BD4DA59FF9EDC
  1. 18
      airsonic-main/pom.xml
  2. 17
      pom.xml

@ -595,6 +595,24 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId> <artifactId>maven-checkstyle-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<language>jsp</language>
<rulesets>
<ruleset>/category/jsp/codestyle.xml</ruleset>
<ruleset>/category/jsp/errorprone.xml</ruleset>
</rulesets>
<includes>
<include>**/*.jsp</include>
<include>**/*.jspf</include>
</includes>
<compileSourceRoots>
<compileSourceRoot>${basedir}/src/main/webapp/WEB-INF/jsp</compileSourceRoot>
</compileSourceRoots>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>

@ -264,6 +264,23 @@
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.12.0</version>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<sourceEncoding>utf-8</sourceEncoding>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.owasp</groupId> <groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId> <artifactId>dependency-check-maven</artifactId>

Loading…
Cancel
Save