summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-17 17:08:13 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-18 09:36:10 +0200
commit9060cac655bd0484b27ec74758343230712a85c4 (patch)
tree2bd3ecdbeae9b7f93c2f2a522f1ff8a3f1f56de2 /sonar-plugin-api
parent1fd988439a81be12b536a01d0080db18026f54f9 (diff)
downloadsonarqube-9060cac655bd0484b27ec74758343230712a85c4.tar.gz
sonarqube-9060cac655bd0484b27ec74758343230712a85c4.zip
SONAR-6767 Default mode should be named publish mode
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java
index 904d8386674..c1f8d9d208e 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/AnalysisMode.java
@@ -19,12 +19,15 @@
*/
package org.sonar.api.batch;
+import org.sonar.api.CoreProperties;
+
/**
* Use this component to find the current running mode.
* @since 5.1
*/
@BatchSide
public interface AnalysisMode {
+ static final String[] VALID_MODES = {CoreProperties.ANALYSIS_MODE_PUBLISH, CoreProperties.ANALYSIS_MODE_ISSUES};
boolean isPreview();