]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11004 remove definitions for sonar.links.* properties
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 19 Jul 2018 08:17:25 +0000 (10:17 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 19 Jul 2018 18:21:26 +0000 (20:21 +0200)
they must not be displayed in the UI
properties are not used on server side
scanner does not rely on the definitions
=> drop the definitions

server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java

index 4cea397abf1eb805aed1515a234af96db1176a38..fc8243e48930ff882b34066d45c8fb6efe216359 100644 (file)
@@ -123,7 +123,7 @@ public class ComputeEngineContainerImplTest {
           + 30 // level 1
           + 55 // content of DaoModule
           + 3 // content of EsModule
-          + 58 // content of CorePropertyDefinitions
+          + 54 // content of CorePropertyDefinitions
           + 1 // StopFlagContainer
       );
       assertThat(
index 9d2d9e48c43df7d04408c2cba80fdb5b4d963b5a..bb991263ae6abdfc2e4a0aaddb5d9d090bb6de3a 100644 (file)
@@ -69,27 +69,6 @@ public class CorePropertyDefinitions {
         .category(CoreProperties.CATEGORY_GENERAL)
         .build(),
 
-      PropertyDefinition.builder(CoreProperties.LINKS_HOME_PAGE)
-        .name("Project Home Page")
-        .description("HTTP URL of the home page of the project.")
-        .hidden()
-        .build(),
-      PropertyDefinition.builder(CoreProperties.LINKS_CI)
-        .name("CI server")
-        .description("HTTP URL of the continuous integration server.")
-        .category(CoreProperties.CATEGORY_GENERAL)
-        .build(),
-      PropertyDefinition.builder(CoreProperties.LINKS_ISSUE_TRACKER)
-        .name("Issue Tracker")
-        .description("HTTP URL of the issue tracker.")
-        .category(CoreProperties.CATEGORY_GENERAL)
-        .hidden()
-        .build(),
-      PropertyDefinition.builder(CoreProperties.LINKS_SOURCES)
-        .name("SCM server")
-        .description("HTTP URL of the server which hosts the sources of the project.")
-        .category(CoreProperties.CATEGORY_GENERAL)
-        .build(),
       PropertyDefinition.builder(CoreProperties.PREVIEW_INCLUDE_PLUGINS)
         .name("Plugins accepted for Preview mode")
         .description("DEPRECATED - List of plugin keys. Those plugins will be used during preview analyses.")
index 75724cd1569ed435cd3864f93206bb352f2760d1..a4dc6a88a16c064590f3f66f1e830cfd12e499f1 100644 (file)
@@ -30,7 +30,7 @@ public class CorePropertyDefinitionsTest {
   @Test
   public void all() {
     List<PropertyDefinition> defs = CorePropertyDefinitions.all();
-    assertThat(defs).hasSize(58);
+    assertThat(defs).hasSize(54);
   }
 
   @Test