diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-20 16:46:47 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-20 19:10:12 +0400 |
commit | 2095f5221c41f4df2b3d19b1f880181a092ffc99 (patch) | |
tree | 5782a9f67d91a57d86dea229f45706b00a73b45b /plugins/sonar-cpd-plugin | |
parent | 2e7b62e02e70e9189aa87dc8fe56caa3896f3049 (diff) | |
download | sonarqube-2095f5221c41f4df2b3d19b1f880181a092ffc99.tar.gz sonarqube-2095f5221c41f4df2b3d19b1f880181a092ffc99.zip |
SONAR-3139 Enable Sonar CPD by default
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java index fbb2be58662..b07ff10dbff 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java +++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdSensor.java @@ -64,11 +64,11 @@ public class CpdSensor implements Sensor { if (sonarEngine.isLanguageSupported(project.getLanguage())) { return sonarEngine; } - // falback to PMD - } else if (isEngineEnabled(project, "bridge")) { - return sonarBridgeEngine; + // falback to bridge + } else if (isEngineEnabled(project, "pmd")) { + return pmdEngine; } - return pmdEngine; + return sonarBridgeEngine; } boolean isEngineEnabled(Project project, String engineName) { |