Compare commits
9 Commits
main
...
pmd_releas
Author | SHA1 | Date | |
---|---|---|---|
|
13e36974a5 | ||
|
33c7af965c | ||
|
a66bbf2193 | ||
|
38af8f2433 | ||
|
a6bcfe2b65 | ||
|
6474fde42d | ||
|
8dcde0edb5 | ||
|
70347aedd5 | ||
|
eaf1385595 |
@ -1,4 +1,4 @@
|
||||
???? ??, 2012 - 5.1.0:
|
||||
November 28, 2012 - 5.0.1:
|
||||
|
||||
Fixed bug 820: False+ AvoidReassigningParameters
|
||||
Fixed bug 1008: pmd-5.0.0: ImmutableField false positive on self-inc/dec
|
||||
@ -471,7 +471,7 @@ The RuleSet XML Schema namespace is now: http://pmd.sourceforge.net/ruleset/2.0.
|
||||
The RuleSet XML Schema is located in the source at: etc/ruleset_2_0_0.xsd
|
||||
The RuleSet DTD is located in the source at: etc/ruleset_2_0_0.dtd
|
||||
Improved include/exclude pattern matching performance for ends-with type patterns.
|
||||
Modify (and hopefully fixed) CPD algorithm thanks to a patch from Juan Jesús García de Soria.
|
||||
Modify (and hopefully fixed) CPD algorithm thanks to a patch from Juan Jesús GarcÃa de Soria.
|
||||
Fixed character reference in xml report - thanks to Seko
|
||||
Enhanced SuspiciousEqualsMethodName rule - thanks to Andy Throgmorton
|
||||
Add a script to launch CPDGUI on Unix system - thanks to Tom Wheeler
|
||||
@ -535,7 +535,7 @@ Fixed bug 2835074 - False -: DoubleCheckedLocking with reversed null check
|
||||
Fixed bug 2826119 - False +: DoubleCheckedLocking warning with volatile field
|
||||
Fixed bug 2904832 - Type resolution not working for ASTType when using an inner class
|
||||
|
||||
Modify (and hopefully fixed) CPD algorithm thanks to a patch from Juan Jesús García de Soria.
|
||||
Modify (and hopefully fixed) CPD algorithm thanks to a patch from Juan Jesús GarcÃa de Soria.
|
||||
Correct -benchmark reporting of Rule visits via the RuleChain
|
||||
Fix issue with Type Resolution incorrectly handling of Classes with same name as a java.lang Class.
|
||||
The JSP/JSF parser can now parse Unicode input.
|
||||
|
49
pmd/pom.xml
49
pmd/pom.xml
@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<name>PMD</name>
|
||||
<version>5.1.0-SNAPSHOT</version>
|
||||
<version>5.0.1</version>
|
||||
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
@ -233,6 +232,7 @@
|
||||
<connection>scm:git:git://github.com/pmd/pmd.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@github.com/pmd/pmd.git</developerConnection>
|
||||
<url>https://github.com/pmd/pmd</url>
|
||||
<tag>pmd_releases/5.0.1</tag>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>InfoEther</name>
|
||||
@ -246,7 +246,7 @@
|
||||
If the xdocs files stay in src/site/xdoc/, mvn tries to copy over the generated
|
||||
one, and complains... -->
|
||||
<src.xdocs.dir>src/site/xdocs</src.xdocs.dir>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/snapshot</pmd.website.baseurl>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}</pmd.website.baseurl>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@ -333,10 +333,8 @@
|
||||
<configuration>
|
||||
<target>
|
||||
<ant antfile="src/main/ant/alljavacc.xml">
|
||||
<property name="target"
|
||||
value="${project.build.directory}/generated-sources/javacc" />
|
||||
<property name="javacc.jar"
|
||||
value="${settings.localRepository}/net/java/dev/javacc/javacc/${javacc.version}/javacc-${javacc.version}.jar" />
|
||||
<property name="target" value="${project.build.directory}/generated-sources/javacc" />
|
||||
<property name="javacc.jar" value="${settings.localRepository}/net/java/dev/javacc/javacc/${javacc.version}/javacc-${javacc.version}.jar" />
|
||||
</ant>
|
||||
</target>
|
||||
</configuration>
|
||||
@ -350,15 +348,11 @@
|
||||
<configuration>
|
||||
<target>
|
||||
<echo>PMD specific tasks: generating xdocs from rulesets</echo>
|
||||
<mkdir
|
||||
dir="${project.build.directory}/generated-xdocs/" />
|
||||
<copy
|
||||
toDir="${project.build.directory}/generated-xdocs/"
|
||||
overwrite="true" verbose="true">
|
||||
<mkdir dir="${project.build.directory}/generated-xdocs/" />
|
||||
<copy toDir="${project.build.directory}/generated-xdocs/" overwrite="true" verbose="true">
|
||||
<fileset dir="${src.xdocs.dir}" />
|
||||
<filterset>
|
||||
<filter token="VERSION"
|
||||
value="${project.version}" />
|
||||
<filter token="VERSION" value="${project.version}" />
|
||||
</filterset>
|
||||
</copy>
|
||||
</target>
|
||||
@ -374,25 +368,18 @@
|
||||
<target>
|
||||
<echo>PMD site specific tasks</echo>
|
||||
<echo>1. Copying missing images to site directory.</echo>
|
||||
<copy
|
||||
todir="${project.build.directory}/site/images/">
|
||||
<fileset dir="${src.xdocs.dir}/images/"
|
||||
includes="**/*.*" />
|
||||
<copy todir="${project.build.directory}/site/images/">
|
||||
<fileset dir="${src.xdocs.dir}/images/" includes="**/*.*" />
|
||||
</copy>
|
||||
<echo>2. Adding missing text files to site.</echo>
|
||||
<copy todir="${project.build.directory}/site/">
|
||||
<fileset dir="${src.xdocs.dir}/"
|
||||
includes="**/*.txt" />
|
||||
<fileset dir="${src.xdocs.dir}/" includes="**/*.txt" />
|
||||
</copy>
|
||||
<echo>3. Deleting useless generated files.</echo>
|
||||
<delete quiet="true">
|
||||
<fileset dir="${src.xdocs.dir}/rules"
|
||||
includes="**/*.xml" />
|
||||
<fileset dir="${src.xdocs.dir}/"
|
||||
includes="mergedruleset.xml" />
|
||||
<fileset
|
||||
dir="${project.build.directory}"
|
||||
includes="site/mergedruleset.html" />
|
||||
<fileset dir="${src.xdocs.dir}/rules" includes="**/*.xml" />
|
||||
<fileset dir="${src.xdocs.dir}/" includes="mergedruleset.xml" />
|
||||
<fileset dir="${project.build.directory}" includes="site/mergedruleset.html" />
|
||||
</delete>
|
||||
</target>
|
||||
</configuration>
|
||||
@ -407,10 +394,8 @@
|
||||
<target>
|
||||
<echo>PMD specific tasks: cleaning generated xdocs</echo>
|
||||
<delete quiet="true">
|
||||
<fileset dir="${src.xdocs.dir}/rules"
|
||||
includes="**/*.xml" />
|
||||
<fileset dir="${src.xdocs.dir}/"
|
||||
includes="mergedruleset.xml" />
|
||||
<fileset dir="${src.xdocs.dir}/rules" includes="**/*.xml" />
|
||||
<fileset dir="${src.xdocs.dir}/" includes="mergedruleset.xml" />
|
||||
</delete>
|
||||
</target>
|
||||
</configuration>
|
||||
|
14
pmd/src/main/resources/rulesets/releases/501.xml
Normal file
14
pmd/src/main/resources/rulesets/releases/501.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<ruleset name="501"
|
||||
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>
|
||||
This ruleset contains links to rules that are new in PMD v5.0.1
|
||||
</description>
|
||||
|
||||
<rule ref="rulesets/ecmascript/basic.xml/AvoidTrailingComma"/>
|
||||
|
||||
</ruleset>
|
||||
|
@ -39,13 +39,8 @@
|
||||
</breadcrumbs>
|
||||
|
||||
<menu name="Overview">
|
||||
<item href="/index.html" name="Download PMD 5.1.0-SNAPSHOT"/>
|
||||
<item href="http://pmd.adabolo.de/job/pmd-trunk/changes" name="What's new in PMD 5.1.0-SNAPSHOT"/>
|
||||
|
||||
<!--
|
||||
<item name="Download PMD 5.1.0" href="http://sourceforge.net/projects/pmd/files/pmd/5.1.0/pmd-bin-5.1.0.zip/download" />
|
||||
<item name="What's new in PMD 5.1.0" href="https://sourceforge.net/projects/pmd/files/pmd/5.1.0/" />
|
||||
-->
|
||||
<item name="Download PMD 5.0.1" href="http://sourceforge.net/projects/pmd/files/pmd/5.0.1/pmd-bin-5.0.1.zip/download" />
|
||||
<item name="What's new in PMD 5.0.1" href="https://sourceforge.net/projects/pmd/files/pmd/5.0.1/" />
|
||||
<item href="/news.html" name="PMD in the news"/>
|
||||
<item href="/products.html" name="PMD-related products and books"/>
|
||||
<item href="/bestpractices.html" name="Best practices"/>
|
||||
|
@ -20,6 +20,15 @@
|
||||
|
||||
<h3>Recent releases</h3>
|
||||
<p><ul>
|
||||
<li><p>2012-11-28 PMD 5.0.1: minor version with lots of bug fixes (<a href="https://sourceforge.net/projects/pmd/files/pmd/5.0.1/">Changelog</a>)
|
||||
<ul>
|
||||
<li>Fixed bugs: https://sourceforge.net/p/pmd/bugs/milestone/PMD-5.0.1/</li>
|
||||
<li>New EcmaScript Rule: Basic ruleset: AvoidTrailingComma</li>
|
||||
<li>Improved JSP parser to be less strict with not valid XML documents (like HTML)</li>
|
||||
<li>Improved CPD: Support in CPD for IgnoreAnnotations and SuppressWarnings("CPD-START")</li>
|
||||
<li>PMD Command Line: Improved command line interface (CLI) parsing using JCommander.</li>
|
||||
</ul></p>
|
||||
</li>
|
||||
<li><p>2012-05-01 PMD 5.0.0: major version supporting additional languages and new rules (<a href="https://sourceforge.net/projects/pmd/files/pmd/5.0.0/">Changelog</a>)
|
||||
<ul>
|
||||
<li>Additional languages support (Java, JavaScript, XML, XSL, JSP)</li>
|
||||
@ -51,18 +60,6 @@
|
||||
<p>The next development version will be PMD 5.1. We will release other 5.0.x versions
|
||||
with bug fixes if needed.</p>
|
||||
<p>A <a href="http://pmd.sourceforge.net/snapshot">snapshot</a> of the web site for the new version is generated daily by our continuous integration server. Early access versions can also be downloaded from there.</p>
|
||||
|
||||
|
||||
<h3>Download (early access)</h3>
|
||||
<p>A new snapshot of the 5.1 release is generated daily using a <a href="http://jenkins-ci.org/">Jenkins</a> continuous integration server.</p>
|
||||
<p>Source and binary packages are available at
|
||||
|
||||
<a href="http://pmd.adabolo.de/job/pmd-trunk/">http://pmd.adabolo.de/job/pmd-trunk/</a>
|
||||
in the artifacts section in the center of the page.</p>
|
||||
|
||||
<p>Maven packages are also generated regularly and uploaded to the <a href="http://pmd.sourceforge.net/snapshot/maven2">snapshot repository</a> and
|
||||
to <a href="https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/pmd/pmd/">Sonatypes OSS snapshot repository</a>.</p>
|
||||
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
|
@ -475,11 +475,11 @@ public class RuleSetFactoryTest {
|
||||
+ " is missing 'externalInfoURL' attribute"
|
||||
+ PMD.EOL;
|
||||
} else {
|
||||
String expectedExternalInfoURL = "http://pmd.sourceforge.net/snapshot/rules/"
|
||||
String expectedExternalInfoURL = "http://pmd.sourceforge.net/.+/rules/"
|
||||
+ fileName.replaceAll("rulesets/", "").replaceAll(
|
||||
".xml", "") + ".html#" + rule.getName();
|
||||
if (!expectedExternalInfoURL.equals(rule
|
||||
.getExternalInfoUrl())) {
|
||||
if (rule.getExternalInfoUrl() == null
|
||||
|| !rule.getExternalInfoUrl().matches(expectedExternalInfoURL)) {
|
||||
invalidExternalInfoURL++;
|
||||
messages += "Rule "
|
||||
+ fileName
|
||||
|
Reference in New Issue
Block a user