aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-pmd-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-pmd-plugin')
-rw-r--r--plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
index 62d11cc7639..079be40e4f3 100644
--- a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
+++ b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java
@@ -42,9 +42,6 @@ public class PmdSensor implements Sensor {
}
public void analyse(Project project, SensorContext context) {
- if (project.getReuseExistingRulesConfig()) {
- Logs.INFO.warn("Reusing existing PMD configuration is not supported any more.");
- }
try {
File xmlReport = executor.execute();
getStaxParser(project, context).parse(xmlReport);
@@ -57,7 +54,7 @@ public class PmdSensor implements Sensor {
public boolean shouldExecuteOnProject(Project project) {
return project.getFileSystem().hasJavaSourceFiles() &&
- (!profile.getActiveRulesByRepository(PmdConstants.REPOSITORY_KEY).isEmpty() || project.getReuseExistingRulesConfig());
+ !profile.getActiveRulesByRepository(PmdConstants.REPOSITORY_KEY).isEmpty();
}
private PmdViolationsXmlParser getStaxParser(Project project, SensorContext context) {