diff options
author | Julien HENRY <henryju@yahoo.fr> | 2017-07-06 15:03:29 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-07-07 09:42:54 +0200 |
commit | 539c34e510ed4998d8dc0e6a4958d5fc49ffcc84 (patch) | |
tree | 502ca5a20c15a6b5db2aef70d6aa9de288a0fca4 /plugins/sonar-xoo-plugin | |
parent | 34ec38c33a375755fe97db021175d2008367bb90 (diff) | |
download | sonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.tar.gz sonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.zip |
SONAR-8546 Add medium test
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/CpdTokenizerSensor.java | 2 |
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); } |