diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-10-20 11:51:00 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-10-20 21:36:10 +1000 |
commit | 7baa39968b61a61b5d73640bbe0eac26a686d85b (patch) | |
tree | c717e4269fa71b4a64be22ed2f369243a4ed8bb2 /sonar-core | |
parent | def87ea26a53c40af92b225d1c2e03d1a28016da (diff) | |
download | sonarqube-7baa39968b61a61b5d73640bbe0eac26a686d85b.tar.gz sonarqube-7baa39968b61a61b5d73640bbe0eac26a686d85b.zip |
SONAR-9770 Deprecate preview properties
Diffstat (limited to 'sonar-core')
3 files changed, 3 insertions, 12 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java index b9746f5ed2d..817759783fb 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java +++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java @@ -105,14 +105,14 @@ public class CorePropertyDefinitions { .build(), PropertyDefinition.builder(CoreProperties.PREVIEW_INCLUDE_PLUGINS) .name("Plugins accepted for Preview mode") - .description("List of plugin keys. Those plugins will be used during preview analyses.") + .description("DEPRECATED - List of plugin keys. Those plugins will be used during preview analyses.") .category(CoreProperties.CATEGORY_GENERAL) .multiValues(true) .defaultValue(CoreProperties.PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE) .build(), PropertyDefinition.builder(CoreProperties.PREVIEW_EXCLUDE_PLUGINS) .name("Plugins excluded for Preview mode") - .description("List of plugin keys. Those plugins will not be used during preview analyses.") + .description("DEPRECATED - List of plugin keys. Those plugins will not be used during preview analyses.") .category(CoreProperties.CATEGORY_GENERAL) .multiValues(true) .defaultValue(CoreProperties.PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE) diff --git a/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java b/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java index 6c91f2f6614..4f234e0e3aa 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java +++ b/sonar-core/src/main/java/org/sonar/core/config/ScannerProperties.java @@ -21,7 +21,6 @@ package org.sonar.core.config; import java.util.List; import org.sonar.api.CoreProperties; -import org.sonar.api.PropertyType; import org.sonar.api.config.PropertyDefinition; import org.sonar.api.resources.Qualifiers; @@ -42,14 +41,6 @@ public class ScannerProperties { public static List<PropertyDefinition> all() { return asList( - PropertyDefinition.builder(CoreProperties.ANALYSIS_MODE) - .name("Analysis mode") - .type(PropertyType.SINGLE_SELECT_LIST) - .options(asList(CoreProperties.ANALYSIS_MODE_ANALYSIS, CoreProperties.ANALYSIS_MODE_PREVIEW, CoreProperties.ANALYSIS_MODE_INCREMENTAL)) - .category(CoreProperties.CATEGORY_GENERAL) - .defaultValue(CoreProperties.ANALYSIS_MODE_ANALYSIS) - .hidden() - .build(), PropertyDefinition.builder(CoreProperties.SCM_DISABLED_KEY) .name("Disable the SCM Sensor") .description("Disable the retrieval of blame information from Source Control Manager") diff --git a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java index 4144587b4be..aa7bcd07d0d 100644 --- a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java @@ -33,7 +33,7 @@ public class CorePropertyDefinitionsTest { @Test public void all() { List<PropertyDefinition> defs = CorePropertyDefinitions.all(); - assertThat(defs).hasSize(67); + assertThat(defs).hasSize(66); } @Test |