Log links to the proper PMD version

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-12-23 02:01:43 -03:00
parent 19cda30527
commit d5a7edf7ff

View File

@ -7,8 +7,10 @@ package net.sourceforge.pmd.cache;
import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.sourceforge.pmd.PMD;
import net.sourceforge.pmd.RuleSets;
import net.sourceforge.pmd.RuleViolation;
import net.sourceforge.pmd.stat.Metric;
@ -21,8 +23,11 @@ public class NoopAnalysisCache implements AnalysisCache {
private static final Logger LOG = Logger.getLogger(NoopAnalysisCache.class.getName());
public NoopAnalysisCache() {
LOG.warning("This analysis could be faster, please consider using Incremental Analysis: "
+ "https://pmd.github.io/pmd/pmd_userdocs_getting_started.html#incremental-analysis");
if (LOG.isLoggable(Level.WARNING)) {
final String version = "unknown".equals(PMD.VERSION) || PMD.VERSION.endsWith("-SNAPSHOT") ? "latest" : "pmd-" + PMD.VERSION;
LOG.warning("This analysis could be faster, please consider using Incremental Analysis: "
+ "https://pmd.github.io/" + version + "/pmd_userdocs_getting_started.html#incremental-analysis");
}
}
@Override