aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2017-07-06 15:03:29 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-07-07 09:42:54 +0200
commit539c34e510ed4998d8dc0e6a4958d5fc49ffcc84 (patch)
tree502ca5a20c15a6b5db2aef70d6aa9de288a0fca4 /plugins
parent34ec38c33a375755fe97db021175d2008367bb90 (diff)
downloadsonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.tar.gz
sonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.zip
SONAR-8546 Add medium test
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java
index 568003d9d89..13106de2bee 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java
@@ -74,7 +74,7 @@ public class CpdTokenizerSensor implements Sensor {
public void describe(SensorDescriptor descriptor) {
descriptor
.name("Xoo Cpd Tokenizer Sensor")
- .requireProperty(ENABLE_PROP)
+ .onlyWhenConfiguration(conf -> conf.hasKey(ENABLE_PROP) || conf.hasKey(ENABLE_PROP + ".old"))
.onlyOnLanguages(Xoo.KEY);
}