aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-06-05 11:50:51 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-06-20 04:10:53 -0700
commita5e983797e23c5ff158483653415da05394d2bef (patch)
treea40601e6bf25792593a4a355cc22d80113124848 /sonar-core/src
parent77b6ed8b18023d7a9b52cc54afbc8a0d0032acb7 (diff)
downloadsonarqube-a5e983797e23c5ff158483653415da05394d2bef.tar.gz
sonarqube-a5e983797e23c5ff158483653415da05394d2bef.zip
SONAR-9356 define property "sonar.onboardingTutorial.skip"
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java8
-rw-r--r--sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java2
2 files changed, 9 insertions, 1 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 19c7a49bc12..ec0402616c7 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
@@ -120,6 +120,14 @@ public class CorePropertyDefinitions {
.multiValues(true)
.defaultValue(CoreProperties.PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE)
.build(),
+ PropertyDefinition.builder(CoreProperties.SKIP_ONBOARDING_TUTORIAL)
+ .name("Skip the onboarding tutorial")
+ .type(PropertyType.BOOLEAN)
+ .description("By default, each new user is lead through a tutorial, that explains how to analyze a first project, after logging in for the fist time. " +
+ "By enabling this setting, the tutorial will not be shown automatically, but only be visible in the help.")
+ .category(CoreProperties.CATEGORY_GENERAL)
+ .defaultValue(String.valueOf(false))
+ .build(),
PropertyDefinition.builder(CoreProperties.CORE_AUTHENTICATOR_REALM)
.name("Security Realm")
.hidden()
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 6706eda9399..0d1e7f05b9f 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(56);
+ assertThat(defs).hasSize(57);
}
@Test