You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CoreProperties.java 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2020 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.api;
  21. import org.sonar.api.batch.fs.FileSystem;
  22. import org.sonar.api.platform.Server;
  23. /**
  24. * Non-exhaustive list of constants of core properties.
  25. *
  26. * @since 1.11
  27. */
  28. public interface CoreProperties {
  29. /**
  30. * @since 3.0
  31. */
  32. String ENCRYPTION_SECRET_KEY_PATH = "sonar.secretKeyPath";
  33. /**
  34. * @since 2.11
  35. */
  36. String CATEGORY_GENERAL = "general";
  37. /**
  38. * @since 4.0
  39. * @deprecated since 8.1. Database cleaning now has a dedicated category {@link CoreProperties#CATEGORY_HOUSEKEEPING}.
  40. */
  41. @Deprecated
  42. String SUBCATEGORY_DATABASE_CLEANER = "databaseCleaner";
  43. /**
  44. * @since 7.6
  45. */
  46. String SUBCATEGORY_MODULES = "subProjects";
  47. /**
  48. * @since 4.0
  49. */
  50. String SUBCATEGORY_DUPLICATIONS = "duplications";
  51. /**
  52. * @since 8.2
  53. */
  54. String CATEGORY_ALM_INTEGRATION = "almintegration";
  55. /**
  56. * @since 8.1
  57. */
  58. String CATEGORY_HOUSEKEEPING = "housekeeping";
  59. /**
  60. * @since 6.6
  61. */
  62. String SUBCATEGORY_BRANCHES_AND_PULL_REQUESTS = "branchesAndPullRequests";
  63. /**
  64. * @since 8.1
  65. */
  66. String SUBCATEGORY_GENERAL = "general";
  67. /**
  68. * @since 4.0
  69. */
  70. String SUBCATEGORY_DIFFERENTIAL_VIEWS = "differentialViews";
  71. /**
  72. * @since 5.1
  73. */
  74. String SUBCATEGORY_LOOKNFEEL = "looknfeel";
  75. /**
  76. * @since 5.1
  77. */
  78. String SUBCATEGORY_ISSUES = "issues";
  79. /**
  80. * @since 4.0
  81. */
  82. String SUBCATEGORY_L10N = "localization";
  83. /**
  84. * @since 7.2
  85. */
  86. String CATEGORY_EXTERNAL_ISSUES = "externalIssues";
  87. /**
  88. * @since 2.11
  89. */
  90. String CATEGORY_CODE_COVERAGE = "codeCoverage";
  91. /**
  92. * @since 2.11
  93. */
  94. String CATEGORY_SECURITY = "security";
  95. /**
  96. * @since 3.3
  97. */
  98. String CATEGORY_EXCLUSIONS = "exclusions";
  99. /**
  100. * @since 4.0
  101. */
  102. String SUBCATEGORY_FILES_EXCLUSIONS = "files";
  103. /**
  104. * @since 4.0
  105. */
  106. String SUBCATEGORY_DUPLICATIONS_EXCLUSIONS = "duplications";
  107. /**
  108. * @since 4.0
  109. */
  110. String SUBCATEGORY_COVERAGE_EXCLUSIONS = "coverage";
  111. /**
  112. * @since 6.1
  113. */
  114. String SUBCATEGORY_EMAIL = "email";
  115. /**
  116. * @since 3.7
  117. */
  118. String CATEGORY_LICENSES = "licenses";
  119. /**
  120. * @since 4.0
  121. */
  122. String CATEGORY_TECHNICAL_DEBT = "technicalDebt";
  123. /* Global settings */
  124. String SONAR_HOME = "SONAR_HOME";
  125. String PROJECT_VERSION_PROPERTY = "sonar.projectVersion";
  126. String BUILD_STRING_PROPERTY = "sonar.buildString";
  127. /**
  128. * @since 2.6
  129. */
  130. String PROJECT_KEY_PROPERTY = "sonar.projectKey";
  131. /**
  132. * @since 2.6
  133. */
  134. String PROJECT_NAME_PROPERTY = "sonar.projectName";
  135. /**
  136. * @since 2.6
  137. */
  138. String PROJECT_DESCRIPTION_PROPERTY = "sonar.projectDescription";
  139. /**
  140. * To determine value of this property use {@link FileSystem#encoding()}.
  141. *
  142. * @since 2.6
  143. */
  144. String ENCODING_PROPERTY = "sonar.sourceEncoding";
  145. /**
  146. * Value format is yyyy-MM-dd
  147. */
  148. String PROJECT_DATE_PROPERTY = "sonar.projectDate";
  149. /* Exclusions */
  150. String PROJECT_INCLUSIONS_PROPERTY = "sonar.inclusions";
  151. String PROJECT_EXCLUSIONS_PROPERTY = "sonar.exclusions";
  152. /* Coverage exclusions */
  153. String PROJECT_COVERAGE_EXCLUSIONS_PROPERTY = "sonar.coverage.exclusions";
  154. /**
  155. * @since 3.3
  156. */
  157. String PROJECT_TEST_INCLUSIONS_PROPERTY = "sonar.test.inclusions";
  158. String PROJECT_TEST_EXCLUSIONS_PROPERTY = "sonar.test.exclusions";
  159. String GLOBAL_EXCLUSIONS_PROPERTY = "sonar.global.exclusions";
  160. String GLOBAL_TEST_EXCLUSIONS_PROPERTY = "sonar.global.test.exclusions";
  161. /* Sonar Core */
  162. String CORE_FORCE_AUTHENTICATION_PROPERTY = "sonar.forceAuthentication";
  163. boolean CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE = false;
  164. /**
  165. * @deprecated since 2.14. See http://jira.sonarsource.com/browse/SONAR-3153. Replaced by {@link #CORE_AUTHENTICATOR_REALM}.
  166. */
  167. @Deprecated
  168. String CORE_AUTHENTICATOR_CLASS = "sonar.authenticator.class";
  169. /**
  170. * @since 2.14
  171. * @deprecated since 7.1, this setting should not be used by plugin
  172. */
  173. @Deprecated
  174. String CORE_AUTHENTICATOR_REALM = "sonar.security.realm";
  175. /**
  176. * @deprecated since 7.1, this setting should not be used by plugin
  177. */
  178. @Deprecated
  179. String CORE_AUTHENTICATOR_IGNORE_STARTUP_FAILURE = "sonar.authenticator.ignoreStartupFailure";
  180. /**
  181. * @deprecated since 6.3. This feature is not supported anymore
  182. * @see <a href="https://jira.sonarsource.com/browse/SONAR-8208">SONAR-8208/a>
  183. */
  184. @Deprecated
  185. String CORE_AUTHENTICATOR_CREATE_USERS = "sonar.authenticator.createUsers";
  186. /**
  187. * @since 3.6
  188. * @deprecated since 5.4. This feature is not supported anymore. See http://jira.sonarsource.com/browse/SONAR-7219
  189. */
  190. @Deprecated
  191. String CORE_AUTHENTICATOR_UPDATE_USER_ATTRIBUTES = "sonar.security.updateUserAttributes";
  192. String SERVER_ID = "sonar.core.id";
  193. // format is yyyy-MM-dd'T'HH:mm:ssZ
  194. String SERVER_STARTTIME = "sonar.core.startTime";
  195. /**
  196. * This property defines the SonarQubeServer base url, such as <i>http://yourhost.yourdomain/sonar</i>.
  197. * When this property is not set, the base url of the SonarQube server is provided by {@link Server#getURL()}.
  198. *
  199. * @since 2.10
  200. */
  201. String SERVER_BASE_URL = "sonar.core.serverBaseURL";
  202. /**
  203. * @since 2.11
  204. * @deprecated since 6.7
  205. */
  206. @Deprecated
  207. String CPD_CROSS_PROJECT = "sonar.cpd.cross_project";
  208. /**
  209. * @since 3.5
  210. */
  211. String CPD_EXCLUSIONS = "sonar.cpd.exclusions";
  212. /**
  213. * @since 3.3
  214. */
  215. String LINKS_HOME_PAGE = "sonar.links.homepage";
  216. /**
  217. * @since 3.3
  218. */
  219. String LINKS_CI = "sonar.links.ci";
  220. /**
  221. * @since 3.3
  222. */
  223. String LINKS_ISSUE_TRACKER = "sonar.links.issue";
  224. /**
  225. * @since 3.3
  226. */
  227. String LINKS_SOURCES = "sonar.links.scm";
  228. /**
  229. * @since 3.3
  230. * @deprecated since 7.1, developer connection link is no more feed
  231. */
  232. @Deprecated
  233. String LINKS_SOURCES_DEV = "sonar.links.scm_dev";
  234. /**
  235. * @since 3.4
  236. */
  237. String LOGIN = "sonar.login";
  238. /**
  239. * @since 3.4
  240. */
  241. String PASSWORD = "sonar.password";
  242. /**
  243. * @since 3.5
  244. * @deprecated since 7.6
  245. */
  246. @Deprecated
  247. String TASK = "sonar.task";
  248. /**
  249. * @since 3.6
  250. * @deprecated since 7.6
  251. */
  252. @Deprecated
  253. String SCAN_TASK = "scan";
  254. /**
  255. * @since 4.0
  256. */
  257. String WORKING_DIRECTORY = "sonar.working.directory";
  258. String WORKING_DIRECTORY_DEFAULT_VALUE = ".sonar";
  259. /**
  260. * @since 5.2
  261. */
  262. String GLOBAL_WORKING_DIRECTORY = "sonar.globalWorking.directory";
  263. String GLOBAL_WORKING_DIRECTORY_DEFAULT_VALUE = "";
  264. /**
  265. * @since 4.5
  266. */
  267. String DEVELOPMENT_COST = "sonar.technicalDebt.developmentCost";
  268. /**
  269. * @since 4.5
  270. */
  271. String DEVELOPMENT_COST_DEF_VALUE = "30";
  272. /**
  273. * @since 4.5
  274. */
  275. String RATING_GRID = "sonar.technicalDebt.ratingGrid";
  276. /**
  277. * @since 4.5
  278. */
  279. String RATING_GRID_DEF_VALUES = "0.05,0.1,0.2,0.5";
  280. /**
  281. * @since 4.5
  282. */
  283. String LANGUAGE_SPECIFIC_PARAMETERS = "languageSpecificParameters";
  284. /**
  285. * @since 4.5
  286. */
  287. String LANGUAGE_SPECIFIC_PARAMETERS_LANGUAGE_KEY = "language";
  288. /**
  289. * @since 4.5
  290. */
  291. String LANGUAGE_SPECIFIC_PARAMETERS_MAN_DAYS_KEY = "man_days";
  292. /**
  293. * @since 4.5
  294. */
  295. String LANGUAGE_SPECIFIC_PARAMETERS_SIZE_METRIC_KEY = "size_metric";
  296. /**
  297. * @since 5.0
  298. */
  299. String CATEGORY_SCM = "scm";
  300. /**
  301. * @since 5.0
  302. */
  303. String SCM_DISABLED_KEY = "sonar.scm.disabled";
  304. /**
  305. * @since 7.6
  306. */
  307. String SCM_EXCLUSIONS_DISABLED_KEY = "sonar.scm.exclusions.disabled";
  308. /**
  309. * @since 5.0
  310. */
  311. String SCM_PROVIDER_KEY = "sonar.scm.provider";
  312. /**
  313. * @since 5.1
  314. */
  315. String DEFAULT_ISSUE_ASSIGNEE = "sonar.issues.defaultAssigneeLogin";
  316. /**
  317. * @since 7.6
  318. */
  319. String MODULE_LEVEL_ARCHIVED_SETTINGS = "sonar.subproject.settings.archived";
  320. }