org.sonar.api.CoreProperties Maven / Gradle / Ivy
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* SonarQube is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.api;
/**
* Non-exhaustive list of constants of core properties.
*
* @since 1.11
*/
public interface CoreProperties {
/**
* @since 3.0
*/
String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath";
/**
* @since 2.11
*/
String CATEGORY_GENERAL = "general";
/**
* @since 4.0
*/
String SUBCATEGORY_DATABASE_CLEANER = "databaseCleaner";
/**
* @since 4.0
*/
String SUBCATEGORY_DUPLICATIONS = "duplications";
/**
* @since 4.0
*/
String SUBCATEGORY_DIFFERENTIAL_VIEWS = "differentialViews";
/**
* @since 4.0
*/
String SUBCATEGORY_L10N = "localization";
/**
* @since 2.11
*/
String CATEGORY_CODE_COVERAGE = "codeCoverage";
/**
* @see #SUBCATEGORY_DUPLICATIONS
* @since 2.11
* @deprecated since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles
*/
@Deprecated
String CATEGORY_DUPLICATIONS = "duplications";
/**
* @since 2.11
*/
String CATEGORY_SECURITY = "security";
/**
* @see #SUBCATEGORY_L10N
* @since 2.11
* @deprecated since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles
*/
@Deprecated
String CATEGORY_L10N = "localization";
/**
* @since 2.11
*/
String CATEGORY_JAVA = "java";
/**
* @see #SUBCATEGORY_DIFFERENTIAL_VIEWS
* @since 2.11
* @deprecated since 4.0. See http://jira.codehaus.org/browse/SONAR-4660. Do not forget to remove the properties from core bundles
*/
@Deprecated
String CATEGORY_DIFFERENTIAL_VIEWS = "differentialViews";
/**
* @since 3.3
*/
String CATEGORY_EXCLUSIONS = "exclusions";
/**
* @since 4.0
*/
String SUBCATEGORY_FILES_EXCLUSIONS = "files";
/**
* @since 4.0
*/
String SUBCATEGORY_DUPLICATIONS_EXCLUSIONS = "duplications";
/**
* @since 4.0
*/
String SUBCATEGORY_COVERAGE_EXCLUSIONS = "coverage";
/**
* @since 3.7
*/
String CATEGORY_LICENSES = "licenses";
/**
* @since 4.0
*/
String CATEGORY_TECHNICAL_DEBT = "technicalDebt";
/* Global settings */
String SONAR_HOME = "SONAR_HOME";
String PROJECT_BRANCH_PROPERTY = "sonar.branch";
String PROJECT_VERSION_PROPERTY = "sonar.projectVersion";
/**
* @since 2.6
*/
String PROJECT_KEY_PROPERTY = "sonar.projectKey";
/**
* @since 2.6
*/
String PROJECT_NAME_PROPERTY = "sonar.projectName";
/**
* @since 2.6
*/
String PROJECT_DESCRIPTION_PROPERTY = "sonar.projectDescription";
/**
* To determine value of this property use {@link org.sonar.api.resources.ProjectFileSystem#getSourceCharset()}.
*
* @since 2.6
*/
String ENCODING_PROPERTY = "sonar.sourceEncoding";
/**
* Value format is yyyy-MM-dd
*/
String PROJECT_DATE_PROPERTY = "sonar.projectDate";
/**
* @deprecated since 4.2 projects are now multi-language
*/
@Deprecated
String PROJECT_LANGUAGE_PROPERTY = "sonar.language";
/**
* @deprecated since 4.3. See http://jira.codehaus.org/browse/SONAR-5185
*/
@Deprecated
String DYNAMIC_ANALYSIS_PROPERTY = "sonar.dynamicAnalysis";
/* Exclusions */
String PROJECT_INCLUSIONS_PROPERTY = "sonar.inclusions";
String PROJECT_EXCLUSIONS_PROPERTY = "sonar.exclusions";
/* Coverage exclusions */
String PROJECT_COVERAGE_EXCLUSIONS_PROPERTY = "sonar.coverage.exclusions";
/**
* @since 3.3
*/
String PROJECT_TEST_INCLUSIONS_PROPERTY = "sonar.test.inclusions";
String PROJECT_TEST_EXCLUSIONS_PROPERTY = "sonar.test.exclusions";
String GLOBAL_EXCLUSIONS_PROPERTY = "sonar.global.exclusions";
String GLOBAL_TEST_EXCLUSIONS_PROPERTY = "sonar.global.test.exclusions";
/* Sonar Core */
/**
* @deprecated since 4.1. See http://jira.codehaus.org/browse/SONAR-4875
*/
@Deprecated
String CORE_VIOLATION_LOCALE_PROPERTY = "sonar.violationLocale";
String CORE_VIOLATION_LOCALE_DEFAULT_VALUE = "en";
/**
* @deprecated since 4.3. See http://jira.codehaus.org/browse/SONAR-5109
*/
@Deprecated
String CORE_SKIPPED_MODULES_PROPERTY = "sonar.skippedModules";
/**
* @since 4.0
* @deprecated since 4.3. See http://jira.codehaus.org/browse/SONAR-5109
*/
@Deprecated
String CORE_INCLUDED_MODULES_PROPERTY = "sonar.includedModules";
String CORE_FORCE_AUTHENTICATION_PROPERTY = "sonar.forceAuthentication";
boolean CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE = false;
String CORE_ALLOW_USERS_TO_SIGNUP_PROPERTY = "sonar.allowUsersToSignUp";
String CORE_DEFAULT_GROUP = "sonar.defaultGroup";
String CORE_DEFAULT_GROUP_DEFAULT_VALUE = "sonar-users";
boolean CORE_ALLOW_USERS_TO_SIGNUP_DEAULT_VALUE = false;
/**
* @deprecated since 2.14. See http://jira.codehaus.org/browse/SONAR-3153. Replaced by {@link #CORE_AUTHENTICATOR_REALM}.
*/
@Deprecated
String CORE_AUTHENTICATOR_CLASS = "sonar.authenticator.class";
/**
* @since 2.14
*/
String CORE_AUTHENTICATOR_REALM = "sonar.security.realm";
String CORE_AUTHENTICATOR_IGNORE_STARTUP_FAILURE = "sonar.authenticator.ignoreStartupFailure";
String CORE_AUTHENTICATOR_CREATE_USERS = "sonar.authenticator.createUsers";
/**
* @since 3.6
*/
String CORE_AUTHENTICATOR_UPDATE_USER_ATTRIBUTES = "sonar.security.updateUserAttributes";
String SERVER_VERSION = "sonar.core.version";
String SERVER_ID = "sonar.core.id";
// format is yyyy-MM-dd'T'HH:mm:ssZ
String SERVER_STARTTIME = "sonar.core.startTime";
/**
* @since 2.10
*/
String SERVER_BASE_URL = "sonar.core.serverBaseURL";
/**
* @see #SERVER_BASE_URL
* @since 2.10
*/
String SERVER_BASE_URL_DEFAULT_VALUE = "http://localhost:9000";
/* CPD */
String CPD_PLUGIN = "cpd";
/**
* @deprecated in 3.1
*/
@Deprecated
String CPD_MINIMUM_TOKENS_PROPERTY = "sonar.cpd.minimumTokens";
/**
* @deprecated in 5.0
* @see SONAR-5339
*/
@Deprecated
String CPD_SKIP_PROPERTY = "sonar.cpd.skip";
/**
* @since 2.11
*/
String CPD_CROSS_PROJECT = "sonar.cpd.cross_project";
/**
* @see #CPD_CROSS_PROJECT
* @since 2.11
*/
boolean CPD_CROSS_RPOJECT_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";
/* Time machine periods */
String TIMEMACHINE_PERIOD_PREFIX = "sonar.timemachine.period";
String TIMEMACHINE_MODE_PREVIOUS_ANALYSIS = "previous_analysis";
String TIMEMACHINE_MODE_DATE = "date";
String TIMEMACHINE_MODE_VERSION = "version";
String TIMEMACHINE_MODE_DAYS = "days";
String TIMEMACHINE_MODE_PREVIOUS_VERSION = "previous_version";
String TIMEMACHINE_DEFAULT_PERIOD_1 = TIMEMACHINE_MODE_PREVIOUS_ANALYSIS;
String TIMEMACHINE_DEFAULT_PERIOD_2 = "30";
String TIMEMACHINE_DEFAULT_PERIOD_3 = TIMEMACHINE_MODE_PREVIOUS_VERSION;
String TIMEMACHINE_DEFAULT_PERIOD_4 = "";
String TIMEMACHINE_DEFAULT_PERIOD_5 = "";
/**
* @since 2.11
*/
String ORGANISATION = "sonar.organisation";
/**
* @since 2.11
*/
String PERMANENT_SERVER_ID = "sonar.server_id";
/**
* @since 2.11
*/
String SERVER_ID_IP_ADDRESS = "sonar.server_id.ip_address";
/**
* @since 3.3
*/
String LINKS_HOME_PAGE = "sonar.links.homepage";
/**
* @since 3.3
*/
String LINKS_CI = "sonar.links.ci";
/**
* @since 3.3
*/
String LINKS_ISSUE_TRACKER = "sonar.links.issue";
/**
* @since 3.3
*/
String LINKS_SOURCES = "sonar.links.scm";
/**
* @since 3.3
*/
String LINKS_SOURCES_DEV = "sonar.links.scm_dev";
/**
* @since 3.4
*/
String LOGIN = "sonar.login";
/**
* @since 3.4
*/
String PASSWORD = "sonar.password";
/**
* @since 3.4
*/
String DRY_RUN = "sonar.dryRun";
/**
* @since 3.5
*/
String TASK = "sonar.task";
/**
* @since 3.6
*/
String SCAN_TASK = "scan";
/**
* @since 3.6
*/
String PROFILING_LOG_PROPERTY = "sonar.showProfiling";
/**
* @deprecated replaced in v3.4 by properties specific to languages, for example sonar.java.coveragePlugin
* See http://jira.codehaus.org/browse/SONARJAVA-39 for more details.
*/
@Deprecated
String CORE_COVERAGE_PLUGIN_PROPERTY = "sonar.core.codeCoveragePlugin";
/**
* @since 3.7
* @deprecated in 4.0 replaced by {@link CoreProperties#PREVIEW_READ_TIMEOUT_SEC}
*/
@Deprecated
String DRY_RUN_READ_TIMEOUT_SEC = "sonar.dryRun.readTimeout";
/**
* @since 4.0
*/
String PREVIEW_READ_TIMEOUT_SEC = "sonar.preview.readTimeout";
/**
* @since 4.0
*/
String CORE_PREVENT_AUTOMATIC_PROJECT_CREATION = "sonar.preventAutoProjectCreation";
/**
* @since 4.0
*/
String ANALYSIS_MODE = "sonar.analysis.mode";
/**
* @since 4.0
*/
String ANALYSIS_MODE_ANALYSIS = "analysis";
/**
* @since 4.0
*/
String ANALYSIS_MODE_PREVIEW = "preview";
/**
* @since 4.0
*/
String ANALYSIS_MODE_INCREMENTAL = "incremental";
/**
* @since 4.4
*/
String ANALYSIS_MODE_SENSOR = "sensor";
/**
* @since 4.0
*/
String PREVIEW_INCLUDE_PLUGINS = "sonar.preview.includePlugins";
String PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE = "";
/**
* @since 4.0
*/
String PREVIEW_EXCLUDE_PLUGINS = "sonar.preview.excludePlugins";
String PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE = "buildstability,devcockpit,pdfreport,report,views,jira,buildbreaker";
/**
* @since 4.0
*/
String WORKING_DIRECTORY = "sonar.working.directory";
String WORKING_DIRECTORY_DEFAULT_VALUE = ".sonar";
String BATCH_INCLUDE_PLUGINS = "sonar.includePlugins";
String BATCH_EXCLUDE_PLUGINS = "sonar.excludePlugins";
/**
* @since 3.4
* @deprecated in 4.0 replaced by {@link CoreProperties#PREVIEW_INCLUDE_PLUGINS}
*/
@Deprecated
String DRY_RUN_INCLUDE_PLUGINS = "sonar.dryRun.includePlugins";
/**
* @since 3.4
* @deprecated in 4.0 replaced by {@link CoreProperties#PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE}
*/
@Deprecated
String DRY_RUN_INCLUDE_PLUGINS_DEFAULT_VALUE = PREVIEW_INCLUDE_PLUGINS_DEFAULT_VALUE;
/**
* @since 3.4
* @deprecated in 4.0 replaced by {@link CoreProperties#PREVIEW_EXCLUDE_PLUGINS}
*/
@Deprecated
String DRY_RUN_EXCLUDE_PLUGINS = "sonar.dryRun.excludePlugins";
/**
* @since 3.4
* @deprecated in 4.0 replaced by {@link CoreProperties#PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE}
*/
@Deprecated
String DRY_RUN_EXCLUDE_PLUGINS_DEFAULT_VALUE = PREVIEW_EXCLUDE_PLUGINS_DEFAULT_VALUE;
/**
* @since 4.2
*/
String CORE_AUTHENTICATOR_LOCAL_USERS = "sonar.security.localUsers";
/**
* @since 4.0
*/
String HOURS_IN_DAY = "sonar.technicalDebt.hoursInDay";
/**
* @since 4.5
*/
String SIZE_METRIC = "sonar.technicalDebt.sizeMetric";
/**
* @since 4.5
*/
String DEVELOPMENT_COST = "sonar.technicalDebt.developmentCost";
/**
* @since 4.5
*/
String DEVELOPMENT_COST_DEF_VALUE = "30";
/**
* @since 4.5
*/
String RATING_GRID = "sonar.technicalDebt.ratingGrid";
/**
* @since 4.5
*/
String RATING_GRID_DEF_VALUES = "0.1,0.2,0.5,1";
/**
* @since 4.5
*/
String LANGUAGE_SPECIFIC_PARAMETERS = "languageSpecificParameters";
/**
* @since 4.5
*/
String LANGUAGE_SPECIFIC_PARAMETERS_LANGUAGE_KEY = "language";
/**
* @since 4.5
*/
String LANGUAGE_SPECIFIC_PARAMETERS_MAN_DAYS_KEY = "man_days";
/**
* @since 4.5
*/
String LANGUAGE_SPECIFIC_PARAMETERS_SIZE_METRIC_KEY = "size_metric";
/**
* @since 5.0
*/
String CATEGORY_SCM = "scm";
/**
* @since 5.0
*/
String SCM_DISABLED_KEY = "sonar.scm.disabled";
/**
* @since 5.0
*/
String SCM_PROVIDER_KEY = "sonar.scm.provider";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy