import org.sonar.api.database.DatabaseProperties;
import org.sonar.api.utils.DateUtils;
import org.sonar.api.utils.System2;
-import org.sonar.ce.cluster.HazelcastClientWrapperImpl;
-import org.sonar.ce.cluster.HazelcastTestHelper;
import org.sonar.ce.CeDistributedInformationImpl;
import org.sonar.ce.StandaloneCeDistributedInformation;
+import org.sonar.ce.cluster.HazelcastClientWrapperImpl;
+import org.sonar.ce.cluster.HazelcastTestHelper;
import org.sonar.db.DbTester;
import org.sonar.db.property.PropertyDto;
import org.sonar.process.NetworkUtils;
assertThat(
picoContainer.getComponentAdapters().stream()
.map(ComponentAdapter::getComponentImplementation)
- .collect(Collectors.toList())
- ).contains((Class) HazelcastClientWrapperImpl.class,
- (Class) CeDistributedInformationImpl.class
- );
+ .collect(Collectors.toList())).contains((Class) HazelcastClientWrapperImpl.class,
+ (Class) CeDistributedInformationImpl.class);
underTest.stop();
}
+ 23 // level 1
+ 46 // content of DaoModule
+ 3 // content of EsSearchModule
- + 57 // content of CorePropertyDefinitions
+ + 56 // content of CorePropertyDefinitions
);
assertThat(
picoContainer.getComponentAdapters().stream()
.map(ComponentAdapter::getComponentImplementation)
- .collect(Collectors.toList())
- ).doesNotContain((Class) HazelcastClientWrapperImpl.class,
- (Class) CeDistributedInformationImpl.class
- ).contains(
- (Class) StandaloneCeDistributedInformation.class
- );
+ .collect(Collectors.toList())).doesNotContain((Class) HazelcastClientWrapperImpl.class,
+ (Class) CeDistributedInformationImpl.class).contains(
+ (Class) StandaloneCeDistributedInformation.class);
assertThat(picoContainer.getParent().getParent().getParent().getParent()).isNull();
underTest.stop();
// CPD
PropertyDefinition.builder(CoreProperties.CPD_CROSS_PROJECT)
- .defaultValue(Boolean.toString(CoreProperties.CPD_CROSS_PROJECT_DEFAULT_VALUE))
+ .defaultValue(Boolean.toString(false))
.name("Cross project duplication detection")
- .description("By default, SonarQube detects duplications at sub-project level. This means that a block "
- + "duplicated on two sub-projects of the same project won't be reported. Setting this parameter to \"true\" "
- + "allows to detect duplicates across sub-projects and more generally across projects. Note that activating "
+ .description("By default, SonarQube detects duplications at project level. This means that a block "
+ + "duplicated on two different projects won't be reported. Setting this parameter to \"true\" "
+ + "allows to detect duplicates across projects. Note that activating "
+ "this property will slightly increase each SonarQube analysis time.")
.onQualifiers(Qualifiers.PROJECT)
.category(CoreProperties.CATEGORY_GENERAL)
.build(),
// FILES
- PropertyDefinition.builder(CoreProperties.IMPORT_UNKNOWN_FILES_KEY)
- .name("Import unknown files")
- .description("If set to true, all files are imported - with respect to inclusions and exclusions, even if there is no matching language plugin installed.")
- .type(PropertyType.BOOLEAN)
- .defaultValue("false")
- .category(CoreProperties.CATEGORY_EXCLUSIONS)
- .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS)
- .onQualifiers(Qualifiers.PROJECT)
- .index(-1)
- .build(),
-
PropertyDefinition.builder(CoreProperties.GLOBAL_EXCLUSIONS_PROPERTY)
.name("Global Source File Exclusions")
.multiValues(true)
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
- assertThat(defs).hasSize(57);
+ assertThat(defs).hasSize(56);
}
@Test
*/
@Deprecated
String CORE_DEFAULT_GROUP_DEFAULT_VALUE = "sonar-users";
-
+
boolean CORE_ALLOW_USERS_TO_SIGNUP_DEAULT_VALUE = false;
/**
@Deprecated
String SERVER_BASE_URL_DEFAULT_VALUE = "http://localhost:9000";
- /* CPD */
- String CPD_PLUGIN = "cpd";
-
/**
* @since 2.11
*/
String CPD_CROSS_PROJECT = "sonar.cpd.cross_project";
- /**
- * @see #CPD_CROSS_PROJECT
- * @since 2.11
- */
- boolean CPD_CROSS_PROJECT_DEFAULT_VALUE = false;
-
/**
* @since 3.5
*/
String CPD_EXCLUSIONS = "sonar.cpd.exclusions";
- /* Design */
-
- /**
- * Indicates whether Java bytecode analysis should be skipped.
- *
- * @since 2.0
- */
- String DESIGN_SKIP_DESIGN_PROPERTY = "sonar.skipDesign";
- boolean DESIGN_SKIP_DESIGN_DEFAULT_VALUE = false;
-
- /**
- * Indicates whether Package Design Analysis should be skipped.
- *
- * @since 2.9
- */
- String DESIGN_SKIP_PACKAGE_DESIGN_PROPERTY = "sonar.skipPackageDesign";
- boolean DESIGN_SKIP_PACKAGE_DESIGN_DEFAULT_VALUE = false;
-
- /* Google Analytics */
- String GOOGLE_ANALYTICS_PLUGIN = "google-analytics";
- String GOOGLE_ANALYTICS_ACCOUNT_PROPERTY = "sonar.google-analytics.account";
-
/**
* @since 2.11
*/