From 2e9b73141ec919ed467010333808168f53efcb06 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 4 Jun 2016 20:19:19 +0200 Subject: [PATCH] Fix unit test --- .../java/net/sourceforge/pmd/renderers/CodeClimateRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/renderers/CodeClimateRenderer.java b/pmd-core/src/main/java/net/sourceforge/pmd/renderers/CodeClimateRenderer.java index 064a891a52..e45bfaa9b8 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/renderers/CodeClimateRenderer.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/renderers/CodeClimateRenderer.java @@ -141,7 +141,7 @@ public class CodeClimateRenderer extends AbstractIncrementingRenderer { private static String getPmdDeveloperURL() { String url = "http://pmd.github.io/pmd-" + PMD.VERSION + "/customizing/pmd-developer.html"; - if (PMD.VERSION.contains("SNAPSHOT")) { + if (PMD.VERSION.contains("SNAPSHOT") || "unknown".equals(PMD.VERSION)) { url = "http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html"; } return url;