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.

definitions-list.ts 83KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2023 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. import { ExtendedSettingDefinition, SettingType } from '../../types/settings';
  21. export const definitions: ExtendedSettingDefinition[] = [
  22. {
  23. key: 'sonar.abap.file.suffixes',
  24. name: 'File suffixes',
  25. description: 'List of suffixes for files to analyze. To not filter, leave the list empty.',
  26. category: 'ABAP',
  27. subCategory: 'General',
  28. defaultValue: '.abap,.ab4,.flow,.asprog',
  29. multiValues: true,
  30. options: [],
  31. fields: [],
  32. },
  33. {
  34. key: 'sonar.apex.file.suffixes',
  35. name: 'File Suffixes',
  36. description: 'List of suffixes for files to analyze.',
  37. category: 'Apex',
  38. subCategory: 'General',
  39. defaultValue: '.cls,.trigger',
  40. multiValues: true,
  41. options: [],
  42. fields: [],
  43. },
  44. {
  45. key: 'sonar.apex.coverage.reportPath',
  46. name: 'Path to coverage report',
  47. description:
  48. 'Path to coverage report file (test-result-codecoverage.json) generated by Salesforce CLI test command for Apex. The path may be absolute or relative to the project base directory.',
  49. category: 'Apex',
  50. subCategory: 'Test and Coverage',
  51. options: [],
  52. fields: [],
  53. },
  54. {
  55. key: 'sonar.auth.gitlab.enabled',
  56. name: 'Enabled',
  57. description:
  58. 'Enable Gitlab users to login. Value is ignored if URL, Application ID, and Secret are not set.',
  59. type: SettingType.BOOLEAN,
  60. category: 'authentication',
  61. subCategory: 'gitlab',
  62. defaultValue: 'false',
  63. options: [],
  64. fields: [],
  65. },
  66. {
  67. key: 'sonar.auth.saml.enabled',
  68. name: 'Enabled',
  69. description:
  70. 'Enable SAML users to login. Value is ignored if provider ID, login url, certificate, login, name attributes are not defined.',
  71. type: SettingType.BOOLEAN,
  72. category: 'authentication',
  73. subCategory: 'saml',
  74. defaultValue: 'false',
  75. options: [],
  76. fields: [],
  77. },
  78. {
  79. key: 'sonar.auth.github.enabled',
  80. name: 'Enabled',
  81. description:
  82. 'Enable GitHub users to login. Value is ignored if client ID and secret are not defined.',
  83. type: SettingType.BOOLEAN,
  84. category: 'authentication',
  85. subCategory: 'github',
  86. defaultValue: 'false',
  87. options: [],
  88. fields: [],
  89. },
  90. {
  91. key: 'sonar.auth.bitbucket.enabled',
  92. name: 'Enabled',
  93. description:
  94. 'Enable Bitbucket users to login. Value is ignored if consumer key and secret are not defined.',
  95. type: SettingType.BOOLEAN,
  96. category: 'authentication',
  97. subCategory: 'bitbucket',
  98. defaultValue: 'false',
  99. options: [],
  100. fields: [],
  101. },
  102. {
  103. key: 'sonar.auth.saml.applicationId',
  104. name: 'Application ID',
  105. description: 'The identifier used on the Identity Provider for registering SonarQube.',
  106. category: 'authentication',
  107. subCategory: 'saml',
  108. defaultValue: 'sonarqube',
  109. options: [],
  110. fields: [],
  111. },
  112. {
  113. key: 'sonar.auth.github.clientId.secured',
  114. name: 'Client ID',
  115. description: 'Client ID provided by GitHub when registering the application.',
  116. category: 'authentication',
  117. subCategory: 'github',
  118. options: [],
  119. fields: [],
  120. },
  121. {
  122. key: 'sonar.auth.gitlab.url',
  123. name: 'GitLab URL',
  124. description: 'URL to access GitLab.',
  125. category: 'authentication',
  126. subCategory: 'gitlab',
  127. defaultValue: 'https://gitlab.com',
  128. options: [],
  129. fields: [],
  130. },
  131. {
  132. key: 'sonar.auth.bitbucket.clientId.secured',
  133. name: 'OAuth consumer key',
  134. description: 'Consumer key provided by Bitbucket when registering the consumer.',
  135. category: 'authentication',
  136. subCategory: 'bitbucket',
  137. options: [],
  138. fields: [],
  139. },
  140. {
  141. key: 'sonar.auth.gitlab.applicationId.secured',
  142. name: 'Application ID',
  143. description: 'Application ID provided by GitLab when registering the application.',
  144. category: 'authentication',
  145. subCategory: 'gitlab',
  146. options: [],
  147. fields: [],
  148. },
  149. {
  150. key: 'sonar.auth.github.clientSecret.secured',
  151. name: 'Client Secret',
  152. description: 'Client password provided by GitHub when registering the application.',
  153. type: SettingType.PASSWORD,
  154. category: 'authentication',
  155. subCategory: 'github',
  156. options: [],
  157. fields: [],
  158. },
  159. {
  160. key: 'sonar.auth.bitbucket.clientSecret.secured',
  161. name: 'OAuth consumer secret',
  162. description: 'Consumer secret provided by Bitbucket when registering the consumer.',
  163. category: 'authentication',
  164. subCategory: 'bitbucket',
  165. options: [],
  166. fields: [],
  167. },
  168. {
  169. key: 'sonar.auth.saml.providerName',
  170. name: 'Provider Name',
  171. description:
  172. 'Name of the Identity Provider displayed in the login page when SAML authentication is active.',
  173. category: 'authentication',
  174. subCategory: 'saml',
  175. defaultValue: 'SAML',
  176. options: [],
  177. fields: [],
  178. },
  179. {
  180. key: 'sonar.auth.bitbucket.allowUsersToSignUp',
  181. name: 'Allow users to sign up',
  182. description:
  183. "Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate.",
  184. type: SettingType.BOOLEAN,
  185. category: 'authentication',
  186. subCategory: 'bitbucket',
  187. defaultValue: 'true',
  188. options: [],
  189. fields: [],
  190. },
  191. {
  192. key: 'sonar.auth.github.allowUsersToSignUp',
  193. name: 'Allow users to sign up',
  194. description:
  195. "Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate to the server.",
  196. type: SettingType.BOOLEAN,
  197. category: 'authentication',
  198. subCategory: 'github',
  199. defaultValue: 'true',
  200. options: [],
  201. fields: [],
  202. },
  203. {
  204. key: 'sonar.auth.saml.providerId',
  205. name: 'Provider ID',
  206. description:
  207. 'Identifier of the Identity Provider, the entity that provides SAML authentication.',
  208. category: 'authentication',
  209. subCategory: 'saml',
  210. options: [],
  211. fields: [],
  212. },
  213. {
  214. key: 'sonar.auth.gitlab.secret.secured',
  215. name: 'Secret',
  216. description: 'Secret provided by GitLab when registering the application.',
  217. type: SettingType.PASSWORD,
  218. category: 'authentication',
  219. subCategory: 'gitlab',
  220. options: [],
  221. fields: [],
  222. },
  223. {
  224. key: 'sonar.auth.gitlab.allowUsersToSignUp',
  225. name: 'Allow users to sign up',
  226. description:
  227. "Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate to the server.",
  228. type: SettingType.BOOLEAN,
  229. category: 'authentication',
  230. subCategory: 'gitlab',
  231. defaultValue: 'true',
  232. options: [],
  233. fields: [],
  234. },
  235. {
  236. key: 'sonar.auth.saml.loginUrl',
  237. name: 'SAML login url',
  238. description: 'The URL where the Identity Provider expects to receive SAML requests.',
  239. category: 'authentication',
  240. subCategory: 'saml',
  241. options: [],
  242. fields: [],
  243. },
  244. {
  245. key: 'sonar.auth.bitbucket.workspaces',
  246. name: 'Workspaces',
  247. description:
  248. 'Only members of at least one of these workspace will be able to authenticate. Keep empty to disable workspace restriction. You can use either the workspace name, or the workspace slug (ex: https://bitbucket.org/{workspace-slug}).',
  249. category: 'authentication',
  250. subCategory: 'bitbucket',
  251. multiValues: true,
  252. options: [],
  253. fields: [],
  254. },
  255. {
  256. key: 'sonar.auth.saml.certificate.secured',
  257. name: 'Identity provider certificate',
  258. description:
  259. 'The public X.509 certificate used by the Identity Provider to authenticate SAML messages.',
  260. type: SettingType.PASSWORD,
  261. category: 'authentication',
  262. subCategory: 'saml',
  263. options: [],
  264. fields: [],
  265. },
  266. {
  267. key: 'sonar.auth.github.groupsSync',
  268. name: 'Synchronize teams as groups',
  269. description:
  270. "For each team they belong to, the user will be associated to a group named 'Organization/Team' (if it exists) in SonarQube.",
  271. type: SettingType.BOOLEAN,
  272. category: 'authentication',
  273. subCategory: 'github',
  274. defaultValue: 'false',
  275. options: [],
  276. fields: [],
  277. },
  278. {
  279. key: 'sonar.auth.gitlab.groupsSync',
  280. name: 'Synchronize user groups',
  281. description:
  282. 'For each GitLab group they belong to, the user will be associated to a group with the same name (if it exists) in SonarQube. If enabled, the GitLab Oauth2 application will need to provide the api scope.',
  283. type: SettingType.BOOLEAN,
  284. category: 'authentication',
  285. subCategory: 'gitlab',
  286. defaultValue: 'false',
  287. options: [],
  288. fields: [],
  289. deprecatedKey: 'sonar.auth.gitlab.sync_user_groups',
  290. },
  291. {
  292. key: 'sonar.auth.saml.user.login',
  293. name: 'SAML user login attribute',
  294. description:
  295. 'The name of the attribute where the SAML Identity Provider will put the login of the authenticated user.',
  296. category: 'authentication',
  297. subCategory: 'saml',
  298. options: [],
  299. fields: [],
  300. },
  301. {
  302. key: 'sonar.auth.github.apiUrl',
  303. name: 'The API url for a GitHub instance.',
  304. description:
  305. 'The API url for a GitHub instance. https://api.github.com/ for Github.com, https://github.company.com/api/v3/ when using Github Enterprise',
  306. category: 'authentication',
  307. subCategory: 'github',
  308. defaultValue: 'https://api.github.com/',
  309. options: [],
  310. fields: [],
  311. },
  312. {
  313. key: 'sonar.auth.saml.user.name',
  314. name: 'SAML user name attribute',
  315. description:
  316. 'The name of the attribute where the SAML Identity Provider will put the name of the authenticated user.',
  317. category: 'authentication',
  318. subCategory: 'saml',
  319. options: [],
  320. fields: [],
  321. },
  322. {
  323. key: 'sonar.auth.github.webUrl',
  324. name: 'The WEB url for a GitHub instance.',
  325. description:
  326. 'The WEB url for a GitHub instance. https://github.com/ for Github.com, https://github.company.com/ when using GitHub Enterprise.',
  327. category: 'authentication',
  328. subCategory: 'github',
  329. defaultValue: 'https://github.com/',
  330. options: [],
  331. fields: [],
  332. },
  333. {
  334. key: 'sonar.auth.github.organizations',
  335. name: 'Organizations',
  336. description:
  337. 'Only members of these organizations will be able to authenticate to the server. ⚠︎ if not set, users from any organization where the GitHub App is installed will be able to login to this SonarQube instance.',
  338. category: 'authentication',
  339. subCategory: 'github',
  340. multiValues: true,
  341. options: [],
  342. fields: [],
  343. },
  344. {
  345. key: 'sonar.auth.saml.user.email',
  346. name: 'SAML user email attribute',
  347. description:
  348. 'The name of the attribute where the SAML Identity Provider will put the email of the authenticated user.',
  349. category: 'authentication',
  350. subCategory: 'saml',
  351. options: [],
  352. fields: [],
  353. },
  354. {
  355. key: 'sonar.auth.saml.group.name',
  356. name: 'SAML group attribute',
  357. description:
  358. 'Attribute defining the user groups in SAML. Users are associated to the default group only if no attribute is defined.',
  359. category: 'authentication',
  360. subCategory: 'saml',
  361. options: [],
  362. fields: [],
  363. },
  364. {
  365. key: 'sonar.auth.saml.signature.enabled',
  366. name: 'Sign requests',
  367. description:
  368. 'Enables signature of SAML requests. It requires both service provider private key and certificate to be set.',
  369. type: SettingType.BOOLEAN,
  370. category: 'authentication',
  371. subCategory: 'saml',
  372. defaultValue: 'false',
  373. options: [],
  374. fields: [],
  375. },
  376. {
  377. key: 'sonar.auth.saml.sp.privateKey.secured',
  378. name: 'Service provider private key',
  379. description:
  380. 'PKCS8 stored private key used for signing the requests and decrypting responses from the identity provider. ',
  381. type: SettingType.PASSWORD,
  382. category: 'authentication',
  383. subCategory: 'saml',
  384. options: [],
  385. fields: [],
  386. },
  387. {
  388. key: 'sonar.auth.saml.sp.certificate.secured',
  389. name: 'Service provider certificate',
  390. description: 'X.509 certificate for the service provider, used for signing the requests.',
  391. type: SettingType.PASSWORD,
  392. category: 'authentication',
  393. subCategory: 'saml',
  394. options: [],
  395. fields: [],
  396. },
  397. {
  398. key: 'sonar.cfamily.bullseye.reportPath',
  399. name: 'Bullseye XML report',
  400. description:
  401. 'Path to the Bullseye XML Coverage Report. The path may be either absolute or relative to the project base directory.',
  402. category: 'C / C++ / Objective-C',
  403. subCategory: ' Coverage',
  404. options: [],
  405. fields: [],
  406. },
  407. {
  408. key: 'sonar.c.file.suffixes',
  409. name: 'C file suffixes',
  410. description: 'List of suffixes of C files to analyze.',
  411. category: 'C / C++ / Objective-C',
  412. subCategory: ' C and C++',
  413. defaultValue: '.c,.h',
  414. multiValues: true,
  415. options: [],
  416. fields: [],
  417. },
  418. {
  419. key: 'sonar.cpp.file.suffixes',
  420. name: 'C++ file suffixes',
  421. description: 'List of suffixes of C++ files to analyze.',
  422. category: 'C / C++ / Objective-C',
  423. subCategory: ' C and C++',
  424. defaultValue: '.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp',
  425. multiValues: true,
  426. options: [],
  427. fields: [],
  428. },
  429. {
  430. key: 'sonar.cfamily.cppunit.reportsPath',
  431. name: 'CppUnit reports',
  432. description:
  433. 'Path to the directory containing the *.xml CppUnit report files. The path may be either absolute or relative to the project base directory.',
  434. category: 'C / C++ / Objective-C',
  435. subCategory: ' Tests',
  436. options: [],
  437. fields: [],
  438. deprecatedKey: 'sonar.cpp.cppunit.reportsPath',
  439. },
  440. {
  441. key: 'sonar.cfamily.gcov.reportsPath',
  442. name: 'Gcov reports',
  443. description:
  444. 'Path to the directory containing the *.gcov Gcov report files. The path may be either absolute or relative to the project base directory.',
  445. category: 'C / C++ / Objective-C',
  446. subCategory: ' Coverage',
  447. options: [],
  448. fields: [],
  449. deprecatedKey: 'sonar.cpp.gcov.reportsPath',
  450. },
  451. {
  452. key: 'sonar.cfamily.ignoreHeaderComments',
  453. name: 'Ignore header comments',
  454. description:
  455. 'If set to "true", the file headers (that are usually the same on each file: licensing information for example) are not considered as comments. Thus metrics such as "Comment lines" do not get incremented. If set to "false", those file headers are considered as comments and metrics such as "Comment lines" get incremented.',
  456. type: SettingType.BOOLEAN,
  457. category: 'C / C++ / Objective-C',
  458. subCategory: ' Miscellaneous',
  459. defaultValue: 'true',
  460. options: [],
  461. fields: [],
  462. deprecatedKey: 'sonar.cpp.ignoreHeaderComments',
  463. },
  464. {
  465. key: 'sonar.cfamily.llvm-cov.reportPath',
  466. name: 'llvm-cov report',
  467. description:
  468. 'Path to the Coverage Report generated by "llvm-cov show". The path may be either absolute or relative to the project base directory.',
  469. category: 'C / C++ / Objective-C',
  470. subCategory: ' Coverage',
  471. options: [],
  472. fields: [],
  473. },
  474. {
  475. key: 'sonar.objc.file.suffixes',
  476. name: 'Objective-C file suffixes',
  477. description: 'List of suffixes of Objective-C files to analyze.',
  478. category: 'C / C++ / Objective-C',
  479. subCategory: ' Objective-C',
  480. defaultValue: '.m',
  481. multiValues: true,
  482. options: [],
  483. fields: [],
  484. },
  485. {
  486. key: 'sonar.cfamily.vscoveragexml.reportsPath',
  487. name: 'Visual Studio XML reports',
  488. description:
  489. 'Pattern for search for Visual Studio Coverage XML reports. The pattern may be either absolute or relative to the project base directory. For example: "**/*.coveragexml" will find all "*.coveragexml" files in all sub-directories of current project.',
  490. category: 'C / C++ / Objective-C',
  491. subCategory: ' Coverage',
  492. options: [],
  493. fields: [],
  494. },
  495. {
  496. key: 'sonar.cs.analyzeGeneratedCode',
  497. name: 'Analyze generated code',
  498. description:
  499. 'If set to "true", the files containing generated code are analyzed. If set to "false", the files containing generated code are ignored.',
  500. type: SettingType.BOOLEAN,
  501. category: 'C#',
  502. subCategory: 'C#',
  503. defaultValue: 'false',
  504. options: [],
  505. fields: [],
  506. },
  507. {
  508. key: 'sonar.cs.file.suffixes',
  509. name: 'File suffixes',
  510. description: 'List of suffixes for files to analyze.',
  511. category: 'C#',
  512. subCategory: 'C#',
  513. defaultValue: '.cs',
  514. multiValues: true,
  515. options: [],
  516. fields: [],
  517. },
  518. {
  519. key: 'sonar.cs.ignoreHeaderComments',
  520. name: 'Ignore header comments',
  521. description:
  522. 'If set to "true", the file headers (that are usually the same on each file: licensing information for example) are not considered as comments. Thus metrics such as "Comment lines" do not get incremented. If set to "false", those file headers are considered as comments and metrics such as "Comment lines" get incremented.',
  523. type: SettingType.BOOLEAN,
  524. category: 'C#',
  525. subCategory: 'C#',
  526. defaultValue: 'true',
  527. options: [],
  528. fields: [],
  529. },
  530. {
  531. key: 'sonar.cloudformation.activate',
  532. name: 'Activate CloudFormation analysis',
  533. description: 'Activate analysis of JSON and Yaml files recognized as CloudFormation files.',
  534. type: SettingType.BOOLEAN,
  535. category: 'CloudFormation',
  536. subCategory: 'General',
  537. defaultValue: 'true',
  538. options: [],
  539. fields: [],
  540. },
  541. {
  542. key: 'sonar.cloudformation.file.identifier',
  543. name: 'File Identifier',
  544. description:
  545. 'Files without the identifier are excluded from the analysis. The identifier can be anywhere in the file.',
  546. category: 'CloudFormation',
  547. subCategory: 'General',
  548. defaultValue: 'AWSTemplateFormatVersion',
  549. options: [],
  550. fields: [],
  551. },
  552. {
  553. key: 'sonar.cobol.aucobol.preprocessor.directives.default',
  554. name: 'AcuCobol preprocessor default directives',
  555. description:
  556. 'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarsource.com/sonarqube/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
  557. category: 'COBOL',
  558. subCategory: 'Preprocessor',
  559. options: [],
  560. fields: [],
  561. },
  562. {
  563. key: 'sonar.cobol.adaprep.activation',
  564. name: 'ADAPREP preprocessor activation',
  565. description:
  566. 'ADAPREP is a COBOL preprocessor which provides the programmer with the full ADABAS (See Software AG) capability. Activating this property is mandatory if the COBOL source code might contain some ADAPREP directives.',
  567. type: SettingType.BOOLEAN,
  568. category: 'COBOL',
  569. subCategory: 'Preprocessor',
  570. defaultValue: 'false',
  571. options: [],
  572. fields: [],
  573. },
  574. {
  575. key: 'sonar.cobol.copy.suffixes',
  576. name: 'Copy suffixes',
  577. description:
  578. "Comma-separated list of suffixes for copybook to analyze, ex: 'cpy, cbl'. To not filter, leave the list empty.",
  579. category: 'COBOL',
  580. subCategory: 'Preprocessor',
  581. multiValues: true,
  582. options: [],
  583. fields: [],
  584. },
  585. {
  586. key: 'sonar.cobol.copy.directories',
  587. name: 'Copybook directories',
  588. description:
  589. 'Comma-separated list of all directories containing some copybooks required to analyze the COBOL programs. Both relative and absolute paths can be used.',
  590. category: 'COBOL',
  591. subCategory: 'Preprocessor',
  592. multiValues: true,
  593. options: [],
  594. fields: [],
  595. },
  596. {
  597. key: 'sonar.cobol.copy.exclusions',
  598. name: 'Copybooks to exclude',
  599. description:
  600. 'Comma-separated list of copybooks exclusion patterns. If one copybook name matches one exclusion pattern, no violation will be reported on this copybook. The exclusion pattern must be a case-insensitive regular expression and should not include the copybook suffix.<p>For instance "one\\d*,TWO." will exclude violations reported on one23.cpy, ONE111.cpy, TWOX, and TWO2.cpy copybooks.</p>',
  601. category: 'COBOL',
  602. subCategory: 'Preprocessor',
  603. multiValues: true,
  604. options: [],
  605. fields: [],
  606. },
  607. {
  608. key: 'sonar.cobol.byteBasedColumnCount',
  609. name: 'Count columns based on bytes',
  610. description:
  611. 'This property should be set to true if source columns have to be counted based on bytes rather than characters. That may be useful for projects using double-byte character set.',
  612. type: SettingType.BOOLEAN,
  613. category: 'COBOL',
  614. subCategory: 'COBOL',
  615. defaultValue: 'false',
  616. options: [],
  617. fields: [],
  618. },
  619. {
  620. key: 'sonar.cobol.preprocessor.skipping.first.matching.characters',
  621. name: 'Custom skipping preprocessor first matching characters',
  622. description:
  623. "<p>To support a maximum number of legacy COBOL preprocessors, this property allows to define which lines of code should be considered as a preprocessing line and so should be ignored when analyzing the COBOL source code.</p><p>For example, if this property is set to '%', all lines starting with a '%' character, and whatever is the position of this first character in the line, won't be analyzed. If this property is set to '%?', all lines starting with a '%' or a '?' will be ignored.</p>",
  624. category: 'COBOL',
  625. subCategory: 'Preprocessor',
  626. options: [],
  627. fields: [],
  628. },
  629. {
  630. key: 'sonar.cobol.db2include.directories',
  631. name: 'DB2 Include directories',
  632. description:
  633. 'Comma-separated list of all directories (either relative or absolute paths) containing some copybooks required to analyze the COBOL programs. This property is used when interpreting the DB2 INCLUDE preprocessing directive (EXEC SQL INCLUDE ... END-EXEC) to locate the copybook files. When this property is not set, the property "sonar.cobol.copy.directories" is used instead.',
  634. category: 'COBOL',
  635. subCategory: 'SQL/CICS',
  636. multiValues: true,
  637. options: [],
  638. fields: [],
  639. },
  640. {
  641. key: 'sonar.cobol.dialect',
  642. name: 'Dialect',
  643. description: 'The COBOL dialect to be used for the analysis.',
  644. type: SettingType.SINGLE_SELECT_LIST,
  645. category: 'COBOL',
  646. subCategory: 'COBOL',
  647. defaultValue: 'ibm-enterprise-cobol',
  648. options: [
  649. 'bull-gcos-cobol',
  650. 'hp-tandem-cobol',
  651. 'ibm-os/vs-cobol',
  652. 'ibm-ile-cobol',
  653. 'ibm-cobol/ii',
  654. 'ibm-cobol/400',
  655. 'ibm-enterprise-cobol',
  656. 'microfocus-cobol',
  657. 'microfocus-acucobol-gt-cobol',
  658. 'opencobol/cobol-it',
  659. ],
  660. fields: [],
  661. },
  662. {
  663. key: 'sonar.cobol.exec.recoveryMode',
  664. name: 'Exec SQL/CICS Recovery mode',
  665. description:
  666. 'This option must be activated when the COBOL parser is unable to parse a specific SQL dialect like Pro*Cobol for instance.',
  667. type: SettingType.BOOLEAN,
  668. category: 'COBOL',
  669. subCategory: 'SQL/CICS',
  670. defaultValue: 'true',
  671. options: [],
  672. fields: [],
  673. deprecatedKey: 'sonar.cobol.sql.recoveryMode',
  674. },
  675. {
  676. key: 'sonar.cobol.file.suffixes',
  677. name: 'File suffixes',
  678. description:
  679. 'Comma-separated list of suffixes for files to analyze. To not filter, leave the list empty.',
  680. category: 'COBOL',
  681. subCategory: 'COBOL',
  682. multiValues: true,
  683. options: [],
  684. fields: [],
  685. },
  686. {
  687. key: 'sonar.cpd.cobol.ignoreLiteral',
  688. name: 'Ignore literals',
  689. description:
  690. "If true, CPD ignores literal value differences when evaluating a duplicated block. This means that 'my first text'; and 'my second text' will be seen as equivalent.",
  691. type: SettingType.BOOLEAN,
  692. category: 'COBOL',
  693. subCategory: 'Duplications',
  694. defaultValue: 'true',
  695. options: [],
  696. fields: [],
  697. },
  698. {
  699. key: 'sonar.cobol.compilationConstants',
  700. name: 'Microfocus Compilation Constants',
  701. description:
  702. 'If your code takes advantage of conditional compilation features provided by Microfocus, you may have to configure compiler constants for your analysis.',
  703. type: SettingType.PROPERTY_SET,
  704. category: 'COBOL',
  705. subCategory: 'Preprocessor',
  706. multiValues: true,
  707. options: [],
  708. fields: [
  709. {
  710. key: 'name',
  711. name: 'Compilation Constant Name',
  712. options: [],
  713. },
  714. {
  715. key: 'value',
  716. name: 'Compilation Constant Value',
  717. options: [],
  718. },
  719. ],
  720. },
  721. {
  722. key: 'sonar.cobol.sql.catalog.defaultSchema',
  723. name: 'Names of default database schemas',
  724. description:
  725. 'Comma-separated list of default database schemas used in embedded SQL statements. If a table name matches more than one, the table will be resolved to the first matching schema.',
  726. category: 'COBOL',
  727. subCategory: 'SQL/CICS',
  728. multiValues: true,
  729. options: [],
  730. fields: [],
  731. },
  732. {
  733. key: 'sonar.cobol.sql.catalog.csv.path',
  734. name: 'Path for database catalog CSV files',
  735. description: 'Path of the directory containing CSV files for the database catalog.',
  736. category: 'COBOL',
  737. subCategory: 'SQL/CICS',
  738. options: [],
  739. fields: [],
  740. },
  741. {
  742. key: 'sonar.cobol.sourceFormat',
  743. name: 'Source format',
  744. description:
  745. 'In fixed format, there is both a left and right margin; the indicator area is expected in column 7 and the code area ends in column 72. In variable format, there is only a left margin; the indicator area is expected in column 7. In free format, there is no margin; the indicator area is expected in column 1.',
  746. type: SettingType.SINGLE_SELECT_LIST,
  747. category: 'COBOL',
  748. subCategory: 'COBOL',
  749. defaultValue: 'fixed',
  750. options: ['fixed', 'variable', 'free'],
  751. fields: [],
  752. },
  753. {
  754. key: 'sonar.cobol.tab.width',
  755. name: 'Tab width',
  756. description:
  757. 'Number of expanded spaces for a tab character (\'\t\'). This property really matters when the Source format is "fixed".',
  758. type: SettingType.INTEGER,
  759. category: 'COBOL',
  760. subCategory: 'COBOL',
  761. defaultValue: '8',
  762. options: [],
  763. fields: [],
  764. },
  765. {
  766. key: 'sonar.css.file.suffixes',
  767. name: 'File Suffixes',
  768. description: 'List of suffixes for files to analyze.',
  769. category: 'CSS',
  770. subCategory: 'General',
  771. defaultValue: '.css,.less,.scss',
  772. multiValues: true,
  773. options: [],
  774. fields: [],
  775. },
  776. {
  777. key: 'sonar.docker.activate',
  778. name: 'Activate Docker Analysis',
  779. description:
  780. 'Disabling Docker analysis ensures that no Docker files are parsed, highlighted and analyzed, and no IaC analysis results are included in the quality gate.',
  781. type: SettingType.BOOLEAN,
  782. category: 'Docker',
  783. subCategory: 'General',
  784. defaultValue: 'true',
  785. options: [],
  786. fields: [],
  787. },
  788. {
  789. key: 'sonar.global.exclusions',
  790. name: 'Global Source File Exclusions',
  791. category: 'exclusions',
  792. subCategory: 'files',
  793. multiValues: true,
  794. options: [],
  795. fields: [],
  796. },
  797. {
  798. key: 'sonar.exclusions',
  799. name: 'Source File Exclusions',
  800. category: 'exclusions',
  801. subCategory: 'files',
  802. multiValues: true,
  803. options: [],
  804. fields: [],
  805. },
  806. {
  807. key: 'sonar.global.test.exclusions',
  808. name: 'Global Test File Exclusions',
  809. category: 'exclusions',
  810. subCategory: 'files',
  811. multiValues: true,
  812. options: [],
  813. fields: [],
  814. },
  815. {
  816. key: 'sonar.issue.ignore.allfile',
  817. name: 'Ignore Issues on Files',
  818. description:
  819. 'Patterns to ignore all issues on files that contain a block of code matching a given regular expression.',
  820. type: SettingType.PROPERTY_SET,
  821. category: 'exclusions',
  822. subCategory: 'issues',
  823. options: [],
  824. fields: [
  825. {
  826. key: 'fileRegexp',
  827. name: 'Regular Expression',
  828. description:
  829. 'If this regular expression is found in a file, then the whole file is ignored.',
  830. options: [],
  831. },
  832. ],
  833. },
  834. {
  835. key: 'sonar.inclusions',
  836. name: 'Source File Inclusions',
  837. category: 'exclusions',
  838. subCategory: 'files',
  839. multiValues: true,
  840. options: [],
  841. fields: [],
  842. },
  843. {
  844. key: 'sonar.issue.ignore.block',
  845. name: 'Ignore Issues in Blocks',
  846. description:
  847. 'Patterns to ignore all issues on specific blocks of code, while continuing to scan and mark issues on the remainder of the file.',
  848. type: SettingType.PROPERTY_SET,
  849. category: 'exclusions',
  850. subCategory: 'issues',
  851. options: [],
  852. fields: [
  853. {
  854. key: 'beginBlockRegexp',
  855. name: 'Regular Expression for Start of Block',
  856. description:
  857. 'If this regular expression is found in a file, then following lines are ignored until end of block.',
  858. options: [],
  859. },
  860. {
  861. key: 'endBlockRegexp',
  862. name: 'Regular Expression for End of Block',
  863. description:
  864. 'If specified, this regular expression is used to determine the end of code blocks to ignore. If not, then block ends at the end of file.',
  865. options: [],
  866. },
  867. ],
  868. },
  869. {
  870. key: 'sonar.test.exclusions',
  871. name: 'Test File Exclusions',
  872. category: 'exclusions',
  873. subCategory: 'files',
  874. multiValues: true,
  875. options: [],
  876. fields: [],
  877. },
  878. {
  879. key: 'sonar.issue.ignore.multicriteria',
  880. name: 'Ignore Issues on Multiple Criteria',
  881. description:
  882. 'Patterns to ignore issues on certain components and for certain coding rules.<br/>A rule key pattern consists of the rule repository name, followed by a colon, followed by a rule key or rule name fragment. For example:<ul><li>java:S1195</li><li>java:*Naming*</li></ul>',
  883. type: SettingType.PROPERTY_SET,
  884. category: 'exclusions',
  885. subCategory: 'issues',
  886. options: [],
  887. fields: [
  888. {
  889. key: 'ruleKey',
  890. name: 'Rule Key Pattern',
  891. description: 'Pattern to match rules which should be ignored.',
  892. options: [],
  893. },
  894. {
  895. key: 'resourceKey',
  896. name: 'File Path Pattern',
  897. description: 'Pattern to match files which should be ignored.',
  898. options: [],
  899. },
  900. ],
  901. },
  902. {
  903. key: 'sonar.test.inclusions',
  904. name: 'Test File Inclusions',
  905. category: 'exclusions',
  906. subCategory: 'files',
  907. multiValues: true,
  908. options: [],
  909. fields: [],
  910. },
  911. {
  912. key: 'sonar.issue.enforce.multicriteria',
  913. name: 'Restrict Scope of Coding Rules',
  914. description:
  915. 'Patterns to restrict the application of a rule to only certain components, ignoring all others.<br/>A rule key pattern consists of the rule repository name, followed by a colon, followed by a rule key or rule name fragment. For example:<ul><li>java:S1195</li><li>java:*Naming*</li></ul>',
  916. type: SettingType.PROPERTY_SET,
  917. category: 'exclusions',
  918. subCategory: 'issues',
  919. options: [],
  920. fields: [
  921. {
  922. key: 'ruleKey',
  923. name: 'Rule Key Pattern',
  924. description: 'Pattern used to match rules which should be restricted.',
  925. options: [],
  926. },
  927. {
  928. key: 'resourceKey',
  929. name: 'File Path Pattern',
  930. description: 'Pattern used to match files to which the rules should be restricted.',
  931. options: [],
  932. },
  933. ],
  934. },
  935. {
  936. key: 'sonar.coverage.exclusions',
  937. category: 'exclusions',
  938. subCategory: 'coverage',
  939. multiValues: true,
  940. options: [],
  941. fields: [],
  942. },
  943. {
  944. key: 'sonar.cpd.exclusions',
  945. name: 'Duplication Exclusions',
  946. description:
  947. 'Patterns used to exclude some source files from the duplication detection mechanism. See below to know how to use wildcards to specify this property.',
  948. category: 'exclusions',
  949. subCategory: 'duplications',
  950. multiValues: true,
  951. options: [],
  952. fields: [],
  953. },
  954. {
  955. key: 'sonar.vbnet.roslyn.ignoreIssues',
  956. name: 'Ignore issues from external Roslyn analyzers',
  957. description:
  958. "If set to 'true', issues reported by external Roslyn analyzers won't be imported.",
  959. type: SettingType.BOOLEAN,
  960. category: 'External Analyzers',
  961. subCategory: 'VB.NET',
  962. defaultValue: 'false',
  963. options: [],
  964. fields: [],
  965. },
  966. {
  967. key: 'sonar.cs.roslyn.ignoreIssues',
  968. name: 'Ignore issues from external Roslyn analyzers',
  969. description:
  970. "If set to 'true', issues reported by external Roslyn analyzers won't be imported.",
  971. type: SettingType.BOOLEAN,
  972. category: 'External Analyzers',
  973. subCategory: 'C#',
  974. defaultValue: 'false',
  975. options: [],
  976. fields: [],
  977. },
  978. {
  979. key: 'sonar.vbnet.roslyn.bugCategories',
  980. name: 'Rule categories associated with Bugs',
  981. description: 'External rule categories to be treated as Bugs.',
  982. category: 'External Analyzers',
  983. subCategory: 'VB.NET',
  984. multiValues: true,
  985. options: [],
  986. fields: [],
  987. },
  988. {
  989. key: 'sonar.cs.roslyn.bugCategories',
  990. name: 'Rule categories associated with Bugs',
  991. description: 'External rule categories to be treated as Bugs.',
  992. category: 'External Analyzers',
  993. subCategory: 'C#',
  994. multiValues: true,
  995. options: [],
  996. fields: [],
  997. },
  998. {
  999. key: 'sonar.cs.roslyn.vulnerabilityCategories',
  1000. name: 'Rule categories associated with Vulnerabilities',
  1001. description: 'External rule categories to be treated as Vulnerabilities.',
  1002. category: 'External Analyzers',
  1003. subCategory: 'C#',
  1004. multiValues: true,
  1005. options: [],
  1006. fields: [],
  1007. },
  1008. {
  1009. key: 'sonar.vbnet.roslyn.vulnerabilityCategories',
  1010. name: 'Rule categories associated with Vulnerabilities',
  1011. description: 'External rule categories to be treated as Vulnerabilities.',
  1012. category: 'External Analyzers',
  1013. subCategory: 'VB.NET',
  1014. multiValues: true,
  1015. options: [],
  1016. fields: [],
  1017. },
  1018. {
  1019. key: 'sonar.cs.roslyn.codeSmellCategories',
  1020. name: 'Rule categories associated with Code Smells',
  1021. description:
  1022. 'External rule categories to be treated as Code Smells. By default, external issues are Code Smells, or Bugs when the severity is error.',
  1023. category: 'External Analyzers',
  1024. subCategory: 'C#',
  1025. multiValues: true,
  1026. options: [],
  1027. fields: [],
  1028. },
  1029. {
  1030. key: 'sonar.vbnet.roslyn.codeSmellCategories',
  1031. name: 'Rule categories associated with Code Smells',
  1032. description:
  1033. 'External rule categories to be treated as Code Smells. By default, external issues are Code Smells, or Bugs when the severity is error.',
  1034. category: 'External Analyzers',
  1035. subCategory: 'VB.NET',
  1036. multiValues: true,
  1037. options: [],
  1038. fields: [],
  1039. },
  1040. {
  1041. key: 'sonar.cloudformation.cfn-lint.reportPaths',
  1042. name: 'Cfn-Lint Report Files',
  1043. description: 'Paths (absolute or relative) to the files with Cfn-Lint issues.',
  1044. category: 'External Analyzers',
  1045. subCategory: 'CloudFormation',
  1046. multiValues: true,
  1047. options: [],
  1048. fields: [],
  1049. },
  1050. {
  1051. key: 'sonar.androidLint.reportPaths',
  1052. name: 'Android Lint Report Files',
  1053. description: 'Paths (absolute or relative) to xml files with Android Lint issues.',
  1054. category: 'External Analyzers',
  1055. subCategory: 'Android',
  1056. multiValues: true,
  1057. options: [],
  1058. fields: [],
  1059. },
  1060. {
  1061. key: 'sonar.python.bandit.reportPaths',
  1062. name: 'Bandit Report Files',
  1063. description: 'Paths (absolute or relative) to json files with Bandit issues.',
  1064. category: 'External Analyzers',
  1065. subCategory: 'Python',
  1066. multiValues: true,
  1067. options: [],
  1068. fields: [],
  1069. },
  1070. {
  1071. key: 'sonar.java.checkstyle.reportPaths',
  1072. name: 'Checkstyle Report Files',
  1073. description: 'Paths (absolute or relative) to xml files with Checkstyle issues.',
  1074. category: 'External Analyzers',
  1075. subCategory: 'Java',
  1076. multiValues: true,
  1077. options: [],
  1078. fields: [],
  1079. },
  1080. {
  1081. key: 'sonar.kotlin.detekt.reportPaths',
  1082. name: 'Detekt Report Files',
  1083. description: 'Paths (absolute or relative) to checkstyle xml files with Detekt issues.',
  1084. category: 'External Analyzers',
  1085. subCategory: 'Kotlin',
  1086. multiValues: true,
  1087. options: [],
  1088. fields: [],
  1089. },
  1090. {
  1091. key: 'sonar.eslint.reportPaths',
  1092. name: 'ESLint Report Files',
  1093. description: 'Paths (absolute or relative) to the JSON files with ESLint issues.',
  1094. category: 'External Analyzers',
  1095. subCategory: 'JavaScript/TypeScript',
  1096. multiValues: true,
  1097. options: [],
  1098. fields: [],
  1099. },
  1100. {
  1101. key: 'sonar.python.flake8.reportPaths',
  1102. name: 'Flake8 Report Files',
  1103. description: 'Paths (absolute or relative) to report files with Flake8 issues.',
  1104. category: 'External Analyzers',
  1105. subCategory: 'Python',
  1106. multiValues: true,
  1107. options: [],
  1108. fields: [],
  1109. },
  1110. {
  1111. key: 'sonar.kotlin.ktlint.reportPaths',
  1112. name: 'Ktlint Report Files',
  1113. description: 'Paths (absolute or relative) to checkstyle xml or json files with Ktlint issues.',
  1114. category: 'External Analyzers',
  1115. subCategory: 'Kotlin',
  1116. multiValues: true,
  1117. options: [],
  1118. fields: [],
  1119. },
  1120. {
  1121. key: 'sonar.php.phpstan.reportPaths',
  1122. name: 'PHPStan Report Files',
  1123. description: 'Paths (absolute or relative) to report files with PHPStan issues.',
  1124. category: 'External Analyzers',
  1125. subCategory: 'PHP',
  1126. multiValues: true,
  1127. options: [],
  1128. fields: [],
  1129. },
  1130. {
  1131. key: 'sonar.apex.pmd.reportPaths',
  1132. name: 'PMD Report Files',
  1133. description: 'Paths (absolute or relative) to xml files with PMD issues.',
  1134. category: 'External Analyzers',
  1135. subCategory: 'Apex',
  1136. multiValues: true,
  1137. options: [],
  1138. fields: [],
  1139. },
  1140. {
  1141. key: 'sonar.java.pmd.reportPaths',
  1142. name: 'PMD Report Files',
  1143. description: 'Paths (absolute or relative) to xml files with PMD issues.',
  1144. category: 'External Analyzers',
  1145. subCategory: 'Java',
  1146. multiValues: true,
  1147. options: [],
  1148. fields: [],
  1149. },
  1150. {
  1151. key: 'sonar.php.psalm.reportPaths',
  1152. name: 'Psalm Report Files',
  1153. description: 'Paths (absolute or relative) to report files with Psalm issues.',
  1154. category: 'External Analyzers',
  1155. subCategory: 'PHP',
  1156. multiValues: true,
  1157. options: [],
  1158. fields: [],
  1159. },
  1160. {
  1161. key: 'sonar.python.pylint.reportPaths',
  1162. name: 'Pylint Report Files',
  1163. description: 'Paths (absolute or relative) to report files with Pylint issues.',
  1164. category: 'External Analyzers',
  1165. subCategory: 'Python',
  1166. multiValues: true,
  1167. options: [],
  1168. fields: [],
  1169. },
  1170. {
  1171. key: 'sonar.ruby.rubocop.reportPaths',
  1172. name: 'RuboCop Report Files',
  1173. description: 'Paths (absolute or relative) to json files with RuboCop issues.',
  1174. category: 'External Analyzers',
  1175. subCategory: 'Ruby',
  1176. multiValues: true,
  1177. options: [],
  1178. fields: [],
  1179. },
  1180. {
  1181. key: 'sonar.scala.scalastyle.reportPaths',
  1182. name: 'Scalastyle Report Files',
  1183. description: 'Paths (absolute or relative) to scalastyle xml files with Scalastyle issues.',
  1184. category: 'External Analyzers',
  1185. subCategory: 'Scala',
  1186. multiValues: true,
  1187. options: [],
  1188. fields: [],
  1189. },
  1190. {
  1191. key: 'sonar.scala.scapegoat.reportPaths',
  1192. name: 'Scapegoat Report Files',
  1193. description:
  1194. 'Paths (absolute or relative) to scapegoat xml files using scalastyle format. For example: scapegoat-scalastyle.xml',
  1195. category: 'External Analyzers',
  1196. subCategory: 'Scala',
  1197. multiValues: true,
  1198. options: [],
  1199. fields: [],
  1200. },
  1201. {
  1202. key: 'sonar.java.spotbugs.reportPaths',
  1203. name: 'SpotBugs Report Files',
  1204. description: 'Paths (absolute or relative) to xml files with SpotBugs issues.',
  1205. category: 'External Analyzers',
  1206. subCategory: 'Java',
  1207. multiValues: true,
  1208. options: [],
  1209. fields: [],
  1210. },
  1211. {
  1212. key: 'sonar.css.stylelint.reportPaths',
  1213. name: 'Stylelint Report Files',
  1214. description: 'Paths (absolute or relative) to the JSON files with stylelint issues.',
  1215. category: 'External Analyzers',
  1216. subCategory: 'CSS',
  1217. multiValues: true,
  1218. options: [],
  1219. fields: [],
  1220. },
  1221. {
  1222. key: 'sonar.swift.swiftLint.reportPaths',
  1223. name: 'SwiftLint Report Files',
  1224. description: 'Paths (absolute or relative) to the JSON files with SwiftLint issues.',
  1225. category: 'External Analyzers',
  1226. subCategory: 'Swift',
  1227. multiValues: true,
  1228. options: [],
  1229. fields: [],
  1230. },
  1231. {
  1232. key: 'sonar.typescript.tslint.reportPaths',
  1233. name: 'TSLint Report Files',
  1234. description: 'Paths (absolute or relative) to the JSON files with TSLint issues.',
  1235. category: 'External Analyzers',
  1236. subCategory: 'JavaScript/TypeScript',
  1237. multiValues: true,
  1238. options: [],
  1239. fields: [],
  1240. },
  1241. {
  1242. key: 'sonar.flex.cobertura.reportPaths',
  1243. name: 'Cobertura xml report paths',
  1244. description:
  1245. 'Comma separated list of paths to the Cobertura coverage report file. The paths may be either absolute or relative to the project base directory.',
  1246. category: 'Flex',
  1247. subCategory: 'Flex',
  1248. multiValues: true,
  1249. options: [],
  1250. fields: [],
  1251. deprecatedKey: 'sonar.flex.cobertura.reportPath',
  1252. },
  1253. {
  1254. key: 'sonar.flex.file.suffixes',
  1255. name: 'File suffixes',
  1256. description: 'List of suffixes for files to analyze. To not filter, leave the list empty.',
  1257. category: 'Flex',
  1258. subCategory: 'Flex',
  1259. defaultValue: 'as',
  1260. multiValues: true,
  1261. options: [],
  1262. fields: [],
  1263. },
  1264. {
  1265. key: 'email.smtp_host.secured',
  1266. name: 'SMTP host',
  1267. description: 'For example "smtp.gmail.com". Leave blank to disable email sending.',
  1268. category: 'general',
  1269. subCategory: 'email',
  1270. options: [],
  1271. fields: [],
  1272. },
  1273. {
  1274. key: 'sonar.login.message',
  1275. name: 'Log-in Message',
  1276. description:
  1277. 'If "Display log-in message" is set to True, the log-in message will be visible to anyone who can access the log-in page of this SonarQube instance.',
  1278. type: SettingType.FORMATTED_TEXT,
  1279. category: 'general',
  1280. subCategory: 'Log-in message',
  1281. options: [],
  1282. fields: [],
  1283. },
  1284. {
  1285. key: 'email.smtp_port.secured',
  1286. name: 'SMTP port',
  1287. description: 'Port number to connect with SMTP server.',
  1288. type: SettingType.INTEGER,
  1289. category: 'general',
  1290. subCategory: 'email',
  1291. defaultValue: '25',
  1292. options: [],
  1293. fields: [],
  1294. },
  1295. {
  1296. key: 'sonar.login.displayMessage',
  1297. name: 'Display log-in Message',
  1298. description:
  1299. 'Display the log-in message on the log-in page of this SonarQube instance. <br><br>Note: If the log-in message is empty. It will not appear even if this parameter is set to True',
  1300. type: SettingType.BOOLEAN,
  1301. category: 'general',
  1302. subCategory: 'Log-in message',
  1303. options: [],
  1304. fields: [],
  1305. },
  1306. {
  1307. key: 'email.smtp_secure_connection.secured',
  1308. name: 'Secure connection',
  1309. description: 'Type of secure connection. Leave empty to not use secure connection.',
  1310. type: SettingType.SINGLE_SELECT_LIST,
  1311. category: 'general',
  1312. subCategory: 'email',
  1313. options: ['ssl', 'starttls'],
  1314. fields: [],
  1315. },
  1316. {
  1317. key: 'email.smtp_username.secured',
  1318. name: 'SMTP username',
  1319. description: 'Username to use with authenticated SMTP.',
  1320. category: 'general',
  1321. subCategory: 'email',
  1322. options: [],
  1323. fields: [],
  1324. },
  1325. {
  1326. key: 'email.smtp_password.secured',
  1327. name: 'SMTP password',
  1328. description: 'Password to use with authenticated SMTP.',
  1329. type: SettingType.PASSWORD,
  1330. category: 'general',
  1331. subCategory: 'email',
  1332. options: [],
  1333. fields: [],
  1334. },
  1335. {
  1336. key: 'email.from',
  1337. name: 'From address',
  1338. description:
  1339. 'Emails will come from this address. For example - "noreply@sonarsource.com". Note that the mail server may ignore this setting.',
  1340. category: 'general',
  1341. subCategory: 'email',
  1342. defaultValue: 'noreply@nowhere',
  1343. options: [],
  1344. fields: [],
  1345. },
  1346. {
  1347. key: 'email.fromName',
  1348. name: 'From name',
  1349. description:
  1350. 'Emails will come from this address name. For example - "SonarQube". Note that the mail server may ignore this setting.',
  1351. category: 'general',
  1352. subCategory: 'email',
  1353. defaultValue: 'SonarQube',
  1354. options: [],
  1355. fields: [],
  1356. },
  1357. {
  1358. key: 'email.prefix',
  1359. name: 'Email prefix',
  1360. description: 'Prefix will be prepended to all outgoing email subjects.',
  1361. category: 'general',
  1362. subCategory: 'email',
  1363. defaultValue: '[SONARQUBE]',
  1364. options: [],
  1365. fields: [],
  1366. },
  1367. {
  1368. key: 'sonar.announcement.message',
  1369. name: 'Announcement message',
  1370. description:
  1371. 'If "Display announcement message" is set to True, this message will be displayed in a warning banner to anyone who can access SonarQube. If this field is empty, no message will be displayed, even if "Display announcement message" is set to True.',
  1372. type: SettingType.TEXT,
  1373. category: 'general',
  1374. subCategory: 'announcement',
  1375. options: [],
  1376. fields: [],
  1377. },
  1378. {
  1379. key: 'sonar.builtInQualityProfiles.disableNotificationOnUpdate',
  1380. name: 'Avoid quality profiles notification',
  1381. description:
  1382. 'Avoid sending email notification on each update of built-in quality profiles to quality profile administrators.',
  1383. type: SettingType.BOOLEAN,
  1384. category: 'general',
  1385. subCategory: 'general',
  1386. defaultValue: 'false',
  1387. options: [],
  1388. fields: [],
  1389. },
  1390. {
  1391. key: 'sonar.cpd.cross_project',
  1392. name: 'Cross project duplication detection',
  1393. description:
  1394. 'DEPRECATED - 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 significantly increase each SonarQube analysis time, and therefore badly impact the performances of report processing as more and more projects are getting involved in this cross project duplication mechanism.',
  1395. type: SettingType.BOOLEAN,
  1396. category: 'general',
  1397. subCategory: 'duplications',
  1398. defaultValue: 'false',
  1399. options: [],
  1400. fields: [],
  1401. },
  1402. {
  1403. key: 'sonar.issues.defaultAssigneeLogin',
  1404. name: 'Default Assignee',
  1405. description:
  1406. 'New issues will be assigned to this user each time it is not possible to determine the user who is the author of the issue.',
  1407. type: SettingType.USER_LOGIN,
  1408. category: 'general',
  1409. subCategory: 'issues',
  1410. options: [],
  1411. fields: [],
  1412. },
  1413. {
  1414. key: 'sonar.projectCreation.mainBranchName',
  1415. name: 'Default main branch name',
  1416. description:
  1417. 'Each project has a main branch at creation. This setting defines the instance-wide default main branch name. A user can override this when creating a project. This setting does not apply to projects imported from a DevOps platform.',
  1418. category: 'general',
  1419. subCategory: 'subProjectCreation',
  1420. defaultValue: 'main',
  1421. options: [],
  1422. fields: [],
  1423. },
  1424. {
  1425. key: 'sonar.developerAggregatedInfo.disabled',
  1426. name: 'Disable developer aggregated information',
  1427. description: "Don't show issue facets aggregating information per developer",
  1428. type: SettingType.BOOLEAN,
  1429. category: 'general',
  1430. subCategory: 'issues',
  1431. defaultValue: 'false',
  1432. options: [],
  1433. fields: [],
  1434. },
  1435. {
  1436. key: 'sonar.announcement.displayMessage',
  1437. name: 'Display announcement message',
  1438. description:
  1439. 'If set to True, the "Announcement message" will be displayed in a warning banner to anyone who can access SonarQube.',
  1440. type: SettingType.BOOLEAN,
  1441. category: 'general',
  1442. subCategory: 'announcement',
  1443. defaultValue: 'false',
  1444. options: [],
  1445. fields: [],
  1446. },
  1447. {
  1448. key: 'sonar.ce.parallelProjectTasks',
  1449. name: 'Enable running project analysis tasks in parallel',
  1450. description:
  1451. 'When enabled, this feature will allow the Compute Engine to process pull request analysis tasks in parallel with other pull request or branch analysis tasks of the same project.',
  1452. type: SettingType.BOOLEAN,
  1453. category: 'general',
  1454. subCategory: 'Compute Engine',
  1455. defaultValue: 'false',
  1456. options: [],
  1457. fields: [],
  1458. },
  1459. {
  1460. key: 'sonar.lf.enableGravatar',
  1461. name: 'Enable support of gravatars',
  1462. description: 'Gravatars are profile pictures of users based on their email.',
  1463. type: SettingType.BOOLEAN,
  1464. category: 'general',
  1465. subCategory: 'looknfeel',
  1466. defaultValue: 'false',
  1467. options: [],
  1468. fields: [],
  1469. },
  1470. {
  1471. key: 'sonar.lf.gravatarServerUrl',
  1472. name: 'Gravatar URL',
  1473. description:
  1474. 'Optional URL of custom Gravatar service. Accepted variables are {EMAIL_MD5} for MD5 hash of email and {SIZE} for the picture size in pixels.',
  1475. category: 'general',
  1476. subCategory: 'looknfeel',
  1477. defaultValue: 'https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon',
  1478. options: [],
  1479. fields: [],
  1480. },
  1481. {
  1482. key: 'sonar.qualitygate.ignoreSmallChanges',
  1483. name: 'Ignore duplication and coverage on small changes',
  1484. description:
  1485. 'Quality Gate conditions about duplications in new code and coverage on new code are ignored until the number of new lines is at least 20.',
  1486. type: SettingType.BOOLEAN,
  1487. category: 'general',
  1488. subCategory: 'qualityGate',
  1489. defaultValue: 'true',
  1490. options: [],
  1491. fields: [],
  1492. },
  1493. {
  1494. key: 'sonar.lf.logoUrl',
  1495. name: 'Logo URL',
  1496. description: 'URL to logo image. Any standard format is accepted.',
  1497. category: 'general',
  1498. subCategory: 'looknfeel',
  1499. options: [],
  1500. fields: [],
  1501. deprecatedKey: 'sonar.branding.image',
  1502. },
  1503. {
  1504. key: 'sonar.core.serverBaseURL',
  1505. name: 'Server base URL',
  1506. description:
  1507. 'HTTP(S) URL of this SonarQube server, such as <i>https://yourhost.yourdomain/sonar</i>. This value is used outside SonarQube itself, e.g. for PR decoration, emails, etc.',
  1508. category: 'general',
  1509. subCategory: 'general',
  1510. options: [],
  1511. fields: [],
  1512. },
  1513. {
  1514. key: 'sonar.lf.logoWidthPx',
  1515. name: 'Width of image in pixels',
  1516. description:
  1517. 'Width in pixels, constrained to 150px (the height of the image is constrained to 40px).',
  1518. category: 'general',
  1519. subCategory: 'looknfeel',
  1520. options: [],
  1521. fields: [],
  1522. deprecatedKey: 'sonar.branding.image.width',
  1523. },
  1524. {
  1525. key: 'sonar.go.file.suffixes',
  1526. name: 'File Suffixes',
  1527. description: 'List of suffixes for files to analyze.',
  1528. category: 'Go',
  1529. subCategory: 'General',
  1530. defaultValue: '.go',
  1531. multiValues: true,
  1532. options: [],
  1533. fields: [],
  1534. },
  1535. {
  1536. key: 'sonar.go.exclusions',
  1537. name: 'Go Exclusions',
  1538. description: 'List of file path patterns to be excluded from analysis of Go files.',
  1539. category: 'Go',
  1540. subCategory: 'General',
  1541. defaultValue: '**/vendor/**',
  1542. multiValues: true,
  1543. options: [],
  1544. fields: [],
  1545. },
  1546. {
  1547. key: 'sonar.go.tests.reportPaths',
  1548. name: 'Path to test execution report(s)',
  1549. description:
  1550. "Path to test execution reports generated by Go with '-json' key, available since go1.10 (e.g.: go test -json > test-report.out).",
  1551. category: 'Go',
  1552. subCategory: 'Test and Coverage',
  1553. multiValues: true,
  1554. options: [],
  1555. fields: [],
  1556. },
  1557. {
  1558. key: 'sonar.go.coverage.reportPaths',
  1559. name: 'Path to coverage report(s)',
  1560. description:
  1561. 'Path to coverage reports generated by Go (e.g.: go test -coverprofile=coverage.out), ant patterns relative to project root are supported.',
  1562. category: 'Go',
  1563. subCategory: 'Test and Coverage',
  1564. multiValues: true,
  1565. options: [],
  1566. fields: [],
  1567. },
  1568. {
  1569. key: 'sonar.go.govet.reportPaths',
  1570. name: '"go vet" Report Files',
  1571. description: 'Paths (absolute or relative) to the files with "go vet" issues.',
  1572. category: 'Go',
  1573. subCategory: 'Popular Rule Engines',
  1574. multiValues: true,
  1575. options: [],
  1576. fields: [],
  1577. },
  1578. {
  1579. key: 'sonar.go.golint.reportPaths',
  1580. name: 'Golint Report Files',
  1581. description: 'Paths (absolute or relative) to the files with Golint issues.',
  1582. category: 'Go',
  1583. subCategory: 'Popular Rule Engines',
  1584. multiValues: true,
  1585. options: [],
  1586. fields: [],
  1587. },
  1588. {
  1589. key: 'sonar.go.gometalinter.reportPaths',
  1590. name: 'GoMetaLinter Report Files',
  1591. description: 'Paths (absolute or relative) to the files with GoMetaLinter issues.',
  1592. category: 'Go',
  1593. subCategory: 'Popular Rule Engines',
  1594. multiValues: true,
  1595. options: [],
  1596. fields: [],
  1597. },
  1598. {
  1599. key: 'sonar.go.golangci-lint.reportPaths',
  1600. name: 'GolangCI-Lint Report Files',
  1601. description: 'Paths (absolute or relative) to the files with GolangCI-Lint issues.',
  1602. category: 'Go',
  1603. subCategory: 'Popular Rule Engines',
  1604. multiValues: true,
  1605. options: [],
  1606. fields: [],
  1607. },
  1608. {
  1609. key: 'sonar.governance.report.project.branch.frequency',
  1610. name: 'PDF Reports Frequency',
  1611. description:
  1612. 'Define the frequency at which to send PDF reports.<ul><li>"Daily" => report is sent on a daily basis</li><li>"Weekly" => report is sent on a weekly basis</li><li>"Monthly" => report is sent on a monthly basis</li></ul>',
  1613. type: SettingType.SINGLE_SELECT_LIST,
  1614. category: 'Governance',
  1615. subCategory: 'Project and Application PDF Reports',
  1616. defaultValue: 'Monthly',
  1617. options: ['Daily', 'Weekly', 'Monthly'],
  1618. fields: [],
  1619. },
  1620. {
  1621. key: 'sonar.portfolios.recompute.hours',
  1622. name: 'Portfolio Calculation Hours',
  1623. description:
  1624. 'Hours of the day at which outdated portfolios will be recalculated. Portfolios will be queued at the beginning of each selected hour. A 24-hour clock is used, so valid values are 0–23. If this value is empty or invalid, each portfolio will be recalculated immediately after it becomes outdated.',
  1625. type: SettingType.INTEGER,
  1626. category: 'Governance',
  1627. subCategory: 'Recalculation',
  1628. multiValues: true,
  1629. options: [],
  1630. fields: [],
  1631. },
  1632. {
  1633. key: 'sonar.governance.report.view.frequency',
  1634. name: 'Portfolio Reports Frequency',
  1635. description:
  1636. 'Define the default frequency that will be used to send PDF reports for portfolios.<ul><li>"Daily" => report is sent during the first portfolio calculation of the day (if any)</li><li>"Weekly" => report is sent during the first portfolio calculation of the week (if any), starting from Midnight on Monday</li><li>"Monthly" => report is sent during the first portfolio calculation of the month (if any), starting from the first day of the current month</li></ul>',
  1637. type: SettingType.SINGLE_SELECT_LIST,
  1638. category: 'Governance',
  1639. subCategory: 'Portfolio PDF Reports',
  1640. defaultValue: 'Monthly',
  1641. options: ['Daily', 'Weekly', 'Monthly'],
  1642. fields: [],
  1643. },
  1644. {
  1645. key: 'sonar.governance.report.view.recipients',
  1646. name: 'Recipients',
  1647. description:
  1648. 'Email addresses of people who will automatically receive a PDF report for every portfolio defined in the system, based on the given frequency.',
  1649. category: 'Governance',
  1650. subCategory: 'Portfolio PDF Reports',
  1651. multiValues: true,
  1652. options: [],
  1653. fields: [],
  1654. },
  1655. {
  1656. key: 'sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay',
  1657. name: 'Keep only one analysis a day after',
  1658. description:
  1659. 'After this number of hours, if there are several analyses during the same day, the DbCleaner keeps the most recent one and fully deletes the other ones.',
  1660. type: SettingType.INTEGER,
  1661. category: 'housekeeping',
  1662. subCategory: 'general',
  1663. defaultValue: '24',
  1664. options: [],
  1665. fields: [],
  1666. },
  1667. {
  1668. key: 'sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs',
  1669. name: 'Number of days before purging inactive branches and pull requests',
  1670. description:
  1671. 'Branches and pull requests are permanently deleted when there has been no analysis for the configured number of days.',
  1672. type: SettingType.INTEGER,
  1673. category: 'housekeeping',
  1674. subCategory: 'branchesAndPullRequests',
  1675. defaultValue: '30',
  1676. options: [],
  1677. fields: [],
  1678. },
  1679. {
  1680. key: 'sonar.dbcleaner.branchesToKeepWhenInactive',
  1681. name: 'Branches to keep when inactive',
  1682. description:
  1683. 'By default, branches and pull requests are automatically deleted when inactive. This setting allows you to protect branches (but not pull requests) from this deletion. When a branch is created with a name that matches any of the regular expressions on the list of values of this setting, the branch will not be deleted automatically even when it becomes inactive.<br>Example:<ul><li>develop</li><li>release-.*</li></ul>',
  1684. type: SettingType.REGULAR_EXPRESSION,
  1685. category: 'housekeeping',
  1686. subCategory: 'branchesAndPullRequests',
  1687. defaultValue: 'main,master,develop,trunk',
  1688. multiValues: true,
  1689. options: [],
  1690. fields: [],
  1691. },
  1692. {
  1693. key: 'sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek',
  1694. name: 'Keep only one analysis a week after',
  1695. description:
  1696. 'After this number of weeks, if there are several analyses during the same week, the DbCleaner keeps the most recent one and fully deletes the other ones',
  1697. type: SettingType.INTEGER,
  1698. category: 'housekeeping',
  1699. subCategory: 'general',
  1700. defaultValue: '4',
  1701. options: [],
  1702. fields: [],
  1703. },
  1704. {
  1705. key: 'sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth',
  1706. name: 'Keep only one analysis a month after',
  1707. description:
  1708. 'After this number of weeks, if there are several analyses during the same month, the DbCleaner keeps the most recent one and fully deletes the other ones.',
  1709. type: SettingType.INTEGER,
  1710. category: 'housekeeping',
  1711. subCategory: 'general',
  1712. defaultValue: '52',
  1713. options: [],
  1714. fields: [],
  1715. },
  1716. {
  1717. key: 'sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion',
  1718. name: 'Keep only analyses with a version event after',
  1719. description:
  1720. 'After this number of weeks, the DbCleaner keeps only analyses with a version event associated.',
  1721. type: SettingType.INTEGER,
  1722. category: 'housekeeping',
  1723. subCategory: 'general',
  1724. defaultValue: '104',
  1725. options: [],
  1726. fields: [],
  1727. },
  1728. {
  1729. key: 'sonar.dbcleaner.weeksBeforeDeletingAllSnapshots',
  1730. name: 'Delete all analyses after',
  1731. description: 'After this number of weeks, all analyses are fully deleted.',
  1732. type: SettingType.INTEGER,
  1733. category: 'housekeeping',
  1734. subCategory: 'general',
  1735. defaultValue: '260',
  1736. options: [],
  1737. fields: [],
  1738. },
  1739. {
  1740. key: 'sonar.dbcleaner.daysBeforeDeletingClosedIssues',
  1741. name: 'Delete closed issues after',
  1742. description: 'Issues that have been closed for more than this number of days will be deleted.',
  1743. type: SettingType.INTEGER,
  1744. category: 'housekeeping',
  1745. subCategory: 'general',
  1746. defaultValue: '30',
  1747. options: [],
  1748. fields: [],
  1749. },
  1750. {
  1751. key: 'sonar.dbcleaner.auditHousekeeping',
  1752. name: 'Audit Logs Housekeeping Frequency',
  1753. description:
  1754. 'Define the frequency that will be used to delete security-related audit logs.<br>Setting your housekeeping policy to keep your audit logs for a long period of time (for example, only deleting logs yearly) can increase your database size and the amount of time it takes to download audit logs.<ul><li>"Weekly" => Audit logs older than a week will be deleted</li><li>"Monthly" => Audit logs older than a month will be deleted</li><li>"Trimestrial" => Audit logs older than 3 months will be deleted</li><li>"Yearly" => Audit logs older than a year will be deleted</li></ul>',
  1755. type: SettingType.SINGLE_SELECT_LIST,
  1756. category: 'housekeeping',
  1757. subCategory: 'auditLogs',
  1758. defaultValue: 'Monthly',
  1759. options: ['Weekly', 'Monthly', 'Trimestrial', 'Yearly'],
  1760. fields: [],
  1761. },
  1762. {
  1763. key: 'sonar.html.file.suffixes',
  1764. name: 'HTML File suffixes',
  1765. description: 'List of file suffixes that will be scanned.',
  1766. category: 'HTML',
  1767. subCategory: 'HTML',
  1768. defaultValue: '.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig',
  1769. multiValues: true,
  1770. options: [],
  1771. fields: [],
  1772. deprecatedKey: 'sonar.web.file.suffixes',
  1773. },
  1774. {
  1775. key: 'sonar.jsp.file.suffixes',
  1776. name: 'JSP File suffixes',
  1777. description: 'List of JSP file suffixes that will be scanned.',
  1778. category: 'HTML',
  1779. subCategory: 'HTML',
  1780. defaultValue: '.jsp,.jspf,.jspx',
  1781. multiValues: true,
  1782. options: [],
  1783. fields: [],
  1784. },
  1785. {
  1786. key: 'sonar.coverage.jacoco.xmlReportPaths',
  1787. description:
  1788. 'Paths to JaCoCo XML coverage report files. Each path can be either absolute or relative to the project base directory. Wildcard patterns are accepted (*, ** and ?).',
  1789. category: 'JaCoCo',
  1790. subCategory: 'JaCoCo',
  1791. multiValues: true,
  1792. options: [],
  1793. fields: [],
  1794. },
  1795. {
  1796. key: 'sonar.java.file.suffixes',
  1797. name: 'File suffixes',
  1798. description: 'List of suffixes for Java files to analyze. To not filter, leave the list empty.',
  1799. category: 'java',
  1800. subCategory: 'General',
  1801. defaultValue: '.java,.jav',
  1802. multiValues: true,
  1803. options: [],
  1804. fields: [],
  1805. },
  1806. {
  1807. key: 'sonar.junit.reportPaths',
  1808. name: 'JUnit Report Paths',
  1809. description:
  1810. 'Comma-separated paths to the various directories containing the *.xml JUnit report files. Each path may be absolute or relative to the project base directory.',
  1811. category: 'java',
  1812. subCategory: 'JUnit',
  1813. multiValues: true,
  1814. options: [],
  1815. fields: [],
  1816. },
  1817. {
  1818. key: 'sonar.javascript.globals',
  1819. name: 'Global variables',
  1820. description: 'List of global variables.',
  1821. category: 'JavaScript / TypeScript',
  1822. subCategory: 'General',
  1823. defaultValue: 'angular,goog,google,OenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap',
  1824. multiValues: true,
  1825. options: [],
  1826. fields: [],
  1827. },
  1828. {
  1829. key: 'sonar.javascript.ignoreHeaderComments',
  1830. name: 'Ignore header comments',
  1831. description: 'True to not count file header comments in comment metrics.',
  1832. type: SettingType.BOOLEAN,
  1833. category: 'JavaScript / TypeScript',
  1834. subCategory: 'General',
  1835. defaultValue: 'true',
  1836. options: [],
  1837. fields: [],
  1838. },
  1839. {
  1840. key: 'sonar.javascript.environments',
  1841. name: 'JavaScript execution environments',
  1842. description:
  1843. 'List of environments names. The analyzer automatically adds global variables based on that list. Available environment names: amd, applescript, atomtest, browser, commonjs, couch, embertest, flow, greasemonkey, jasmine, jest, jquery, meteor, mocha, mongo, nashorn, node, phantomjs, prototypejs, protractor, qunit, rhino, serviceworker, shared-node-browser, shelljs, webextensions, worker, wsh, yui.',
  1844. category: 'JavaScript / TypeScript',
  1845. subCategory: 'General',
  1846. defaultValue:
  1847. 'amd,applescript,atomtest,browser,commonjs,couch,embertest,flow,greasemonkey,jasmine,jest,jquery,meteor,mocha,mongo,nashorn,node,phantomjs,prototypejs,protractor,qunit,rhino,serviceworker,shared-node-browser,shelljs,webextensions,worker,wsh,yui',
  1848. multiValues: true,
  1849. options: [],
  1850. fields: [],
  1851. },
  1852. {
  1853. key: 'sonar.javascript.file.suffixes',
  1854. name: 'JavaScript File Suffixes',
  1855. description: 'List of suffixes for files to analyze.',
  1856. category: 'JavaScript / TypeScript',
  1857. subCategory: 'General',
  1858. defaultValue: '.js,.jsx,.cjs,.mjs,.vue',
  1859. multiValues: true,
  1860. options: [],
  1861. fields: [],
  1862. },
  1863. {
  1864. key: 'sonar.javascript.lcov.reportPaths',
  1865. name: 'LCOV Files',
  1866. description: 'Paths (absolute or relative) to the files with LCOV data.',
  1867. category: 'JavaScript / TypeScript',
  1868. subCategory: 'Tests and Coverage',
  1869. multiValues: true,
  1870. options: [],
  1871. fields: [],
  1872. },
  1873. {
  1874. key: 'sonar.javascript.maxFileSize',
  1875. name: 'Maximum size of analyzed files',
  1876. description:
  1877. 'Threshold for the maximum size of analyzed files (in kilobytes). Files that are larger are excluded from the analysis.',
  1878. type: SettingType.INTEGER,
  1879. category: 'JavaScript / TypeScript',
  1880. subCategory: 'General',
  1881. defaultValue: '1000',
  1882. options: [],
  1883. fields: [],
  1884. },
  1885. {
  1886. key: 'sonar.typescript.file.suffixes',
  1887. name: 'TypeScript File Suffixes',
  1888. description: 'List of suffixes for files to analyze.',
  1889. category: 'JavaScript / TypeScript',
  1890. subCategory: 'General',
  1891. defaultValue: '.ts,.tsx,.cts,.mts',
  1892. multiValues: true,
  1893. options: [],
  1894. fields: [],
  1895. },
  1896. {
  1897. key: 'sonar.typescript.tsconfigPaths',
  1898. name: 'TypeScript tsconfig.json location',
  1899. description: 'Comma-delimited list of paths to TSConfig files. Wildcards are supported.',
  1900. category: 'JavaScript / TypeScript',
  1901. subCategory: 'TypeScript',
  1902. multiValues: true,
  1903. options: [],
  1904. fields: [],
  1905. },
  1906. {
  1907. key: 'sonar.json.file.suffixes',
  1908. name: 'File Suffixes',
  1909. description: 'List of suffixes of JSON files to be indexed.',
  1910. category: SettingType.JSON,
  1911. subCategory: 'General',
  1912. defaultValue: '.json',
  1913. multiValues: true,
  1914. options: [],
  1915. fields: [],
  1916. },
  1917. {
  1918. key: 'sonar.kotlin.file.suffixes',
  1919. name: 'File Suffixes',
  1920. description: 'List of suffixes for files to analyze.',
  1921. category: 'Kotlin',
  1922. subCategory: 'General',
  1923. defaultValue: '.kt',
  1924. multiValues: true,
  1925. options: [],
  1926. fields: [],
  1927. },
  1928. {
  1929. key: 'sonar.kubernetes.activate',
  1930. name: 'Activate Kubernetes analysis',
  1931. description: 'Activate analysis of JSON and Yaml files recognized as Kubernetes files.',
  1932. type: SettingType.BOOLEAN,
  1933. category: 'Kubernetes',
  1934. subCategory: 'General',
  1935. defaultValue: 'true',
  1936. options: [],
  1937. fields: [],
  1938. },
  1939. {
  1940. key: 'sonar.php.coverage.reportPaths',
  1941. name: 'Coverage Reports',
  1942. description:
  1943. 'List of PHPUnit code coverage report files. Each path can be either absolute or relative.',
  1944. category: 'PHP',
  1945. subCategory: 'PHPUnit',
  1946. multiValues: true,
  1947. options: [],
  1948. fields: [],
  1949. },
  1950. {
  1951. key: 'sonar.php.file.suffixes',
  1952. name: 'File Suffixes',
  1953. description: 'List of suffixes of PHP files to analyze.',
  1954. category: 'PHP',
  1955. subCategory: 'General',
  1956. defaultValue: 'php,php3,php4,php5,phtml,inc',
  1957. multiValues: true,
  1958. options: [],
  1959. fields: [],
  1960. },
  1961. {
  1962. key: 'sonar.php.exclusions',
  1963. name: 'PHP Exclusions',
  1964. description: 'List of file path patterns to be excluded from analysis of PHP files.',
  1965. category: 'PHP',
  1966. subCategory: 'General',
  1967. defaultValue: '**/vendor/**',
  1968. multiValues: true,
  1969. options: [],
  1970. fields: [],
  1971. },
  1972. {
  1973. key: 'sonar.php.tests.reportPath',
  1974. name: 'Unit Test Report',
  1975. description:
  1976. 'Path to the PHPUnit unit test execution report file. The path may be either absolute or relative to the project base directory.',
  1977. category: 'PHP',
  1978. subCategory: 'PHPUnit',
  1979. options: [],
  1980. fields: [],
  1981. },
  1982. {
  1983. key: 'sonar.pli.extralingualCharacters',
  1984. name: 'Extralingual characters',
  1985. description:
  1986. 'Extralingual characters which should be considered as valid in identifiers. No separator should be used. Example: #@$£§',
  1987. category: 'PL/I',
  1988. subCategory: 'PL/I',
  1989. defaultValue: '#@$',
  1990. options: [],
  1991. fields: [],
  1992. },
  1993. {
  1994. key: 'sonar.pli.file.suffixes',
  1995. name: 'File suffixes',
  1996. description:
  1997. 'List of suffixes for PL/I files to analyze. To not change the defaults, leave the list empty.',
  1998. category: 'PL/I',
  1999. subCategory: 'PL/I',
  2000. defaultValue: '.pli',
  2001. multiValues: true,
  2002. options: [],
  2003. fields: [],
  2004. },
  2005. {
  2006. key: 'sonar.pli.ignoreHeaderComments',
  2007. name: 'Ignore header comments',
  2008. description: "Set to 'true' to enable, or 'false' to disable.",
  2009. type: SettingType.BOOLEAN,
  2010. category: 'PL/I',
  2011. subCategory: 'PL/I',
  2012. defaultValue: 'true',
  2013. options: [],
  2014. fields: [],
  2015. },
  2016. {
  2017. key: 'sonar.pli.marginLeft',
  2018. name: 'Margin left',
  2019. description:
  2020. "The column number of the source's leftmost character, must be greater or equal to 1.",
  2021. type: SettingType.INTEGER,
  2022. category: 'PL/I',
  2023. subCategory: 'PL/I',
  2024. defaultValue: '2',
  2025. options: [],
  2026. fields: [],
  2027. },
  2028. {
  2029. key: 'sonar.pli.marginRight',
  2030. name: 'Margin right',
  2031. description:
  2032. "The column number of the source's rightmost character, must be greater or equal to the leftmost's one, or 0 to indicate an unlimited right margin.",
  2033. type: SettingType.INTEGER,
  2034. category: 'PL/I',
  2035. subCategory: 'PL/I',
  2036. defaultValue: '72',
  2037. options: [],
  2038. fields: [],
  2039. },
  2040. {
  2041. key: 'sonar.plsql.file.suffixes',
  2042. name: 'File Suffixes',
  2043. description: 'List of suffixes for files to analyze.',
  2044. category: 'PL/SQL',
  2045. subCategory: 'General',
  2046. defaultValue: 'sql,pks,pkb',
  2047. multiValues: true,
  2048. options: [],
  2049. fields: [],
  2050. deprecatedKey: 'sonar.plsql.suffixes',
  2051. },
  2052. {
  2053. key: 'sonar.plsql.ignoreHeaderComments',
  2054. name: 'Ignore Header Comments',
  2055. description:
  2056. 'If set to "true", the file headers (that are usually the same on each file: licensing information for example) are not considered as comments. Thus metrics such as "Comment lines" do not get incremented. If set to "false", those file headers are considered as comments and metrics such as "Comment lines" get incremented.',
  2057. type: SettingType.BOOLEAN,
  2058. category: 'PL/SQL',
  2059. subCategory: 'General',
  2060. defaultValue: 'false',
  2061. options: [],
  2062. fields: [],
  2063. },
  2064. {
  2065. key: 'sonar.python.file.suffixes',
  2066. name: 'File Suffixes',
  2067. description: 'List of suffixes of Python files to analyze.',
  2068. category: 'Python',
  2069. subCategory: 'General',
  2070. defaultValue: 'py',
  2071. multiValues: true,
  2072. options: [],
  2073. fields: [],
  2074. },
  2075. {
  2076. key: 'sonar.python.coverage.reportPaths',
  2077. name: 'Path to coverage report(s)',
  2078. description:
  2079. 'List of paths pointing to coverage reports. Ant patterns are accepted for relative path. The reports have to conform to the Cobertura XML format.',
  2080. category: 'Python',
  2081. subCategory: 'Tests and Coverage',
  2082. defaultValue: 'coverage-reports/*coverage-*.xml',
  2083. multiValues: true,
  2084. options: [],
  2085. fields: [],
  2086. },
  2087. {
  2088. key: 'sonar.python.coverage.reportPath',
  2089. name: 'Path to coverage report',
  2090. description:
  2091. 'DEPRECATED : Use sonar.python.coverage.reportPaths instead. Path to a coverage report. Ant patterns are accepted for relative path. The report has to conform to the Cobertura XML format.',
  2092. category: 'Python',
  2093. subCategory: 'Tests and Coverage',
  2094. options: [],
  2095. fields: [],
  2096. },
  2097. {
  2098. key: 'sonar.python.xunit.skipDetails',
  2099. name: 'Skip the details when importing the Xunit reports',
  2100. description:
  2101. 'When enabled the test execution statistics is provided only on project level. Use this mode when paths in report are not found. Disabled by default.',
  2102. type: SettingType.BOOLEAN,
  2103. category: 'Python',
  2104. subCategory: 'Tests and Coverage',
  2105. defaultValue: 'false',
  2106. options: [],
  2107. fields: [],
  2108. },
  2109. {
  2110. key: 'sonar.python.xunit.reportPath',
  2111. name: 'Path to xunit report(s)',
  2112. description:
  2113. "Path to the report of test execution, relative to project's root. Ant patterns are accepted. The reports have to conform to the junitreport XML format.",
  2114. category: 'Python',
  2115. subCategory: 'Tests and Coverage',
  2116. defaultValue: 'xunit-reports/xunit-result-*.xml',
  2117. options: [],
  2118. fields: [],
  2119. },
  2120. {
  2121. key: 'sonar.rpg.suffixes',
  2122. name: 'File Suffixes',
  2123. description: 'List of suffixes of RPG files to analyze.',
  2124. category: 'RPG',
  2125. subCategory: 'RPG',
  2126. defaultValue: '.rpg,.rpgle,.sqlrpgle,.RPG,.RPGLE,.SQLRPGLE',
  2127. multiValues: true,
  2128. options: [],
  2129. fields: [],
  2130. },
  2131. {
  2132. key: 'sonar.rpg.leftMarginWidth',
  2133. name: 'Left margin width',
  2134. description:
  2135. 'Number of characters to the left of the standard 5-character comment block. In an RPG "source physical file" this will typically be 12, but it may not be present in your files depending on your extraction process.',
  2136. type: SettingType.INTEGER,
  2137. category: 'RPG',
  2138. subCategory: 'RPG',
  2139. defaultValue: '12',
  2140. options: [],
  2141. fields: [],
  2142. },
  2143. {
  2144. key: 'sonar.ruby.file.suffixes',
  2145. name: 'File Suffixes',
  2146. description: 'List of suffixes for files to analyze.',
  2147. category: 'Ruby',
  2148. subCategory: 'General',
  2149. defaultValue: '.rb',
  2150. multiValues: true,
  2151. options: [],
  2152. fields: [],
  2153. },
  2154. {
  2155. key: 'sonar.ruby.coverage.reportPaths',
  2156. name: 'Path to coverage report(s)',
  2157. description:
  2158. 'Path to coverage report files (.resultset.json) generated by SimpleCov. The path may be absolute or relative to the project base directory.',
  2159. category: 'Ruby',
  2160. subCategory: 'Test and Coverage',
  2161. defaultValue: 'coverage/.resultset.json',
  2162. multiValues: true,
  2163. options: [],
  2164. fields: [],
  2165. },
  2166. {
  2167. key: 'sonar.ruby.exclusions',
  2168. name: 'Ruby Exclusions',
  2169. description: 'List of file path patterns to be excluded from analysis of Ruby files.',
  2170. category: 'Ruby',
  2171. subCategory: 'General',
  2172. defaultValue: '**/vendor/**',
  2173. multiValues: true,
  2174. options: [],
  2175. fields: [],
  2176. },
  2177. {
  2178. key: 'sonar.security.config.roslyn.sonaranalyzer.security.cs',
  2179. name: 'C# custom configuration',
  2180. description:
  2181. "Custom configuration of the C# SAST engine. Details on the expected JSON format can be found on the 'Security Engine Custom Configuration' documentation page.",
  2182. type: SettingType.JSON,
  2183. category: 'SAST Engine',
  2184. subCategory: 'Configuration',
  2185. options: [],
  2186. fields: [],
  2187. },
  2188. {
  2189. key: 'sonar.security.config.javasecurity',
  2190. name: 'Java custom configuration',
  2191. description:
  2192. "Custom configuration of the Java SAST engine. Details on the expected JSON format can be found on the 'Security Engine Custom Configuration' documentation page.",
  2193. type: SettingType.JSON,
  2194. category: 'SAST Engine',
  2195. subCategory: 'Configuration',
  2196. options: [],
  2197. fields: [],
  2198. },
  2199. {
  2200. key: 'sonar.security.config.phpsecurity',
  2201. name: 'PHP custom configuration',
  2202. description:
  2203. "Custom configuration of the PHP SAST engine. Details on the expected JSON format can be found on the 'Security Engine Custom Configuration' documentation page.",
  2204. type: SettingType.JSON,
  2205. category: 'SAST Engine',
  2206. subCategory: 'Configuration',
  2207. options: [],
  2208. fields: [],
  2209. },
  2210. {
  2211. key: 'sonar.security.config.pythonsecurity',
  2212. name: 'Python custom configuration',
  2213. description:
  2214. "Custom configuration of the Python SAST engine. Details on the expected JSON format can be found on the 'Security Engine Custom Configuration' documentation page.",
  2215. type: SettingType.JSON,
  2216. category: 'SAST Engine',
  2217. subCategory: 'Configuration',
  2218. options: [],
  2219. fields: [],
  2220. },
  2221. {
  2222. key: 'sonar.scala.file.suffixes',
  2223. name: 'File Suffixes',
  2224. description: 'List of suffixes for files to analyze.',
  2225. category: 'Scala',
  2226. subCategory: 'General',
  2227. defaultValue: '.scala',
  2228. multiValues: true,
  2229. options: [],
  2230. fields: [],
  2231. },
  2232. {
  2233. key: 'sonar.scala.coverage.reportPaths',
  2234. name: 'Path to Scoverage report',
  2235. description:
  2236. 'Path to Scoverage report file(s) (scoverage.xml). Usually in target\\scala-X.X\\scoverage-report',
  2237. category: 'Scala',
  2238. subCategory: 'Test and Coverage',
  2239. multiValues: true,
  2240. options: [],
  2241. fields: [],
  2242. },
  2243. {
  2244. key: 'sonar.scm.disabled',
  2245. name: 'Disable the SCM Sensor',
  2246. description: 'Disable the retrieval of blame information from Source Control Manager',
  2247. type: SettingType.BOOLEAN,
  2248. category: 'scm',
  2249. subCategory: 'scm',
  2250. defaultValue: 'false',
  2251. options: [],
  2252. fields: [],
  2253. },
  2254. {
  2255. key: 'sonar.text.excluded.file.suffixes',
  2256. name: 'Additional binary file suffixes',
  2257. description:
  2258. 'Additional list of binary file suffixes that should not be analyzed with rules targeting text files.',
  2259. category: 'Secrets',
  2260. subCategory: 'General',
  2261. multiValues: true,
  2262. options: [],
  2263. fields: [],
  2264. },
  2265. {
  2266. key: 'sonar.auth.token.max.allowed.lifetime',
  2267. name: 'Maximum allowed lifetime for token',
  2268. description:
  2269. 'Define the maximum lifetime that can be used for new tokens. Existing tokens are not impacted and may need to be manually revoked.',
  2270. type: SettingType.SINGLE_SELECT_LIST,
  2271. category: 'security',
  2272. subCategory: 'security',
  2273. defaultValue: 'No expiration',
  2274. options: ['30 days', '90 days', '1 year', 'No expiration'],
  2275. fields: [],
  2276. },
  2277. {
  2278. key: 'sonar.validateWebhooks',
  2279. name: 'Enable local webhooks validation',
  2280. description:
  2281. 'Forcing local webhooks validation prevents the creation and triggering of local webhooks<br><strong>Disabling this setting can expose the instance to security risks.</strong>',
  2282. type: SettingType.BOOLEAN,
  2283. category: 'security',
  2284. subCategory: 'security',
  2285. defaultValue: 'true',
  2286. options: [],
  2287. fields: [],
  2288. },
  2289. {
  2290. key: 'sonar.allowPermissionManagementForProjectAdmins',
  2291. name: 'Enable permission management for project administrators',
  2292. description:
  2293. "Set if users with 'Administer' role in a project should be allowed to change project permissions. By default users with 'Administer' role are allowed to change both project configuration and project permissions.",
  2294. type: SettingType.BOOLEAN,
  2295. category: 'security',
  2296. subCategory: 'security',
  2297. defaultValue: 'true',
  2298. options: [],
  2299. fields: [],
  2300. },
  2301. {
  2302. key: 'sonar.forceAuthentication',
  2303. name: 'Force user authentication',
  2304. description:
  2305. 'Forcing user authentication prevents anonymous users from accessing the SonarQube UI, or project data via the Web API. Some specific read-only Web APIs, including those required to prompt authentication, are still available anonymously.<br><strong>Disabling this setting can expose the instance to security risks.</strong>',
  2306. type: SettingType.BOOLEAN,
  2307. category: 'security',
  2308. subCategory: 'security',
  2309. defaultValue: 'true',
  2310. options: [],
  2311. fields: [],
  2312. },
  2313. {
  2314. key: 'sonar.swift.coverage.reportPath',
  2315. name: 'Code coverage report',
  2316. description:
  2317. 'DEPRECATED: Path of the coverage report generated from "llvm-cov show". This path can be either absolute or relative to the project directory.',
  2318. category: 'Swift',
  2319. subCategory: 'Swift',
  2320. options: [],
  2321. fields: [],
  2322. },
  2323. {
  2324. key: 'sonar.swift.coverage.reportPaths',
  2325. name: 'Code coverage reports',
  2326. description:
  2327. 'Paths to the coverage reports generated from "llvm-cov show". These paths can be either absolute or relative to the project directory.',
  2328. category: 'Swift',
  2329. subCategory: 'Swift',
  2330. multiValues: true,
  2331. options: [],
  2332. fields: [],
  2333. },
  2334. {
  2335. key: 'sonar.swift.file.suffixes',
  2336. name: 'File Suffixes',
  2337. description: 'List of suffixes for files to analyze.',
  2338. category: 'Swift',
  2339. subCategory: 'Swift',
  2340. defaultValue: '.swift',
  2341. multiValues: true,
  2342. options: [],
  2343. fields: [],
  2344. },
  2345. {
  2346. key: 'sonar.tsql.file.suffixes',
  2347. name: 'File Suffixes',
  2348. description: 'List of suffixes for files to analyze.',
  2349. category: 'T-SQL',
  2350. subCategory: 'General',
  2351. defaultValue: '.tsql',
  2352. multiValues: true,
  2353. options: [],
  2354. fields: [],
  2355. },
  2356. {
  2357. key: 'sonar.technicalDebt.developmentCost',
  2358. name: 'Development cost',
  2359. description:
  2360. 'Cost to develop one line of code (LOC). Example: if the cost to develop 1 LOC has been estimated at 30 minutes, then the value of this property would be 30.',
  2361. category: 'technicalDebt',
  2362. subCategory: 'technicalDebt',
  2363. defaultValue: '30',
  2364. options: [],
  2365. fields: [],
  2366. deprecatedKey: 'workUnitsBySizePoint',
  2367. },
  2368. {
  2369. key: 'languageSpecificParameters',
  2370. name: 'Language specific parameters',
  2371. description:
  2372. 'DEPRECATED - The parameters specified here for a given language will override the general parameters defined in this section.',
  2373. type: SettingType.PROPERTY_SET,
  2374. category: 'technicalDebt',
  2375. subCategory: 'technicalDebt',
  2376. options: [],
  2377. fields: [
  2378. {
  2379. key: 'language',
  2380. name: 'Language Key',
  2381. description: 'Ex: java, cs, cpp...',
  2382. options: [],
  2383. },
  2384. {
  2385. key: 'man_days',
  2386. name: 'Development cost',
  2387. description: 'If left blank, the generic value defined in this section will be used.',
  2388. type: SettingType.FLOAT,
  2389. options: [],
  2390. },
  2391. ],
  2392. deprecatedKey: 'languageSpecificParameters',
  2393. },
  2394. {
  2395. key: 'sonar.technicalDebt.ratingGrid',
  2396. name: 'Maintainability rating grid',
  2397. description:
  2398. 'Maintainability ratings range from A (very good) to E (very bad). The rating is determined by the value of the Technical Debt Ratio, which compares the technical debt on a project to the cost it would take to rewrite the code from scratch. The default values for A through D are 0.05,0.1,0.2,0.5. Anything over 0.5 is an E. Example: assuming the development cost is 30 minutes, a project with a technical debt of 24,000 minutes for 2,500 LOC will have a technical debt ratio of 24000/(30 * 2,500) = 0.32. That yields a maintainability rating of D.',
  2399. category: 'technicalDebt',
  2400. subCategory: 'technicalDebt',
  2401. defaultValue: '0.05,0.1,0.2,0.5',
  2402. options: [],
  2403. fields: [],
  2404. deprecatedKey: 'ratingGrid',
  2405. },
  2406. {
  2407. key: 'sonar.terraform.activate',
  2408. name: 'Activate Terraform Analysis',
  2409. description:
  2410. 'Disabling Terraform analysis ensures that no Terraform files are parsed, highlighted and analyzed, and no IaC analysis results are included in the quality gate.',
  2411. type: SettingType.BOOLEAN,
  2412. category: 'Terraform',
  2413. subCategory: 'General',
  2414. defaultValue: 'true',
  2415. options: [],
  2416. fields: [],
  2417. },
  2418. {
  2419. key: 'sonar.terraform.file.suffixes',
  2420. name: 'File Suffixes',
  2421. description: 'List of suffixes of Terraform files to analyze.',
  2422. category: 'Terraform',
  2423. subCategory: 'General',
  2424. defaultValue: '.tf',
  2425. multiValues: true,
  2426. options: [],
  2427. fields: [],
  2428. },
  2429. {
  2430. key: 'sonar.terraform.provider.aws.version',
  2431. name: 'AWS Provider Version',
  2432. description:
  2433. 'Version of the AWS provider of lifecycle management of AWS resources. Use semantic versioning format like `3.4`, `4.17.1` or `4`',
  2434. category: 'Terraform',
  2435. subCategory: 'Provider Versions',
  2436. options: [],
  2437. fields: [],
  2438. },
  2439. {
  2440. key: 'sonar.terraform.provider.azure.version',
  2441. name: 'Azure Provider Version',
  2442. description:
  2443. 'Version of the Azure Resource Manager provider of lifecycle management of Microsoft Azure resources. Use semantic versioning format like `3.4`, `4.17.1` or `4`',
  2444. category: 'Terraform',
  2445. subCategory: 'Provider Versions',
  2446. options: [],
  2447. fields: [],
  2448. },
  2449. {
  2450. key: 'sonar.vbnet.analyzeGeneratedCode',
  2451. name: 'Analyze generated code',
  2452. description:
  2453. 'If set to "true", the files containing generated code are analyzed. If set to "false", the files containing generated code are ignored.',
  2454. type: SettingType.BOOLEAN,
  2455. category: 'VB.NET',
  2456. subCategory: 'VB.NET',
  2457. defaultValue: 'false',
  2458. options: [],
  2459. fields: [],
  2460. },
  2461. {
  2462. key: 'sonar.vbnet.file.suffixes',
  2463. name: 'File suffixes',
  2464. description: 'List of suffixes for files to analyze.',
  2465. category: 'VB.NET',
  2466. subCategory: 'VB.NET',
  2467. defaultValue: '.vb',
  2468. multiValues: true,
  2469. options: [],
  2470. fields: [],
  2471. },
  2472. {
  2473. key: 'sonar.vbnet.ignoreHeaderComments',
  2474. name: 'Ignore header comments',
  2475. description:
  2476. 'If set to "true", the file headers (that are usually the same on each file: licensing information for example) are not considered as comments. Thus metrics such as "Comment lines" do not get incremented. If set to "false", those file headers are considered as comments and metrics such as "Comment lines" get incremented.',
  2477. type: SettingType.BOOLEAN,
  2478. category: 'VB.NET',
  2479. subCategory: 'VB.NET',
  2480. defaultValue: 'true',
  2481. options: [],
  2482. fields: [],
  2483. },
  2484. {
  2485. key: 'sonar.vb.file.suffixes',
  2486. name: 'File Suffixes',
  2487. description:
  2488. 'List of suffixes for Visual Basic files to analyze. To not change the defaults, leave the list empty.',
  2489. category: 'Visual Basic',
  2490. subCategory: 'Visual Basic',
  2491. defaultValue: '.bas,.frm,.cls,.ctl,.BAS,.FRM,.CLS,.CTL',
  2492. multiValues: true,
  2493. options: [],
  2494. fields: [],
  2495. },
  2496. {
  2497. key: 'sonar.vb.ignoreHeaderComments',
  2498. name: 'Ignore header comments',
  2499. description: "Set to 'true' to enable, or 'false' to disable.",
  2500. type: SettingType.BOOLEAN,
  2501. category: 'Visual Basic',
  2502. subCategory: 'Visual Basic',
  2503. defaultValue: 'true',
  2504. options: [],
  2505. fields: [],
  2506. },
  2507. {
  2508. key: 'sonar.xml.file.suffixes',
  2509. name: 'File suffixes',
  2510. description: 'List of suffixes for XML files to analyze.',
  2511. category: 'XML',
  2512. subCategory: 'XML',
  2513. defaultValue: '.xml,.xsd,.xsl',
  2514. multiValues: true,
  2515. options: [],
  2516. fields: [],
  2517. },
  2518. {
  2519. key: 'sonar.yaml.file.suffixes',
  2520. name: 'File Suffixes',
  2521. description: 'List of suffixes of YAML files to be indexed.',
  2522. category: 'YAML',
  2523. subCategory: 'General',
  2524. defaultValue: '.yaml,.yml',
  2525. multiValues: true,
  2526. options: [],
  2527. fields: [],
  2528. },
  2529. ];