Browse Source

Update PMD to newest version 6.6.0 and upper the method length limit

tags/version/0.4.8^0
Kai Kretschmann 1 year ago
parent
commit
3829e8a6bc
2 changed files with 38 additions and 1 deletions
  1. 12
    0
      pmdrules/ncss.xml
  2. 26
    1
      pom.xml

+ 12
- 0
pmdrules/ncss.xml View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<ruleset name="Custom ruleset"
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>Own adaption of values</description>
<rule ref="category/java/design.xml/NcssCount">
<properties>
<property name="methodReportLevel" value="25" />
</properties>
</rule>
</ruleset>

+ 26
- 1
pom.xml View File

@@ -4,7 +4,7 @@
<groupId>org.jastacry</groupId>
<artifactId>jastacry</artifactId>
<version>0.4.7</version>
<version>0.4.8</version>
<!-- 'mvn scm:tag' will create a new git tag with above value -->
<description>Java Stacked Crypto</description>
@@ -18,6 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<language.version>1.8</language.version>
<pmd.version>6.6.0</pmd.version>
<findbugs.version>3.0.5</findbugs.version>
<checkstyle.version>3.0.0</checkstyle.version>
<surefire.version>2.22.0</surefire.version>
@@ -168,6 +169,28 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.10.0</version>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>${pmd.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>${pmd.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-javascript</artifactId>
<version>${pmd.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-jsp</artifactId>
<version>${pmd.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
@@ -426,6 +449,7 @@
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<linkXref>true</linkXref>
<analysisCache>true</analysisCache>
<targetJdk>${language.version}</targetJdk>
<rulesets>
<!-- These three rules should be followed -->
@@ -445,6 +469,7 @@
<ruleset>/rulesets/java/sunsecure.xml</ruleset>
<ruleset>/rulesets/java/typeresolution.xml</ruleset>
<ruleset>/rulesets/java/junit.xml</ruleset>
<ruleset>${basedir}/pmdrules/ncss.xml</ruleset>
</rulesets>
<excludes>
<exclude>**/*generated*/**/*</exclude>

Loading…
Cancel
Save
Social stuff:
Mastodon