aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-06-10 00:41:17 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-06-10 12:36:11 +0200
commit9decc5bd48352c1fb9fceca9de8b7eca654fd0bf (patch)
tree0e95b2362e21f63347679e33ebefe8186ea58739 /sonar-plugin-api
parentda92c49827337bd34fbf077d5d74c9fbfb8ec287 (diff)
downloadsonarqube-9decc5bd48352c1fb9fceca9de8b7eca654fd0bf.tar.gz
sonarqube-9decc5bd48352c1fb9fceca9de8b7eca654fd0bf.zip
SONAR-5389 Initial version of the new sensor mode
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java5
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java8
2 files changed, 11 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
index 2b105f454fe..ee0d032f215 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
@@ -510,6 +510,11 @@ public interface CoreProperties {
String ANALYSIS_MODE_INCREMENTAL = "incremental";
/**
+ * @since 4.4
+ */
+ String ANALYSIS_MODE_SENSOR = "sensor";
+
+ /**
* @since 4.0
*/
String PREVIEW_INCLUDE_PLUGINS = "sonar.preview.includePlugins";
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
index 60a1f2f83c3..6e93bf5b7fe 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
@@ -19,12 +19,12 @@
*/
package org.sonar.api.rules;
+import org.sonar.api.ServerComponent;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.task.TaskComponent;
-import org.sonar.api.ServerComponent;
-
import javax.annotation.CheckForNull;
+
import java.util.Collection;
/**
@@ -44,6 +44,10 @@ public interface RuleFinder extends TaskComponent, ServerComponent {
@CheckForNull
Rule findByKey(RuleKey key);
+ /**
+ * @throw NonUniqueResultException if more than one result
+ */
+ @CheckForNull
Rule find(RuleQuery query);
Collection<Rule> findAll(RuleQuery query);