exclude generated classes from PMD checks

This commit is contained in:
anhefti 2018-11-19 14:50:33 +01:00
parent d40463302c
commit 807cae3e51
2 changed files with 4 additions and 18 deletions

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="excludes"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>excludes</description>
<exclude-pattern>.*/batis.mapper/*.*</exclude-pattern>
<exclude-pattern>.*/batis.model/*.*</exclude-pattern>
</ruleset>

13
pom.xml
View file

@ -80,15 +80,10 @@
<failOnViolation>false</failOnViolation>
<targetJdk>${java.version}</targetJdk>
<linkXRef>false</linkXRef>
<excludeRoots>.*/batis.mapper/*.*</excludeRoots>
<excludeRoots>.*/batis.model/*.*</excludeRoots>
<!-- <excludes> -->
<!-- <exclude>.*/batis.mapper/*.*</exclude> -->
<!-- <exclude>.*/batis.model/*.*</exclude> -->
<!-- </excludes> -->
<!-- <rulesets> -->
<!-- <ruleset>pmd-excludes.xml</ruleset> -->
<!-- </rulesets> -->
<excludes>
<exclude>**/batis/mapper/*.java</exclude>
<exclude>**/batis/model/*.java</exclude>
</excludes>
</configuration>
<executions>
<execution>