diff options
Diffstat (limited to 'plugins/sonar-pmd-plugin')
-rw-r--r-- | plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConfiguration.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConfiguration.java b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConfiguration.java index 86ca2e5e32d..a03b8dd077e 100644 --- a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConfiguration.java +++ b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConfiguration.java @@ -25,6 +25,8 @@ import java.io.StringWriter; import java.util.Arrays; import java.util.List; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.sonar.api.BatchExtension; import org.sonar.api.CoreProperties; import org.sonar.api.batch.maven.MavenPlugin; @@ -34,6 +36,8 @@ import org.sonar.api.resources.Project; public class PmdConfiguration implements BatchExtension { + private static Logger LOG = LoggerFactory.getLogger(PmdConfiguration.class); + private PmdProfileExporter pmdProfileExporter; private RulesProfile rulesProfile; private Project project; @@ -46,6 +50,7 @@ public class PmdConfiguration implements BatchExtension { public List<String> getRulesets() { if (project.getReuseExistingRulesConfig()) { + LOG.warn("Reusing existing PMD configuration is deprecated as it's unstable and can not provide meaningful results. This feature will be removed soon."); return getDeclaredRulesets(); } return Arrays.asList(saveXmlFile().getAbsolutePath()); |