swi_config_sample.xml 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Software Index, Copyright 2010, Software Index Project Team
  4. Link: http://swi.sourceforge.net
  5. This file is part of Software Index Tool.
  6. Software Index is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, version 3 of the License.
  9. Software Index is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Software Index. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <!--
  17. Configuration file is formed in XML format.
  18. Use this file as a 'configration file description' and
  19. create new configs using this file as a baseline.
  20. Comments below provides with the description for all options.
  21. Commented XML sections make patterns for your specific extensions.
  22. Some of them demostrates usage examples.
  23. -->
  24. <!-- Root node 'swi:configuration' is mandatory. It's name is hardcoded. -->
  25. <swi:configuration>
  26. <!-- Section 'swi:info' is used for descriptive purposes. -->
  27. <swi:info>
  28. <!--
  29. Option 'swi:version' should be equal to 1.
  30. It is reserved for further extensions.
  31. -->
  32. <swi:version>1</swi:version>
  33. <!--
  34. Option 'swi:project/swi:name' is used in the final report.
  35. All objects are references in the following format:
  36. YOUR_PROJECT_NAME/YOUR_MODULE_NAME/FILE/FUNCTION_NAME
  37. Changes in this sections automatically reflected in the report.
  38. -->
  39. <swi:project>
  40. <!-- Modify this option in order to refer to the actual name of your solution -->
  41. <swi:name>YOUR_PROJECT_NAME</swi:name>
  42. </swi:project>
  43. <!--
  44. This section for tracing purposes.
  45. If you workflow assumes history records in project files,
  46. this is the place to keep your records
  47. The section is optional.
  48. -->
  49. <swi:history>
  50. <!-- Section 'swi:revision' can be repeated several times -->
  51. <swi:revision>
  52. <swi:name>ALFA</swi:name>
  53. <swi:user>USER</swi:user>
  54. <swi:comment>Sample configuration with the description created</swi:comment>
  55. </swi:revision>
  56. <!--
  57. Add here the next 'swi:revision' section, for example:
  58. <swi:revision>
  59. <swi:name>BETA</swi:name>
  60. <swi:user>USER</swi:user>
  61. <swi:comment>Description of the next update</swi:comment>
  62. </swi:revision>
  63. -->
  64. </swi:history>
  65. </swi:info>
  66. <!--
  67. The 'swi:general' section configures global settings for the tool.
  68. The section is optional.
  69. -->
  70. <swi:general>
  71. <!--
  72. Filtering of the debug information
  73. The section is optional.
  74. -->
  75. <swi:debug>
  76. <!--
  77. The 'swi:enabled' option activates/deativates the tracing:
  78. Possible values are 'on' and 'off'
  79. By default, the debug is not enabled.
  80. -->
  81. <swi:enabled>off</swi:enabled>
  82. </swi:debug>
  83. </swi:general>
  84. <!-- Section 'swi:modules' define where to get sources and how to process them. -->
  85. <swi:modules>
  86. <!-- Section 'swi:module' can be repeated several times -->
  87. <swi:module>
  88. <!--
  89. Option 'swi:name' is used in the final report.
  90. All objects are references in the following format:
  91. YOUR_PROJECT_NAME/YOUR_MODULE_NAME/FILE/FUNCTION_NAME
  92. Changes in this sections automatically reflected in the report.
  93. Modify this option in order to refer to the actual name of your module
  94. -->
  95. <swi:name>YOUR_MODULE_NAME</swi:name>
  96. <!--
  97. This is a full path to the directory where module's source files are stored
  98. It can be relative or full path (recommended).
  99. If it is relative path, you need to run Software Index tool from the relatively correct folder.
  100. -->
  101. <swi:location>/path/to/my/module</swi:location>
  102. <!--
  103. Section 'swi:files' which files to process and which to miss.
  104. The section is optional.
  105. -->
  106. <swi:files>
  107. <!--
  108. This option is a regular expression.
  109. If file name (in module's location) is mathced by this expression,
  110. it is included to the list for processing.
  111. Otherwise, it is missed and not touched by Software Index tool.
  112. The example below matches files with the following extensions:
  113. .c, .h, .cpp, .hpp
  114. By default, all files are included.
  115. -->
  116. <swi:include>^.*[.][chCH]([pP][pP])?$</swi:include>
  117. <!--
  118. This option is a regular expression.
  119. If file name (in module's location) is mathced by this expression,
  120. it is excluded from the list for processing
  121. (even if it was previously mathced by the previous option).
  122. The example below matches files with the following extensions:
  123. .gz.c, .gz.h, .gz.cpp, .gz.hpp
  124. By default, no files are excluded.
  125. -->
  126. <swi:exclude>^.*[.][gG][zZ][.][chCH]([pP][pP])?$</swi:exclude>
  127. </swi:files>
  128. <!--
  129. The Software Index does not parse 'preprocessor' statements, like a C/C++ compiler.
  130. It just removes lines with preprocessor defines, includes, conditions and so on.
  131. As a result a code may include unfolded preprocessor strings
  132. which are normally replaced/removed by a compiler.
  133. For example, the initial code
  134. line 1: #define MAXIMUM_NUMBER (100)
  135. line 2: #ifdef DEBUG
  136. line 3: if (currentNumber < MAXIMUM_NUMBER) {
  137. line 4: printf("New overflow detected: %d\n", currentNumber);
  138. line 5: count++;
  139. line 6: }
  140. line 7: #else
  141. line 8: if (currentNumber < MAXIMUM_NUMBER) {
  142. line 9: count++;
  143. line 10: }
  144. line 11: #endif
  145. is converted to:
  146. line 1:
  147. line 2:
  148. line 3: if (currentNumber < MAXIMUM_NUMBER) {
  149. line 4: printf("New overflow detected: %d\n", currentNumber);
  150. line 5: count++;
  151. line 6: }
  152. line 7:
  153. line 8: if (currentNumber < MAXIMUM_NUMBER) {
  154. line 9: count++;
  155. line 10: }
  156. line 11:
  157. In the last example, the final code is parsable.
  158. If all your preprocessor statements are in the similar style and does not
  159. corrupt the structure of block start/end delimeters as in the example above,
  160. you do not need to bother about preprocessor stuff.
  161. However, if the initial code includes lines like these:
  162. line 1: #define MAXIMUM_NUMBER (100)
  163. line 2: if (currentNumber < MAXIMUM_NUMBER) {
  164. line 3: #ifdef DEBUG
  165. line 4: printf("New overflow detected: %d\n", currentNumber);
  166. line 5: count++;
  167. line 6: }
  168. line 7: #else
  169. line 8: count++;
  170. line 9: }
  171. line 10: #endif
  172. it is not parsable, because brackets mismatch is detected after preprocessing
  173. (see lines 6 and 9 below):
  174. line 1:
  175. line 2: if (currentNumber < MAXIMUM_NUMBER) {
  176. line 3:
  177. line 4: printf("New overflow detected: %d\n", currentNumber);
  178. line 5: count++;
  179. line 6: }
  180. line 7:
  181. line 8: count++;
  182. line 9: }
  183. line 10:
  184. Thus, in order to use Software Index tool it is necessary to refactor places,
  185. like in the example above.
  186. The section 'swi:preprocessor' is useful in other cases.
  187. For example, if the initial code includes the following lines:
  188. line 1: #define DECLARE_HANDLER(handlerName) \
  189. line 2: int handlerName(unsigned int stateId, \
  190. line 3: unsigned int eventId, \
  191. line 4: struct EVENT_DATA_TYPE eventData)
  192. line 5:
  193. line 6: DECLARE_HANDLER(leftButtonClick);
  194. line 7: DECLARE_HANDLER(rightButtonClick);
  195. line 8:
  196. line 9: DECLARE_HANDLER(leftButtonClick)
  197. line 10: {
  198. line 11: /* This function is called when left mouse button is clicked */
  199. line 12: ...
  200. line 13: }
  201. line 14:
  202. line 15: DECLARE_HANDLER(rightButtonClick)
  203. line 16: {
  204. line 17: /* This function is called when right mouse button is clicked */
  205. line 18: ...
  206. line 19: }
  207. line 20:
  208. Software Index tool detects function DECLARE_HANDLER twice. As a result, they will be named:
  209. 'DECLARE_HANDLER' and 'DECLARE_HANDLER (2)' accordingly.
  210. The better solution is to preprocess these strings using the preprocessor feature.
  211. For this particular example, it is recommended to define the rule which replaces the string:
  212. lines 6,7,9,15: DECLARE_HANDLER(_xxx_)
  213. by
  214. lines 6,7,9,15: int _xxx_(unsigned int stateId, unsigned int eventId, struct EVENT_DATA_TYPE eventData)
  215. where
  216. _xxx_ is the actual function name.
  217. In other words, the 'swi:preprocessor' section should include the following XML tags:
  218. <swi:rule>
  219. <swi:filepattern>your_regexp_file_pattern</swi:filepattern>
  220. <swi:searchpattern>([^_a-zA-Z0-9])DECLARE_HANDLER\(([^_a-zA-Z0-9])\)</swi:searchpattern>
  221. <swi:replacepattern>${1}int ${2}(unsigned int stateId, unsigned int eventId, struct EVENT_DATA_TYPE eventData)</swi:replacepattern>
  222. </swi:rule>
  223. As a result, the functions will be detected with the correct names:
  224. 'leftButtonClick' and 'rightButtonClick' accordingly.
  225. 'swi:preprocessor' section is optional.
  226. -->
  227. <swi:preprocessor>
  228. <!-- Section 'swi:rule' is optional or can be repeated several times -->
  229. <swi:rule>
  230. <!--
  231. This option is a regular expression.
  232. If name of file which is under processing is mathced by this expression,
  233. it is preprocessed according to the rule definitions.
  234. Otherwise, it is missed and not touched by the internal preprocessor tool.
  235. The example below matches files with the following extensions:
  236. .h, .hpp
  237. -->
  238. <swi:filepattern>^.*[.][hH]([pP][pP])?$</swi:filepattern>
  239. <!--
  240. Options 'swi:searchpattern' and 'swi:replacepattern' are regular expressions.
  241. Preprocessor searches the code by the 'swi:searchpattern' pattern.
  242. If it is found it is replaced by 'swi:replacepattern' string,
  243. which is interpolated before: variables ${1}, ${2}, ... are replaced by actual strings
  244. from 'swi:searchpattern' regexp hooks.
  245. -->
  246. <swi:searchpattern>([^_a-zA-Z0-9])DECLARE_HANDLER\(([_a-zA-Z0-9]+)\)</swi:searchpattern>
  247. <swi:replacepattern>${1}int ${2}(unsigned int stateId, unsigned int eventId, struct EVENT_DATA_TYPE eventData)</swi:replacepattern>
  248. </swi:rule>
  249. <!--
  250. Add here the next 'swi:rule' section, for example:
  251. <swi:rule>
  252. <swi:filepattern>.*</swi:filepattern>
  253. <swi:searchpattern>(\s+)(union\s*)({)</swi:searchpattern>
  254. <swi:replacepattern>$1$2 _noname_ $3</swi:replacepattern>
  255. </swi:rule>
  256. -->
  257. </swi:preprocessor>
  258. <!--
  259. Scaner tool is used for global searching and violation reporting.
  260. If the scaner finds something, it reports the message which is also configured
  261. and increases the exit code from the Software Index Tool.
  262. For example, if you codding style requires to open the block begging from the new line:
  263. line 1:
  264. line 2: if (currentNumber < MAXIMUM_NUMBER)
  265. line 3: {
  266. line 4: count++;
  267. line 5: }
  268. line 6:
  269. it is possible to check it by scaner defining the 'swi:searchpattern' in the following way:
  270. [\n][^{][{]
  271. This regular expression matches the code which is 'badly' formated:
  272. line 1:
  273. line 2: if (currentNumber < MAXIMUM_NUMBER) {
  274. line 3: count++;
  275. line 4: }
  276. line 5:
  277. More examples. If you codding style does not allow to have noname structures, enums or unions:
  278. line 1:
  279. line 2: typedef struct _NAME_HERE_IS_MANDATORY_
  280. line 3: {
  281. line 4: int a;
  282. line 5: } my_type;
  283. line 6:
  284. it is possible to check it by scaner defining the 'swi:searchpattern' in the following way:
  285. (\s+)((union)|(enum)|(struct))(\s*{)
  286. This regular expression matches the code which is 'wrongly' written:
  287. line 1:
  288. line 2: typedef struct // noname here
  289. line 3: {
  290. line 4: int a;
  291. line 5: } my_type;
  292. line 6:
  293. And if the 'swi:messagepattern' equals to:
  294. Noname '$2' detected.
  295. the error report looks like this:
  296. file.c:2: warning: Noname 'struct' detected.
  297. 'swi:scaner' section is optional.
  298. -->
  299. <swi:scanner>
  300. <!-- Section 'swi:rule' can be missed or repeated several times -->
  301. <swi:rule>
  302. <!--
  303. This option is a regular expression.
  304. If name of file which is under processing is mathced by this expression,
  305. it is scaned according to the rule definitions.
  306. Otherwise, it is missed and not touched by the internal scaner tool.
  307. The example below matches all files.
  308. -->
  309. <swi:filepattern>.*</swi:filepattern>
  310. <!--
  311. Options 'swi:searchpattern' and 'swi:messagepattern' are regular expressions.
  312. Scaner searches the code by the 'swi:searchpattern' pattern.
  313. If it is found the 'swi:messagepattern' string is printed to STDERR,
  314. 'swi:messagepattern' string is interpolated: variables ${1}, ${2}, ... are replaced by actual strings
  315. from 'swi:searchpattern' regexp hooks.
  316. -->
  317. <swi:searchpattern>(\s+)((union)|(enum)|(struct))(\s*{)</swi:searchpattern>
  318. <swi:messagepattern>Noname '$2' detected.</swi:messagepattern>
  319. <!--
  320. The 'swi:codecontent' option defines the content for scanner, it can be:
  321. initial - the initial source content
  322. code - the initial code (without comments)
  323. comments - comments only (no code)
  324. nopreprocessor - preprocessor strings excluded (without comments and preprocessor)
  325. nostrings - strings excluded (without comments and strings)
  326. purified - strings and preprocessor excluded (without comments, strings and preprocessor)
  327. commentheader - comments before function's header
  328. functionname - name of a function
  329. functionhead - purified function's header, no body
  330. functionbody - purified function's body, no header
  331. By default, the 'purified' code is scanned
  332. -->
  333. <swi:codecontent>purified</swi:codecontent>
  334. </swi:rule>
  335. <!--
  336. Add here the next 'swi:rule' section, for example:
  337. <swi:rule>
  338. <swi:filepattern>.*</swi:filepattern>
  339. <swi:searchpattern>#define\s*([_a-zA-Z0-9]+)\s*[\(]?([0-9]+)[\)]?</swi:searchpattern>
  340. <swi:messagepattern>Define '${1}' of the number '${2}'
  341. should be replaced by 'static const int ${1} = ${2};'</swi:messagepattern>
  342. <swi:codecontent>nostrings</swi:codecontent>
  343. </swi:rule>
  344. -->
  345. <!--
  346. If some finding is acceptable and should not be considered as a violation
  347. it is possible to define the exception and suppress the notification
  348. in the 'swi:suppress' section below.
  349. -->
  350. <swi:suppress>
  351. <!--
  352. The exception should be defined in combination with 'swi:message' option.
  353. If a scanner's message is matched by the regular expression 'swi:message'
  354. and the object is matched by the regular expression in 'swi:pattern' tag,
  355. the finding is ignored and not printed to the log and stderr streams.
  356. For example, the following pattern blocks the notification:
  357. 'Noname 'enum' detected.'
  358. for the object:
  359. YOUR_PROJECT_NAME/YOUR_MODULE_NAME/your_file.c/yourFunction
  360. -->
  361. <swi:pattern swi:message="Noname 'enum' detected.">^YOUR_PROJECT_NAME/YOUR_MODULE_NAME/your_file.c/yourFunction$</swi:pattern>
  362. <!--
  363. Add here the next 'swi:pattern' section, for example:
  364. <swi:pattern swi:message="Noname 'struct' detected.">^.*/.*/file2.c/function2$</swi:pattern>
  365. -->
  366. </swi:suppress>
  367. </swi:scanner>
  368. <!--
  369. Indexer measures common software statistics per functions, files, modules and project.
  370. They are:
  371. STATICTIC-GROUP / STATISTIC-NAME - DESCRIPTION
  372. =============== / ================== - ============================
  373. swi:length / swi:source - total number of symbols
  374. swi:length / swi:blank - number of space symbols
  375. swi:length / swi:executable - number of executable symbols
  376. swi:length / swi:comment - number of symbols inside comments
  377. swi:length / swi:function:name - number of symbols in name of a function
  378. swi:lines / swi:comment:header - number of lines in a comment before a function/file
  379. swi:lines / swi:source - total number of lines
  380. swi:lines / swi:blank - number of empty lines
  381. swi:lines / swi:executable - number of executable lines
  382. swi:lines / swi:comment - number of lines with comments
  383. swi:complexity / swi:blocks - number of blocks
  384. swi:complexity / swi:cyclomatic - McCabe's (Myer's) Cyclomatic complexity metric
  385. swi:complexity / swi:maxdepth - Maximum indent level
  386. swi:count / swi:functions - Number of functions
  387. swi:count / swi:files - Number of files
  388. swi:count / swi:modules - Number of modules
  389. swi:checksum / swi:source - Checksum for the source code (compare purposes)
  390. Every statistic is reported incombination with the following types:
  391. STATICTIC-TYPE - DESCRIPTION
  392. =============== - ============================
  393. swi:exact - exact value
  394. swi:average - average value within a distribution
  395. swi:min - minimum value within a distribution
  396. swi:max - maximum value within a distribution
  397. swi:total - sum of values within a distribution
  398. Cumulative types (swi:average, swi:min, swi:max and swi:total) are reported if they are applicable.
  399. 'swi:indexer:common' section is optional.
  400. -->
  401. <swi:indexer:common>
  402. <!-- No settings currently available -->
  403. </swi:indexer:common>
  404. <!--
  405. Duplication indexer searches for identical code fragments, calculates total number of symbols
  406. in continues duplicated fragments per function, file, module and project.
  407. Note: blank symbols (spaces, tabulations, newlines) are ignored when strings are compared.
  408. The duplciation statistic is reported by reference 'swi:duplication/swi:symbols':
  409. STATICTIC-GROUP / STATISTIC-NAME - DESCRIPTION
  410. =============== / ================== - ============================
  411. swi:duplication / swi:symbols - Number of duplicated symbols
  412. The statistic is reported incombination with the following types:
  413. STATICTIC-TYPE - DESCRIPTION
  414. =============== - ============================
  415. swi:exact - exact value
  416. swi:average - average value within a distribution
  417. swi:min - minimum value within a distribution
  418. swi:max - maximum value within a distribution
  419. swi:total - sum of values within a distribution
  420. Cumulative types (swi:average, swi:min, swi:max and swi:total) are reported if they are applicable.
  421. This internal tool also collects pointers to duplicated fragments and prints them.
  422. Also, they can be easily extracted from the final report for other needs.
  423. 'swi:indexer:dup' section is optional.
  424. -->
  425. <swi:indexer:dup>
  426. <!--
  427. The 'swi:codecontent' option defines the content for the duplicatiion searcher, it can be:
  428. initial - the initial source content
  429. code - the initial code (without comments)
  430. comments - comments only (no code)
  431. nopreprocessor - preprocessor strings excluded (without comments and preprocessor)
  432. nostrings - strings excluded (without comments and strings)
  433. purified - strings and preprocessor excluded (without comments, strings and preprocessor)
  434. commentheader - comments before function's header
  435. functionname - name of a function
  436. functionhead - purified function's header, no body
  437. functionbody - purified function's body, no header
  438. By default, the 'purified' content is used.
  439. Recomendation: if Software Index tool detects a log of duplicated fragments
  440. which are within function's header (declarations), usually it is the case when
  441. where are overloaded functions with a huge list of arguments, it is recommended
  442. to set 'swi:codecontent' option to 'functionbody' value.
  443. -->
  444. <swi:codecontent>purified</swi:codecontent>
  445. <!--
  446. The 'swi:enabled' option activates/deativates the calculation of the duplication index:
  447. on - the search tool is launched and the statistic is calculated
  448. off - the search tool is not started, the statistic is reported by zeros
  449. By default, the this feature is enabled
  450. -->
  451. <swi:enabled>on</swi:enabled>
  452. <!--
  453. The 'swi:minlength' option defines the minimal length of the duplicated fragment.
  454. In other words, if the duplicated fragment is found it is at least 'swi:minlength' in length
  455. Too small value, for example 10, results in excessive growth of the total duplication index
  456. Too large value may cause the empty search result.
  457. By default, it is equal to 100.
  458. -->
  459. <swi:minlength>100</swi:minlength>
  460. <!--
  461. The 'swi:proximity' option allows to report two code fragments as duplicated
  462. even if they are not matched exactly till the end.
  463. It helps to search 'almost' duplicated code fragments instead of 'exactly' duplicated.
  464. This option is a value from 1 till 100.
  465. For example, if there is found group of duplicated code fragments
  466. which are 100 symbols in length and 'swi:proximity' is equal to 80,
  467. this group will be extended by other found code fragments
  468. which have 80 or more the same symbols.
  469. By default, it is equal to 100.
  470. -->
  471. <swi:proximity>100</swi:proximity>
  472. <!--
  473. All code fragments are related to some function.
  474. Except global defines, declarations, class definitions and so on.
  475. Software Index attaches global code to the 'dummy' function with name '>>>GLOBAL<<<'.
  476. The 'swi:globalcode' configures whether the global code should be included
  477. to the scope of search for duplication.
  478. on - global code is scaned for duplication
  479. off - global code is missed
  480. By default, the this option is 'off'.
  481. -->
  482. <swi:globalcode>on</swi:globalcode>
  483. </swi:indexer:dup>
  484. <!--
  485. gcc/g++ compilers in combination with gcov tool are able to report
  486. statement and branch coverage information and statistics.
  487. Software Index has a bridge to this information which is configured
  488. in the 'swi:indexer:gcov' section below.
  489. Note: the feature works only if 'gcov' is visible in PATH environment.
  490. The short summary about possible coverage metrics:
  491. * Function coverage
  492. Has each function in the program been executed?
  493. * Statement coverage
  494. Has each line of the source code been executed?
  495. If at least one statement is executed, 'Function coverage' metric
  496. is equal to 100% (i.e. a function is executed at least once)
  497. * Decision coverage
  498. Has each control structure (such as an if statement) evaluated both to true
  499. and false?
  500. * Condition coverage
  501. Has each boolean sub-expression evaluated both to true and false?
  502. More 'strict' metric than 'Decision coverage'.
  503. * Modified Condition/Decision Coverage (MC/DC)
  504. Has every condition in a decision taken on all possible outcomes at least
  505. once? Has each condition been shown to affect that decision outcome
  506. independently?
  507. * Path coverage
  508. Has every possible route through a given part of the code been executed?
  509. * Entry/exit coverage
  510. Has every possible call and return of the function been executed?
  511. The coverage statistic is reported by the following indexes:
  512. STATICTIC-GROUP / STATISTIC-NAME - DESCRIPTION (*)
  513. =============== / ================== - ============================
  514. swi:coverage / swi:gsum:lines - Total number of executable lines/statements
  515. (from point of compiler view)
  516. swi:coverage / swi:gsum:branches - Total number of branches
  517. swi:coverage / swi:gsum:calls - Total number of calls
  518. swi:coverage / swi:gcov:lines - Number of executed lines
  519. (the same as 'Statement coverage' metric in the list above)
  520. swi:coverage / swi:gcov:branches - Number of exected branches
  521. (no analogue in the list of coverage metrics above;
  522. incremented by 2 for a boolean condition (2 branches)
  523. if a condition is evaluated at least once
  524. and resulted either in true OR in false)
  525. swi:coverage / swi:gcov:takenonce - Number of branches executed at least once
  526. (the same as 'Condition coverage' metric in the list above;
  527. a boolean condition (2 branches) is totaly covered
  528. if a boolean sub-expression evaluated both
  529. to true and false at least once)
  530. swi:coverage / swi:gcov:calls - Number of exectuted calls
  531. (the same as 'Entry/exit coverage' metric in the list above)
  532. (*) For more details about reported numbers see the documentation for 'gcov' tool.
  533. The statistic is reported incombination with the following types:
  534. STATICTIC-TYPE - DESCRIPTION
  535. =============== - ============================
  536. swi:exact - exact value
  537. swi:average - average value within a distribution
  538. swi:min - minimum value within a distribution
  539. swi:max - maximum value within a distribution
  540. swi:total - sum of values within a distribution
  541. Cumulative types (swi:average, swi:min, swi:max and swi:total) are reported if they are applicable.
  542. 'swi:indexer:gcov' section is optional.
  543. If it is missed coverage statistic is not collected.
  544. -->
  545. <swi:indexer:gcov>
  546. <!--
  547. The 'swi:enabled' option activates/deativates the collection of coverage statistic:
  548. on - active
  549. off - inactive, coverage statistic is not collected and not reported
  550. By default, the this is not enabled
  551. -->
  552. <swi:enabled>on</swi:enabled>
  553. <!--
  554. This option is a regular expression.
  555. If name of file which is under processing is mathced by this expression,
  556. coverage statistic is retrieved for this file.
  557. Otherwise, coverage statistic is not reported.
  558. By default, all files are affected.
  559. -->
  560. <swi:filepattern>^.*[.][cC][pP]?[pP]?$</swi:filepattern>
  561. <!--
  562. The coverage statistic is avaialble in 'gcda' files.
  563. gcov tool reads these files and reports the information.
  564. Every source file, if it is touched by gcov, has
  565. corresponding gcda file.
  566. For example, if the initial source file is 'file.c' and
  567. the compiled binary file is 'file.o', the
  568. corresponding 'gcda' file with coverage data is 'file.gcda'
  569. Two options below define how to map
  570. the initial source file to the file with coverage data.
  571. 'swi:sourcefile' is a regular expression. It is applied to name of a file.
  572. This operation gives variables ${1}, ${2}, ... according
  573. to regexp hooks.
  574. 'swi:gcdafile' constructs the corresponding 'gcda' file.
  575. The example below demostrates the case of mapping:
  576. from 'file.c' to 'file.gcda'
  577. from 'otehrfile.c' to 'otherfile.gcda'
  578. and so on...
  579. If the 'gcda' file is not found, coverage statistic is not collected and not reported.
  580. The example below demonstrates the default mapping scheme if options are missed.
  581. -->
  582. <swi:sourcefile>(.*)[.][cC][pP]?[pP]?</swi:sourcefile>
  583. <swi:gcdafile>${1}.gcda</swi:gcdafile>
  584. </swi:indexer:gcov>
  585. </swi:module>
  586. <!--
  587. Add here the next 'swi:module' section.
  588. -->
  589. </swi:modules>
  590. <!--
  591. The 'swi:report' section defines the location for reports and output settings.
  592. -->
  593. <swi:report>
  594. <!--
  595. This is a full path to the directory where report files should be stored
  596. It can be relative or full path (recommended).
  597. If it is relative path, you need to run Software Index tool from the relatively correct folder.
  598. -->
  599. <swi:destination>/path/to/the/destination/folder</swi:destination>
  600. <!--
  601. The main report is generated to XML format.
  602. Other files are created from the XML file by converters.
  603. -->
  604. <swi:xml>
  605. <!-- Name of final XML file in 'swi:destination' directory. -->
  606. <swi:name>swi_report_sample.xml</swi:name>
  607. <!--
  608. Software Index process software modules independantly from their versions.
  609. However, if it is executed with a reference to a report generated by
  610. Software Index tool for the baseline versions of your modules
  611. (baseline version - previous version of the product, the state of product
  612. before the time when changes and updates and/or additions applied)
  613. it has additional information and can report the modification status
  614. for every statistic (increased/decreased) and for every
  615. function, file and module (added, removed, modified, cloned or unmodified).
  616. Description of modification statuses:
  617. added - there was no object in the baseline version
  618. and it was added to the current version
  619. removed - there was object in the baseline version
  620. and it was removed from the current version
  621. modified - there was object in the baseline version
  622. and it was changed/updated
  623. cloned - there was object in the baseline version,
  624. it was not changed/updated in the new version,
  625. but duplication index (swi:duplication/swi:executable)
  626. was decreased or increased
  627. unmodified - the object was now touched
  628. In addition to the extra info, it helps to filter the output information.
  629. For example, it is possible to print limit overheads for added and
  630. modified functions only (missing analogues messages for untouched objects).
  631. As a result, Software Index tool can be deployed to the software development
  632. process without extra work and remakes in your old sources.
  633. You can always start to measure/control the characteristics of
  634. objectes (functions) which are affected by your recent updates only,
  635. improving the total quality step-by-step (version-by-version).
  636. See 'Example 1' in the next section for examples.
  637. The 'swi:baseline' option points out to the report for the baseline version.
  638. It should be stored in 'swi:destination' directory.
  639. If it is not defined,
  640. it is considered that all objects (functions, files and so on) were added.
  641. -->
  642. <swi:baseline>swi_report_sample.xml</swi:baseline>
  643. </swi:xml>
  644. <!--
  645. Notifications are prinited to file and to stderr stream.
  646. They highlight exceeded limitations of indexes/statistics
  647. and other notices, warnings and errors.
  648. -->
  649. <swi:notifications>
  650. <!-- Name of log file in 'swi:destination' directory. -->
  651. <swi:name>swi_report_sample.log</swi:name>
  652. <!--
  653. Flags in XML sub-tags in 'swi:error' section
  654. activate/deactivate counter of errors/notifications.
  655. If the object with the corresponding modification status
  656. has some notification (exceeded limit, for example),
  657. the error counter is increased.
  658. The final value of the error counter is returned
  659. to the operation system as exit code.
  660. Thus, if there are no notifications/errors, exit code is zero.
  661. Options should be equal to some value from the list below:
  662. on - counter is increased (selected by default for all)
  663. off - counter is not increased
  664. Example 1: 'easy deployment of the tool'
  665. added - 'on'
  666. removed - 'on' or 'off'
  667. modified - 'on'
  668. cloned - 'on' or 'off'
  669. unmodified - 'off'
  670. Example 2: 'global control'
  671. added - 'on'
  672. removed - 'on'
  673. modified - 'on'
  674. cloned - 'on'
  675. unmodified - 'on'
  676. Example 3: 'always success (zero exit code)'
  677. added - 'off'
  678. removed - 'off'
  679. modified - 'off'
  680. cloned - 'off'
  681. unmodified - 'off'
  682. 'swi:error' section is optional.
  683. -->
  684. <swi:error>
  685. <swi:added>on</swi:added>
  686. <swi:removed>on</swi:removed>
  687. <swi:modified>on</swi:modified>
  688. <swi:cloned>on</swi:cloned>
  689. <swi:unmodified>on</swi:unmodified>
  690. </swi:error>
  691. <!--
  692. The 'swi:print' section defines which messages should be printed
  693. to the log and to stderr stream. By analogy with the previous
  694. configuration section, the flags are defined per modification status.
  695. There are 4 types of messages which are configred by
  696. 'swi:failures', 'swi:modifications', 'swi:duplications' and 'swi:scanmessages' options.
  697. (*) 'swi:failures' - notifications about broken limits
  698. (see 'swi:limits' section below)
  699. By default, these messages are activated
  700. 'swi:modifications' - notes about added/modified/cloned/removed objects
  701. (see 'swi:xml/swi:baseline' option above
  702. By default, these messages are activated
  703. (**) 'swi:duplications' - pointers to the duplicated regions in files
  704. (see 'swi:indexer:dup' sections above)
  705. (!) By default, these messages are NOT activated
  706. (*) 'swi:scanmessages' - messages collected by the internal scaner tool
  707. (see 'swi:scaner' sections above)
  708. By default, these messages are activated
  709. (*) marks types of messages which affect the exit code (see 'swi:error' section above).
  710. (**) these messages are always printed for an object if there failures for the index:
  711. 'swi:duplication/swi:symbols/swi:exact'
  712. 'swi:print' section can be missed or empty. In this case default values are applied.
  713. -->
  714. <swi:print>
  715. <swi:added>
  716. <swi:failures>on</swi:failures>
  717. <swi:modifications>off</swi:modifications>
  718. <swi:duplications>off</swi:duplications>
  719. <swi:scanmessages>on</swi:scanmessages>
  720. </swi:added>
  721. <swi:removed>
  722. <swi:failures>on</swi:failures>
  723. <swi:modifications>off</swi:modifications>
  724. <swi:duplications>off</swi:duplications>
  725. <swi:scanmessages>on</swi:scanmessages>
  726. </swi:removed>
  727. <swi:modified>
  728. <swi:failures>on</swi:failures>
  729. <swi:modifications>off</swi:modifications>
  730. <swi:duplications>off</swi:duplications>
  731. <swi:scanmessages>on</swi:scanmessages>
  732. </swi:modified>
  733. <swi:cloned>
  734. <swi:failures>on</swi:failures>
  735. <swi:modifications>off</swi:modifications>
  736. <swi:duplications>off</swi:duplications>
  737. <swi:scanmessages>on</swi:scanmessages>
  738. </swi:cloned>
  739. <swi:unmodified>
  740. <swi:failures>on</swi:failures>
  741. <swi:modifications>off</swi:modifications>
  742. <swi:duplications>off</swi:duplications>
  743. <swi:scanmessages>on</swi:scanmessages>
  744. </swi:unmodified>
  745. </swi:print>
  746. </swi:notifications>
  747. </swi:report>
  748. <!--
  749. Software Index tool is able to validate
  750. that the particular statistic is in the acceptable range.
  751. Limits should be defined per:
  752. STATISTIC-GROUP / STATISTIC-NAME / STATISTIC-TYPE
  753. (See sections 'swi:indexer:common' and 'swi:indexer:dup' above)
  754. 'swi:limits' section is optional.
  755. -->
  756. <swi:limits>
  757. <!--
  758. For example, if it is required to have proper (not too short)
  759. comment header, it is necessary to limit the statistic:
  760. 'swi:lines/swi:comment:header/swi:exact'
  761. It is demonstarted in the following section:
  762. -->
  763. <!-- STATISTIC-GROUP -->
  764. <swi:lines>
  765. <!-- STATISTIC-NAME -->
  766. <swi:comment:header>
  767. <!-- STATISTIC-TYPE -->
  768. <swi:exact>
  769. <!--
  770. After that, actual limits should be defined for three levels:
  771. info, notice, warning
  772. The common rule is that options should be in order:
  773. 'swi:info' < 'swi:notice' < 'swi:warning'
  774. OR:
  775. 'swi:info' > 'swi:notice' > 'swi:warning'
  776. Note: limits can be negative, in this case they do not have any sense.
  777. In the example below, no messages are printed for a function
  778. if comment header before includes 5 lines at least.
  779. If it is so, the 'regular' level is attached to this function.
  780. If comment has 3-4 lines, level 'info' is assigned.
  781. If comment has 1-2 lines, level 'notice' is assigned.
  782. If there are no comments at all (0 lines), level 'warning' is assigned.
  783. -->
  784. <swi:info>5</swi:info>
  785. <swi:notice>3</swi:notice>
  786. <swi:warning>1</swi:warning>
  787. <!--
  788. The next option is a regular expression.
  789. If name of object which is under processing is mathced by this expression,
  790. the limit is applied to this object.
  791. Otherwise, the object is missed and the level becomes 'undefined' for the object.
  792. For example, value '^MY_PROJECT/MY_MODULE$' requires to apply the limit
  793. to the module only, missing statistics for the project, files and functions.
  794. By default, statistics are validated for all objects.
  795. -->
  796. <swi:objectpattern>.*</swi:objectpattern>
  797. <!--
  798. If some object is evaluated in non-regular level (info/notice/warning)
  799. and you consider that it is too excessive to fix it
  800. (or just there are no needs/benefits to do it),
  801. it is possible to define the exception and suppress the notification
  802. in the 'swi:suppress' section below.
  803. The exception should be defined in combination with 'swi:level' option.
  804. If there is notification for the object:
  805. MY_PROJECT/MY_MODULE/my_file.c/myFunction
  806. with 'notice' level, the 'swi:level' should be equal to 'notice'.
  807. Otherwise, the notification will be still printed.
  808. In other words, severity of the message and suppress level should be equal.
  809. Also, one rule can suppress several objects. An object is considered as
  810. suppressed if it is matched by regular expression in 'swi:pattern' option.
  811. For example, the regexp pattern
  812. MY_PROJECT/MY_MODULE/my_file.c/.*
  813. suppresses all functions in my_file.c in scope of
  814. MY_MODULE module in MY_PROJECT project.
  815. However, it it NOT recommended to use multiple suppressing,
  816. due to possible missmatch in severity of messages:
  817. For example, if there are two functions:
  818. MY_PROJECT/MY_MODULE/my_file.c/myFunction1
  819. MY_PROJECT/MY_MODULE/my_file.c/myFunction2
  820. and one of them is reported by the message with 'notice' level
  821. but the second is evaluated in 'regular' level,
  822. the 'swi:pattern' rule:
  823. MY_PROJECT/MY_MODULE/my_file.c/.*
  824. will always result in the unsuppressable message,
  825. either for the first or for the second function.
  826. It is better to suppress all objects by their full reference.
  827. For example (see the previous example for prehistory)
  828. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE/my_file.c/myFunction1$</swi:pattern>
  829. Symbols '^' and '$' are special regexp modifiers. They require immidiate borders in the name.
  830. -->
  831. <swi:suppress>
  832. <!-- Section 'swi:pattern' can be repeated several times -->
  833. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE/my_file.c/myFunction1$</swi:pattern>
  834. <!--
  835. Add here the next 'swi:pattern' section, for example:
  836. <swi:pattern swi:level="warning">^.*/.*/file2.c/operator new[]$</swi:pattern>
  837. -->
  838. </swi:suppress>
  839. </swi:exact>
  840. </swi:comment:header>
  841. <!-- STATISTIC-NAME -->
  842. <swi:comment>
  843. <!--
  844. This is the next example of a limit for statistic.
  845. It demonstrates how to limit the relative values.
  846. For example, it is required to have at least 30% of comments per every function.
  847. This is defined by the relation:
  848. 'swi:lines/swi:comment/swi:exact' / 'swi:lines/swi:executable/swi:exact' * 100%.
  849. In this case it is necessary to limit 'swi:lines/swi:comment/swi:exact'
  850. (what we do here) in the relation with 'swi:lines/swi:executable/swi:exact'.
  851. Note: if statistic in the relation ('swi:lines/swi:executable/swi:exact'
  852. in this example) is not defined OR equal to zero,
  853. result depends on the sign of the limited statistic
  854. ('swi:lines/swi:comment/swi:exact' in this example):
  855. if statistic > 0 than relative statistic becomes 'Infinity'
  856. if statistic < 0 than relative statistic becomes '-Infinity'
  857. if statistic = 0 than relative statistic becomes equals to '1.00'
  858. -->
  859. <swi:exact swi:relation="swi:lines/swi:executable/swi:exact">
  860. <!-- 0.3 is 30% -->
  861. <swi:info>0.3</swi:info>
  862. <!-- 0.25 is 25% -->
  863. <swi:notice>0.25</swi:notice>
  864. <!-- 0.2 is 20% -->
  865. <swi:warning>0.2</swi:warning>
  866. <!--
  867. Add here suppress section, if it is needed. For example:
  868. <swi:suppress>
  869. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE/my_file.c/myFunction1$</swi:pattern>
  870. <swi:pattern swi:level="info">^MY_PROJECT/MY_MODULE/my_file.c/myFunction2$</swi:pattern>
  871. </swi:suppress>
  872. -->
  873. </swi:exact>
  874. </swi:comment>
  875. <!-- STATISTIC-NAME -->
  876. <swi:executable>
  877. <!--
  878. The previous examples require to limit the low bound of exact value.
  879. This sample demonstrates the limitation for total upper value.
  880. For example, sometimes it is useful to require to have short files,
  881. because they are easily maintainable in most cases.
  882. The settings in this sections allows to do it:
  883. no messages are printed for a file
  884. if total number of executable lines less than or equal to 1000.
  885. -->
  886. <swi:total>
  887. <swi:info>1000</swi:info>
  888. <swi:notice>1500</swi:notice>
  889. <swi:warning>2000</swi:warning>
  890. <!--
  891. Most likely that you will need to suppress messages for modules,
  892. because total value of lines in a module is a sum of lines in all files.
  893. -->
  894. <swi:suppress>
  895. <!-- Section 'swi:pattern' can be repeated several times -->
  896. <swi:pattern swi:level="warning">^MY_PROJECT/MY_MODULE$</swi:pattern>
  897. <!--
  898. Add here the next 'swi:pattern' section, for example:
  899. <swi:pattern swi:level="warning">^MY_PROJECT/MY_MODULE$</swi:pattern>
  900. -->
  901. </swi:suppress>
  902. </swi:total>
  903. </swi:executable>
  904. <!-- STATISTIC-NAME -->
  905. <swi:source>
  906. <!--
  907. This example is an extension for the previous.
  908. Here the limitation is applied for total values of files, modules and project
  909. at the same time.
  910. The settings in this sections allows to do it:
  911. a) no messages (info) are printed for a file
  912. if total number of source lines less than or equal to 1000.
  913. b) no messages (notices) are printed for a module
  914. if total number of source lines less than or equal to 10000.
  915. c) no messages (notices) are printed for a project
  916. if total number of source lines less than or equal to 100000.
  917. -->
  918. <swi:total>
  919. <!-- Limit for files -->
  920. <swi:info>1000</swi:info>
  921. <!-- Limit for modules -->
  922. <swi:notice>10000</swi:notice>
  923. <!-- Limit for the project -->
  924. <swi:warning>100000</swi:warning>
  925. <!--
  926. Most likely that you will need to suppress info messages for modules and
  927. notice messages for the project,
  928. because total value of lines in a module is a sum of lines in all files,
  929. and total value of lines in project is a sum of lines in all modules.
  930. -->
  931. <swi:suppress>
  932. <!-- Section 'swi:pattern' can be repeated several times -->
  933. <swi:pattern swi:level="info">^MY_PROJECT/MY_MODULE$</swi:pattern>
  934. <swi:pattern swi:level="notice">^MY_PROJECT$</swi:pattern>
  935. <!--
  936. Add here the next 'swi:pattern' section, for example:
  937. <swi:pattern swi:level="info">^MY_PROJECT/MY_MODULE$</swi:pattern>
  938. -->
  939. </swi:suppress>
  940. </swi:total>
  941. </swi:source>
  942. </swi:lines>
  943. <!-- STATISTIC-GROUP -->
  944. <swi:complexity>
  945. <!-- STATISTIC-NAME -->
  946. <swi:cyclomatic>
  947. <!-- STATISTIC-TYPE -->
  948. <swi:exact>
  949. <!--
  950. In the example below, no messages are printed for a function
  951. if cyclomatic complexity index less than or equal to 7.
  952. It indicates about proper (low) level of logical
  953. branching in a subroutine. Low level of this index
  954. more or less grants decreased costs for mainteinability
  955. and further development, minimal probability of bad fixes,
  956. better and easier understanding of a logical part of SW.
  957. -->
  958. <swi:info>7</swi:info>
  959. <swi:notice>10</swi:notice>
  960. <swi:warning>15</swi:warning>
  961. <!--
  962. Add here suppress section, if it is needed. For example:
  963. <swi:suppress>
  964. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE/my_file.c/myFunction1$</swi:pattern>
  965. <swi:pattern swi:level="info">^MY_PROJECT/MY_MODULE/my_file.c/myFunction2$</swi:pattern>
  966. </swi:suppress>
  967. -->
  968. </swi:exact>
  969. </swi:cyclomatic>
  970. </swi:complexity>
  971. <!--
  972. The following section defines the limitation for duplication index.
  973. In the example, it is required to control exact relative
  974. duplication index for functions and total relative
  975. duplication index for the whole project.
  976. -->
  977. <!-- STATISTIC-GROUP -->
  978. <swi:duplication>
  979. <!-- STATISTIC-NAME -->
  980. <swi:symbols>
  981. <!-- STATISTIC-TYPE -->
  982. <swi:exact swi:relation="swi:length/swi:executable/swi:exact">
  983. <swi:info>0.30</swi:info>
  984. <swi:notice>0.40</swi:notice>
  985. <swi:warning>0.60</swi:warning>
  986. <!--
  987. Add here suppress section, if it is needed. For example:
  988. <swi:suppress>
  989. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE/my_file.c/myFunction1$</swi:pattern>
  990. <swi:pattern swi:level="info">^MY_PROJECT/MY_MODULE/my_file.c/myFunction2$</swi:pattern>
  991. </swi:suppress>
  992. -->
  993. </swi:exact>
  994. <!-- STATISTIC-TYPE -->
  995. <swi:total swi:relation="swi:length/swi:executable/swi:total">
  996. <swi:info>0.30</swi:info>
  997. <swi:notice>0.40</swi:notice>
  998. <swi:warning>0.60</swi:warning>
  999. <!--
  1000. This option explicitly defines the content for validation.
  1001. It requires to apply the limit to the project and
  1002. miss modules, files and functions.
  1003. -->
  1004. <swi:objectpattern>^MY_PROJECT$</swi:objectpattern>
  1005. <!--
  1006. Add here suppress section, if it is needed. For example:
  1007. <swi:suppress>
  1008. <swi:pattern swi:level="warning">^MY_PROJECT/MY_MODULE/my_file.c$</swi:pattern>
  1009. <swi:pattern swi:level="notice">^MY_PROJECT/MY_MODULE$</swi:pattern>
  1010. <swi:pattern swi:level="info">^MY_PROJECT$</swi:pattern>
  1011. </swi:suppress>
  1012. -->
  1013. </swi:total>
  1014. </swi:symbols>
  1015. </swi:duplication>
  1016. <!--
  1017. Add here more sections with definition of limits if it is needed.
  1018. -->
  1019. </swi:limits>
  1020. </swi:configuration>