diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-07-11 16:36:09 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-07-11 16:36:13 +0200 |
commit | 49f9efe312d6becd98056f1fffde00ed23d4b89b (patch) | |
tree | 5abc9f25dbefd66f26520b71e91a6dad282b5dc9 /plugins | |
parent | e21f7808ca3f2d1a0958a8bb2a4492cc0106680e (diff) | |
download | sonarqube-49f9efe312d6becd98056f1fffde00ed23d4b89b.tar.gz sonarqube-49f9efe312d6becd98056f1fffde00ed23d4b89b.zip |
Make Xoo Plugin compatible with SonarLint Core
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java index 1ff4660920f..c1d757812a7 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java @@ -20,6 +20,7 @@ package org.sonar.xoo; import org.sonar.api.Plugin; +import org.sonar.api.SonarProduct; import org.sonar.xoo.coverage.ItCoverageSensor; import org.sonar.xoo.coverage.OverallCoverageSensor; import org.sonar.xoo.coverage.UtCoverageSensor; @@ -92,13 +93,11 @@ public class XooPlugin implements Plugin { // sensors HasTagSensor.class, - MeasureSensor.class, LineMeasureSensor.class, SyntaxHighlightingSensor.class, SymbolReferencesSensor.class, ChecksSensor.class, RandomAccessSensor.class, - DeprecatedResourceApiSensor.class, SaveDataTwiceSensor.class, OneBlockerIssuePerFileSensor.class, @@ -129,6 +128,11 @@ public class XooPlugin implements Plugin { // Other XooProjectBuilder.class, XooPostJob.class); + + if(context.getRuntimeProduct() != SonarProduct.SONARLINT) { + context.addExtensions(MeasureSensor.class, + DeprecatedResourceApiSensor.class); + } if (context.getSonarQubeVersion().isGreaterThanOrEqual(V5_5)) { context.addExtension(CpdTokenizerSensor.class); |