Use github page
This commit is contained in:
@ -115,7 +115,7 @@ public abstract class AbstractRuleSetFactoryTest {
|
||||
messages += "Rule " + fileName + "/" + rule.getName() + " is missing 'externalInfoURL' attribute"
|
||||
+ PMD.EOL;
|
||||
} else {
|
||||
String expectedExternalInfoURL = "http://pmd.sourceforge.net/.+/rules/"
|
||||
String expectedExternalInfoURL = "https?://pmd.(sourceforge.net|github.io)/.+/rules/"
|
||||
+ fileName.replaceAll("rulesets/", "").replaceAll(".xml", "") + ".html#" + rule.getName();
|
||||
if (rule.getExternalInfoUrl() == null
|
||||
|| !rule.getExternalInfoUrl().matches(expectedExternalInfoURL)) {
|
||||
|
4
pom.xml
4
pom.xml
@ -736,7 +736,7 @@
|
||||
<profile>
|
||||
<id>pmd-release</id>
|
||||
<properties>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
|
||||
<pmd.website.baseurl>https://pmd.github.io/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
@ -754,7 +754,7 @@
|
||||
</site>
|
||||
</distributionManagement>
|
||||
<properties>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
|
||||
<pmd.website.baseurl>https://pmd.github.io/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
Reference in New Issue
Block a user