swi_config_ddd.xml 6.1 KB

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