swi_config_ddd.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <swi:configuration>
  3. <swi:info>
  4. <swi:version>1</swi:version>
  5. <swi:project>
  6. <swi:name>DDD</swi:name>
  7. </swi:project>
  8. <swi:history>
  9. <swi:revision>
  10. <swi:name>ALFA</swi:name>
  11. <swi:user>USER</swi:user>
  12. <swi:comment>Configuration for DDD project</swi:comment>
  13. </swi:revision>
  14. </swi:history>
  15. </swi:info>
  16. <swi:general>
  17. <swi:debug>
  18. <swi:enabled>off</swi:enabled>
  19. </swi:debug>
  20. </swi:general>
  21. <swi:modules>
  22. <swi:module>
  23. <swi:name>DDD-SOURCES</swi:name>
  24. <swi:location>../GNU-SRC/ddd/ddd</swi:location>
  25. <swi:files>
  26. <swi:include>^.*[chCH]$</swi:include>
  27. <!--
  28. Excluding the following files:
  29. FILE: - REASON:
  30. ddd.info.txt.gz.C - just too big file
  31. vsl-lex.C - brackets mismatch without preprocessor work
  32. rxscan.C - undefined block start without preprocessor work
  33. vsl-gramma.C - definition of local variables in old style
  34. -->
  35. <swi:exclude>ddd.info.txt.gz.C|vsl-lex.C|rxscan.C|vsl-gramma.C</swi:exclude>
  36. </swi:files>
  37. <swi:preprocessor>
  38. <swi:rule>
  39. <swi:filepattern>^PrintGC.h$</swi:filepattern>
  40. <swi:searchpattern>([^_a-zA-Z0-9])(DECLARE_TYPE_INFO)([^_a-zA-Z0-9])</swi:searchpattern>
  41. <swi:replacepattern>$1$2;$3</swi:replacepattern>
  42. </swi:rule>
  43. <swi:rule>
  44. <swi:filepattern>.*</swi:filepattern>
  45. <swi:searchpattern>(\s+)(union\s*)({)</swi:searchpattern>
  46. <swi:replacepattern>$1$2 _noname_ $3</swi:replacepattern>
  47. </swi:rule>
  48. </swi:preprocessor>
  49. <swi:scanner>
  50. <!--
  51. The codecontent option defines the content for scanner, it can be:
  52. initial - the initial source content
  53. code - the initial code (without comments)
  54. comments - comments only (no code)
  55. nopreprocessor - preprocessor strings excluded (without comments and preprocessor)
  56. nostrings - strings excluded (without comments and strings)
  57. purified - strings and preprocessor excluded (without comments, strings and preprocessor)
  58. By default, the 'purified' content is scanned
  59. -->
  60. <swi:rule>
  61. <swi:filepattern>.*</swi:filepattern>
  62. <swi:searchpattern>(\s+)((union)|(enum)|(struct))(\s*{)</swi:searchpattern>
  63. <swi:messagepattern>Noname '$2' detected.</swi:messagepattern>
  64. <swi:codecontent>purified</swi:codecontent>
  65. </swi:rule>
  66. <swi:suppress>
  67. <swi:pattern swi:message="Noname 'struct'">.*</swi:pattern>
  68. <swi:pattern swi:message="Noname 'useless'">.*</swi:pattern>
  69. </swi:suppress>
  70. </swi:scanner>
  71. <swi:indexer:common>
  72. <!-- No settings currently available -->
  73. </swi:indexer:common>
  74. <swi:indexer:dup>
  75. <!--
  76. The codecontent option defines the content for scanner, it can be:
  77. initial - the initial source content
  78. code - the initial code (without comments)
  79. comments - comments only (no code)
  80. nopreprocessor - preprocessor strings excluded (without comments and preprocessor)
  81. nostrings - strings excluded (without comments and strings)
  82. purified - strings and preprocessor excluded (without comments, strings and preprocessor)
  83. By default, the 'purified' content is scanned
  84. -->
  85. <swi:codecontent>purified</swi:codecontent>
  86. <swi:enabled>on</swi:enabled>
  87. <swi:minlength>100</swi:minlength>
  88. <swi:proximity>100</swi:proximity>
  89. <swi:globalcode>on</swi:globalcode>
  90. </swi:indexer:dup>
  91. <swi:indexer:gcov>
  92. <swi:enabled>on</swi:enabled>
  93. <swi:filepattern>^.*[.][cC][pP]?[pP]?$</swi:filepattern>
  94. <swi:sourcefile>(.*)[.][cC][pP]?[pP]?</swi:sourcefile>
  95. <swi:gcdafile>${1}.gcda</swi:gcdafile>
  96. </swi:indexer:gcov>
  97. </swi:module>
  98. </swi:modules>
  99. <swi:report>
  100. <swi:destination>.</swi:destination>
  101. <swi:xml>
  102. <swi:name>swi_report_ddd.xml</swi:name>
  103. </swi:xml>
  104. <swi:notifications>
  105. <swi:name>swi_report_ddd.log</swi:name>
  106. <swi:error>
  107. <swi:added>on</swi:added>
  108. <swi:removed>on</swi:removed>
  109. <swi:modified>on</swi:modified>
  110. <swi:cloned>on</swi:cloned>
  111. <swi:unmodified>on</swi:unmodified>
  112. </swi:error>
  113. <swi:print>
  114. <swi:added>
  115. <swi:failures>on</swi:failures>
  116. <swi:modifications>off</swi:modifications>
  117. <swi:duplications>off</swi:duplications>
  118. <swi:scanmessages>on</swi:scanmessages>
  119. </swi:added>
  120. <swi:removed>
  121. <swi:failures>on</swi:failures>
  122. <swi:modifications>off</swi:modifications>
  123. <swi:duplications>off</swi:duplications>
  124. <swi:scanmessages>on</swi:scanmessages>
  125. </swi:removed>
  126. <swi:modified>
  127. <swi:failures>on</swi:failures>
  128. <swi:modifications>off</swi:modifications>
  129. <swi:duplications>off</swi:duplications>
  130. <swi:scanmessages>on</swi:scanmessages>
  131. </swi:modified>
  132. <swi:cloned>
  133. <swi:failures>on</swi:failures>
  134. <swi:modifications>off</swi:modifications>
  135. <swi:duplications>off</swi:duplications>
  136. <swi:scanmessages>on</swi:scanmessages>
  137. </swi:cloned>
  138. <swi:unmodified>
  139. <swi:failures>on</swi:failures>
  140. <swi:modifications>off</swi:modifications>
  141. <swi:duplications>off</swi:duplications>
  142. <swi:scanmessages>on</swi:scanmessages>
  143. </swi:unmodified>
  144. </swi:print>
  145. </swi:notifications>
  146. </swi:report>
  147. <swi:limits>
  148. <swi:lines>
  149. <swi:comment:header>
  150. <swi:exact>
  151. <swi:info>5</swi:info>
  152. <swi:notice>3</swi:notice>
  153. <swi:warning>1</swi:warning>
  154. <swi:suppress>
  155. <swi:pattern swi:level="warning">.*</swi:pattern>
  156. </swi:suppress>
  157. </swi:exact>
  158. </swi:comment:header>
  159. </swi:lines>
  160. <swi:duplication>
  161. <swi:symbols>
  162. <swi:exact swi:relation="swi:length/swi:executable/swi:exact">
  163. <swi:info>0.28</swi:info>
  164. <swi:notice>0.40</swi:notice>
  165. <swi:warning>0.60</swi:warning>
  166. <swi:suppress>
  167. <swi:pattern swi:level="warning">Useless pattern</swi:pattern>
  168. </swi:suppress>
  169. </swi:exact>
  170. </swi:symbols>
  171. </swi:duplication>
  172. <swi:coverage>
  173. <swi:gcov:lines>
  174. <swi:exact swi:relation="swi:coverage/swi:gsum:lines/swi:exact">
  175. <swi:info>0.99</swi:info>
  176. <swi:notice>0.9</swi:notice>
  177. <swi:warning>0.84</swi:warning>
  178. </swi:exact>
  179. </swi:gcov:lines>
  180. </swi:coverage>
  181. </swi:limits>
  182. </swi:configuration>