@boyingliu01/xp-gate 0.8.1 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/adapters/java.sh +1 -1
  2. package/adapters/plugins/book299-20132-python/README.md +21 -0
  3. package/adapters/plugins/book299-20132-python/plugin.yml +21 -0
  4. package/adapters/plugins/book299-20132-python/rules/exception/gen-0023.yml +14 -0
  5. package/adapters/plugins/book299-20132-python/rules/logging/gen-0071.yml +14 -0
  6. package/adapters/plugins/book299-20132-python/rules/style/gen-0001.yml +14 -0
  7. package/adapters/plugins/book299-20132-python/rules/style/gen-0002.yml +14 -0
  8. package/adapters/plugins/book299-20132-python/rules/style/gen-0003.yml +14 -0
  9. package/adapters/plugins/book299-20132-python/rules/style/gen-0004.yml +14 -0
  10. package/adapters/plugins/book299-20132-python/rules/style/gen-0005.yml +14 -0
  11. package/adapters/plugins/book299-20132-python/rules/style/gen-0006.yml +14 -0
  12. package/adapters/plugins/book299-20132-python/rules/style/gen-0007.yml +14 -0
  13. package/adapters/plugins/book299-20132-python/rules/style/gen-0008.yml +14 -0
  14. package/adapters/plugins/book299-20132-python/rules/style/gen-0009.yml +14 -0
  15. package/adapters/plugins/book299-20132-python/rules/style/gen-0010.yml +14 -0
  16. package/adapters/plugins/book299-20132-python/rules/style/gen-0011.yml +14 -0
  17. package/adapters/plugins/book299-20132-python/rules/style/gen-0012.yml +14 -0
  18. package/adapters/plugins/book299-20132-python/rules/style/gen-0013.yml +14 -0
  19. package/adapters/plugins/book299-20132-python/rules/style/gen-0014.yml +14 -0
  20. package/adapters/plugins/book299-20132-python/rules/style/gen-0015.yml +14 -0
  21. package/adapters/plugins/book299-20132-python/rules/style/gen-0016.yml +14 -0
  22. package/adapters/plugins/book299-20132-python/rules/style/gen-0017.yml +14 -0
  23. package/adapters/plugins/book299-20132-python/rules/style/gen-0018.yml +14 -0
  24. package/adapters/plugins/book299-20132-python/rules/style/gen-0019.yml +14 -0
  25. package/adapters/plugins/book299-20132-python/rules/style/gen-0020.yml +14 -0
  26. package/adapters/plugins/book299-20132-python/rules/style/gen-0021.yml +14 -0
  27. package/adapters/plugins/book299-20132-python/rules/style/gen-0022.yml +14 -0
  28. package/adapters/plugins/book299-20132-python/rules/style/gen-0024.yml +14 -0
  29. package/adapters/plugins/book299-20132-python/rules/style/gen-0025.yml +14 -0
  30. package/adapters/plugins/book299-20132-python/rules/style/gen-0026.yml +14 -0
  31. package/adapters/plugins/book299-20132-python/rules/style/gen-0027.yml +14 -0
  32. package/adapters/plugins/book299-20132-python/rules/style/gen-0028.yml +14 -0
  33. package/adapters/plugins/book299-20132-python/rules/style/gen-0029.yml +14 -0
  34. package/adapters/plugins/book299-20132-python/rules/style/gen-0030.yml +14 -0
  35. package/adapters/plugins/book299-20132-python/rules/style/gen-0031.yml +14 -0
  36. package/adapters/plugins/book299-20132-python/rules/style/gen-0032.yml +14 -0
  37. package/adapters/plugins/book299-20132-python/rules/style/gen-0033.yml +14 -0
  38. package/adapters/plugins/book299-20132-python/rules/style/gen-0034.yml +14 -0
  39. package/adapters/plugins/book299-20132-python/rules/style/gen-0035.yml +14 -0
  40. package/adapters/plugins/book299-20132-python/rules/style/gen-0036.yml +14 -0
  41. package/adapters/plugins/book299-20132-python/rules/style/gen-0037.yml +14 -0
  42. package/adapters/plugins/book299-20132-python/rules/style/gen-0038.yml +14 -0
  43. package/adapters/plugins/book299-20132-python/rules/style/gen-0039.yml +14 -0
  44. package/adapters/plugins/book299-20132-python/rules/style/gen-0040.yml +14 -0
  45. package/adapters/plugins/book299-20132-python/rules/style/gen-0041.yml +14 -0
  46. package/adapters/plugins/book299-20132-python/rules/style/gen-0042.yml +14 -0
  47. package/adapters/plugins/book299-20132-python/rules/style/gen-0043.yml +14 -0
  48. package/adapters/plugins/book299-20132-python/rules/style/gen-0044.yml +14 -0
  49. package/adapters/plugins/book299-20132-python/rules/style/gen-0045.yml +14 -0
  50. package/adapters/plugins/book299-20132-python/rules/style/gen-0046.yml +14 -0
  51. package/adapters/plugins/book299-20132-python/rules/style/gen-0047.yml +14 -0
  52. package/adapters/plugins/book299-20132-python/rules/style/gen-0048.yml +14 -0
  53. package/adapters/plugins/book299-20132-python/rules/style/gen-0049.yml +14 -0
  54. package/adapters/plugins/book299-20132-python/rules/style/gen-0050.yml +14 -0
  55. package/adapters/plugins/book299-20132-python/rules/style/gen-0051.yml +14 -0
  56. package/adapters/plugins/book299-20132-python/rules/style/gen-0052.yml +14 -0
  57. package/adapters/plugins/book299-20132-python/rules/style/gen-0053.yml +14 -0
  58. package/adapters/plugins/book299-20132-python/rules/style/gen-0054.yml +14 -0
  59. package/adapters/plugins/book299-20132-python/rules/style/gen-0055.yml +14 -0
  60. package/adapters/plugins/book299-20132-python/rules/style/gen-0056.yml +14 -0
  61. package/adapters/plugins/book299-20132-python/rules/style/gen-0057.yml +14 -0
  62. package/adapters/plugins/book299-20132-python/rules/style/gen-0058.yml +14 -0
  63. package/adapters/plugins/book299-20132-python/rules/style/gen-0059.yml +14 -0
  64. package/adapters/plugins/book299-20132-python/rules/style/gen-0060.yml +14 -0
  65. package/adapters/plugins/book299-20132-python/rules/style/gen-0061.yml +14 -0
  66. package/adapters/plugins/book299-20132-python/rules/style/gen-0062.yml +14 -0
  67. package/adapters/plugins/book299-20132-python/rules/style/gen-0063.yml +14 -0
  68. package/adapters/plugins/book299-20132-python/rules/style/gen-0064.yml +14 -0
  69. package/adapters/plugins/book299-20132-python/rules/style/gen-0065.yml +14 -0
  70. package/adapters/plugins/book299-20132-python/rules/style/gen-0066.yml +14 -0
  71. package/adapters/plugins/book299-20132-python/rules/style/gen-0067.yml +14 -0
  72. package/adapters/plugins/book299-20132-python/rules/style/gen-0068.yml +14 -0
  73. package/adapters/plugins/book299-20132-python/rules/style/gen-0069.yml +14 -0
  74. package/adapters/plugins/book299-20132-python/rules/style/gen-0070.yml +14 -0
  75. package/adapters/plugins/book299-20132-python/rules/style/gen-0072.yml +14 -0
  76. package/adapters/plugins/book299-20132-python/rules/style/gen-0073.yml +14 -0
  77. package/adapters/plugins/book299-20132-python/scripts/install-gradle.sh +4 -0
  78. package/adapters/plugins/book299-20132-python/scripts/install-maven.sh +20 -0
  79. package/adapters/plugins/book299-4081-c/README.md +21 -0
  80. package/adapters/plugins/book299-4081-c/plugin.yml +21 -0
  81. package/adapters/plugins/book299-4081-c/rules/collection/c/345/273/272-5-12.yml +14 -0
  82. package/adapters/plugins/book299-4081-c/rules/collection/c/345/273/272-5-8.yml +14 -0
  83. package/adapters/plugins/book299-4081-c/rules/concurrency/c/350/247/204-4-19.yml +14 -0
  84. package/adapters/plugins/book299-4081-c/rules/concurrency/c/350/247/204-4-20.yml +14 -0
  85. package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-11.yml +14 -0
  86. package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-12.yml +14 -0
  87. package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-6.yml +14 -0
  88. package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-8.yml +14 -0
  89. package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-9.yml +14 -0
  90. package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-13.yml +14 -0
  91. package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-6.yml +14 -0
  92. package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-7.yml +14 -0
  93. package/adapters/plugins/book299-4081-c/rules/performance/c/350/247/204-4-14.yml +14 -0
  94. package/adapters/plugins/book299-4081-c/rules/performance/c/350/247/204-4-2.yml +14 -0
  95. package/adapters/plugins/book299-4081-c/rules/resource/c/345/273/272-4-2.yml +14 -0
  96. package/adapters/plugins/book299-4081-c/rules/security/c/350/247/204-4-13.yml +14 -0
  97. package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-1.yml +14 -0
  98. package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-2.yml +14 -0
  99. package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-3.yml +14 -0
  100. package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-4.yml +14 -0
  101. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-1.yml +14 -0
  102. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-2.yml +14 -0
  103. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-3.yml +14 -0
  104. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-4.yml +14 -0
  105. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-1.yml +14 -0
  106. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-2.yml +14 -0
  107. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-3.yml +14 -0
  108. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-4.yml +14 -0
  109. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-5.yml +14 -0
  110. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-6.yml +14 -0
  111. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-7.yml +14 -0
  112. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-8.yml +14 -0
  113. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-4-1.yml +14 -0
  114. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-4-3.yml +14 -0
  115. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-1.yml +14 -0
  116. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-10.yml +14 -0
  117. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-11.yml +14 -0
  118. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-2.yml +14 -0
  119. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-3.yml +14 -0
  120. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-4.yml +14 -0
  121. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-5.yml +14 -0
  122. package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-9.yml +14 -0
  123. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-1.yml +14 -0
  124. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-10.yml +14 -0
  125. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-11.yml +14 -0
  126. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-12.yml +14 -0
  127. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-13.yml +14 -0
  128. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-14.yml +14 -0
  129. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-16.yml +14 -0
  130. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-17.yml +14 -0
  131. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-18.yml +14 -0
  132. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-19.yml +14 -0
  133. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-2.yml +14 -0
  134. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-20.yml +14 -0
  135. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-3.yml +14 -0
  136. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-4.yml +14 -0
  137. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-5.yml +14 -0
  138. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-6.yml +14 -0
  139. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-7.yml +14 -0
  140. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-8.yml +14 -0
  141. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-9.yml +14 -0
  142. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-1.yml +14 -0
  143. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-10.yml +14 -0
  144. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-11.yml +14 -0
  145. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-12.yml +14 -0
  146. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-13.yml +14 -0
  147. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-14.yml +14 -0
  148. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-15.yml +14 -0
  149. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-16.yml +14 -0
  150. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-17.yml +14 -0
  151. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-18.yml +14 -0
  152. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-19.yml +14 -0
  153. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-2.yml +14 -0
  154. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-20.yml +14 -0
  155. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-21.yml +14 -0
  156. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-22.yml +14 -0
  157. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-3.yml +14 -0
  158. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-4.yml +14 -0
  159. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-5.yml +14 -0
  160. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-6.yml +14 -0
  161. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-7.yml +14 -0
  162. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-8.yml +14 -0
  163. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-9.yml +14 -0
  164. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-1.yml +14 -0
  165. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-10.yml +14 -0
  166. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-15.yml +14 -0
  167. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-16.yml +14 -0
  168. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-17.yml +14 -0
  169. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-18.yml +14 -0
  170. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-3.yml +14 -0
  171. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-4.yml +14 -0
  172. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-5.yml +14 -0
  173. package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-7.yml +14 -0
  174. package/adapters/plugins/book299-4081-c/scripts/install-gradle.sh +4 -0
  175. package/adapters/plugins/book299-4081-c/scripts/install-maven.sh +20 -0
  176. package/adapters/plugins/book299-4083-javascriptes5/README.md +21 -0
  177. package/adapters/plugins/book299-4083-javascriptes5/plugin.yml +21 -0
  178. package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0001.yml +14 -0
  179. package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0002.yml +14 -0
  180. package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0003.yml +14 -0
  181. package/adapters/plugins/book299-4083-javascriptes5/scripts/install-gradle.sh +4 -0
  182. package/adapters/plugins/book299-4083-javascriptes5/scripts/install-maven.sh +20 -0
  183. package/adapters/plugins/p3c-java/README.md +66 -0
  184. package/adapters/plugins/p3c-java/plugin.yml +30 -0
  185. package/adapters/plugins/p3c-java/scripts/install-gradle-p3c.sh +45 -0
  186. package/adapters/plugins/p3c-java/scripts/install-maven-p3c.sh +98 -0
  187. package/adapters/plugins/p3c-java/templates/gradle/xp-gate-p3c-gradle.gradle +68 -0
  188. package/adapters/plugins/p3c-java/templates/maven/xp-gate-p3c-profile.xml +81 -0
  189. package/adapters/plugins/whalecloud-java/README.md +98 -0
  190. package/adapters/plugins/whalecloud-java/plugin.yml +45 -0
  191. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-001.yml +17 -0
  192. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-002.yml +17 -0
  193. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-003.yml +17 -0
  194. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-004.yml +17 -0
  195. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-005.yml +17 -0
  196. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-006.yml +17 -0
  197. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-007.yml +17 -0
  198. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-008.yml +17 -0
  199. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-009.yml +17 -0
  200. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-010.yml +17 -0
  201. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-011.yml +17 -0
  202. package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-012.yml +17 -0
  203. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-001.yml +17 -0
  204. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-002.yml +17 -0
  205. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-003.yml +17 -0
  206. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-004.yml +17 -0
  207. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-005.yml +17 -0
  208. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-006.yml +17 -0
  209. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-007.yml +17 -0
  210. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-008.yml +17 -0
  211. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-009.yml +17 -0
  212. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-010.yml +17 -0
  213. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-011.yml +17 -0
  214. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-012.yml +17 -0
  215. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-013.yml +17 -0
  216. package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-014.yml +17 -0
  217. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-001.yml +17 -0
  218. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-002.yml +17 -0
  219. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-003.yml +17 -0
  220. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-004.yml +17 -0
  221. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-005.yml +17 -0
  222. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-006.yml +17 -0
  223. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-007.yml +17 -0
  224. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-008.yml +17 -0
  225. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-009.yml +17 -0
  226. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-010.yml +17 -0
  227. package/adapters/plugins/whalecloud-java/rules/exception/wc-except-011.yml +17 -0
  228. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-001.yml +17 -0
  229. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-002.yml +17 -0
  230. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-003.yml +17 -0
  231. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-004.yml +17 -0
  232. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-005.yml +17 -0
  233. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-006.yml +17 -0
  234. package/adapters/plugins/whalecloud-java/rules/logging/wc-log-007.yml +17 -0
  235. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-001.yml +17 -0
  236. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-002.yml +17 -0
  237. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-003.yml +17 -0
  238. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-004.yml +17 -0
  239. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-005.yml +17 -0
  240. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-006.yml +17 -0
  241. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-007.yml +17 -0
  242. package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-008.yml +17 -0
  243. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-001.yml +17 -0
  244. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-002.yml +17 -0
  245. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-003.yml +17 -0
  246. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-004.yml +17 -0
  247. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-005.yml +17 -0
  248. package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-006.yml +17 -0
  249. package/adapters/plugins/whalecloud-java/rules/security/wc-secu-001.yml +17 -0
  250. package/adapters/plugins/whalecloud-java/rules/security/wc-secu-002.yml +17 -0
  251. package/adapters/plugins/whalecloud-java/rules/security/wc-secu-003.yml +17 -0
  252. package/adapters/plugins/whalecloud-java/rules/security/wc-secu-004.yml +17 -0
  253. package/adapters/plugins/whalecloud-java/rules/security/wc-secu-005.yml +17 -0
  254. package/adapters/plugins/whalecloud-java/rules/style/wc-style-001.yml +17 -0
  255. package/adapters/plugins/whalecloud-java/rules/style/wc-style-002.yml +17 -0
  256. package/adapters/plugins/whalecloud-java/rules/style/wc-style-003.yml +17 -0
  257. package/adapters/plugins/whalecloud-java/rules/style/wc-style-004.yml +17 -0
  258. package/adapters/plugins/whalecloud-java/rules/style/wc-style-005.yml +17 -0
  259. package/adapters/plugins/whalecloud-java/rules/style/wc-style-006.yml +17 -0
  260. package/adapters/plugins/whalecloud-java/rules/style/wc-style-007.yml +17 -0
  261. package/adapters/plugins/whalecloud-java/rules/style/wc-style-008.yml +17 -0
  262. package/adapters/plugins/whalecloud-java/rules/style/wc-style-009.yml +17 -0
  263. package/adapters/plugins/whalecloud-java/rules/style/wc-style-010.yml +17 -0
  264. package/adapters/plugins/whalecloud-java/rules/style/wc-style-011.yml +17 -0
  265. package/adapters/plugins/whalecloud-java/rules/style/wc-style-012.yml +17 -0
  266. package/adapters/plugins/whalecloud-java/rules/style/wc-style-013.yml +17 -0
  267. package/adapters/plugins/whalecloud-java/rules/style/wc-style-014.yml +17 -0
  268. package/adapters/plugins/whalecloud-java/rules/style/wc-style-015.yml +17 -0
  269. package/adapters/plugins/whalecloud-java/rules/style/wc-style-016.yml +17 -0
  270. package/adapters/plugins/whalecloud-java/rules/style/wc-style-017.yml +17 -0
  271. package/adapters/plugins/whalecloud-java/rules/style/wc-style-018.yml +17 -0
  272. package/adapters/plugins/whalecloud-java/scripts/install-gradle-whalecloud.sh +97 -0
  273. package/adapters/plugins/whalecloud-java/scripts/install-maven-whalecloud.sh +201 -0
  274. package/adapters/plugins/whalecloud-java/templates/gradle/xp-gate-whalecloud-gradle.gradle +73 -0
  275. package/adapters/plugins/whalecloud-java/templates/maven/xp-gate-whalecloud-profile.xml +148 -0
  276. package/bin/xp-gate.js +111 -129
  277. package/hooks/pre-commit +31 -27
  278. package/hooks/pre-push +7 -3
  279. package/lib/__tests__/baseline.test.js +123 -0
  280. package/lib/__tests__/migrate.test.js +20 -0
  281. package/lib/__tests__/ui-detector.test.ts +94 -0
  282. package/lib/__tests__/uninstall.test.js +36 -0
  283. package/lib/__tests__/update-skill.test.js +11 -0
  284. package/lib/baseline.js +392 -0
  285. package/lib/doctor.js +127 -141
  286. package/lib/gate-audit.ts +25 -8
  287. package/lib/init.js +57 -2
  288. package/lib/migrate.js +74 -73
  289. package/lib/ui-detector.ts +3 -3
  290. package/lib/uninstall.js +63 -31
  291. package/lib/update-skill.js +32 -34
  292. package/package.json +1 -1
  293. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  294. package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
  295. package/plugins/claude-code/skills/ralph-loop/SKILL.md +41 -3
  296. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
  297. package/plugins/claude-code/skills/sprint-flow/SKILL.md +178 -4
  298. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
  299. package/plugins/opencode/package.json +28 -4
  300. package/plugins/opencode/scripts/prepack.cjs +85 -0
  301. package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
  302. package/plugins/opencode/skills/ralph-loop/SKILL.md +41 -3
  303. package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
  304. package/plugins/opencode/skills/sprint-flow/SKILL.md +178 -4
  305. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
  306. package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
  307. package/plugins/qoder/skills/ralph-loop/SKILL.md +41 -3
  308. package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
  309. package/plugins/qoder/skills/sprint-flow/SKILL.md +147 -4
  310. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
  311. package/skills/delphi-review/AGENTS.md +1 -1
  312. package/skills/ralph-loop/SKILL.md +41 -3
  313. package/skills/sprint-flow/AGENTS.md +1 -1
  314. package/skills/sprint-flow/SKILL.md +178 -4
  315. package/skills/test-specification-alignment/AGENTS.md +1 -1
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-14
3
+ name: 类的非公用成员变量名要加m_前缀
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 类的非公用成员变量名要加m_前缀
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-16
3
+ name: 代码缩进统一采用4个空格
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 代码缩进统一采用4个空格
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-17
3
+ name: 类的公有/保护函数要加详细的注释
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 类的公有/保护函数要加详细的注释
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-18
3
+ name: 源文件命名采用驼峰式
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 源文件命名采用驼峰式
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-19
3
+ name: 库文件与可执行文件名全部小写
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 库文件与可执行文件名全部小写
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-2
3
+ name: 类访问修饰符与分界符对齐,辖属内容要缩进
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 类访问修饰符与分界符对齐,辖属内容要缩进
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-20
3
+ name: 源码目录名遵循全部小写
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 源码目录名遵循全部小写
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-3
3
+ name: 分支循环必加大括号,禁止单行简写
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 分支循环必加大括号,禁止单行简写
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-4
3
+ name: 头文件中禁止使用using namespace
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 头文件中禁止使用using namespace
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-5
3
+ name: 遵循统一的类定义布局顺序
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 遵循统一的类定义布局顺序
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-6
3
+ name: 新增文件采用doxygen文件头代码注释风格
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 新增文件采用doxygen文件头代码注释风格
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-7
3
+ name: 头文件必须使用预处理块来避免重复包含
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 头文件必须使用预处理块来避免重复包含
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-8
3
+ name: 包含标准库头文件用尖括号,包含本地头文件用双引号
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 包含标准库头文件用尖括号,包含本地头文件用双引号
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-2-9
3
+ name: 保证代码和注释的一致性
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 保证代码和注释的一致性
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-1
3
+ name: 全局变量慎定义,注释需含用途、范围和关联性
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 全局变量慎定义,注释需含用途、范围和关联性
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-10
3
+ name: 文件句柄打开使用完后要及时关闭
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 文件句柄打开使用完后要及时关闭
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-11
3
+ name: 零值比较规范
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 零值比较规范
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-12
3
+ name: C++程序中只使用const常量,并避免使用"魔数"
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ C++程序中只使用const常量,并避免使用"魔数"
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-13
3
+ name: 构造函数中禁止调用本类的虚函数
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 构造函数中禁止调用本类的虚函数
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-14
3
+ name: 禁止使用goto语句
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 禁止使用goto语句
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-15
3
+ name: 避免类型转换导致数据截断问题
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 避免类型转换导致数据截断问题
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-16
3
+ name: 变量和函数遵守SRP原则
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 变量和函数遵守SRP原则
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-17
3
+ name: 全局变量在实现文件(CPP/C)中定义
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 全局变量在实现文件(CPP/C)中定义
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-18
3
+ name: 函数要遵守Clean Code原则
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 函数要遵守Clean Code原则
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-19
3
+ name: 避免使用返回静态数组方式来提高效率
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 避免使用返回静态数组方式来提高效率
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-2
3
+ name: 临时变量单一职责且作用域最小化
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 临时变量单一职责且作用域最小化
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-20
3
+ name: 避免对const指针对象进行转换修改
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 避免对const指针对象进行转换修改
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-21
3
+ name: 避免使用编译器定义有差异的数据类型
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 避免使用编译器定义有差异的数据类型
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-22
3
+ name: lambda 表达式使用规范
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ lambda 表达式使用规范
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-3
3
+ name: 非特殊场景应避免使用static变量
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 非特殊场景应避免使用static变量
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-4
3
+ name: 仅做输入用的指针或引用参数应使用 const 修饰
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 仅做输入用的指针或引用参数应使用 const 修饰
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-5
3
+ name: 类对象的传递尽量使用地址或者引用方式。
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 类对象的传递尽量使用地址或者引用方式。
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-6
3
+ name: 防止将函数的参数作为工作变量
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 防止将函数的参数作为工作变量
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-7
3
+ name: 对所调用的函数的返回值要处理完备
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 对所调用的函数的返回值要处理完备
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-8
3
+ name: 函数返回值全路径覆盖
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 函数返回值全路径覆盖
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-3-9
3
+ name: 派生类赋值函数中需要对基类的成员变量赋值
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 派生类赋值函数中需要对基类的成员变量赋值
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-1
3
+ name: 非内置类型的全局变量应使用指针方式
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 非内置类型的全局变量应使用指针方式
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-10
3
+ name: 每一个new都必须有一个对应的delete
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 每一个new都必须有一个对应的delete
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-15
3
+ name: 将数据库表数值类型主键对应的变量定义成long long类型
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 将数据库表数值类型主键对应的变量定义成long long类型
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-16
3
+ name: 程序实现应尽量避免采用递归的形式
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 程序实现应尽量避免采用递归的形式
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-17
3
+ name: 检查所有来源于外部数据的值和子程序所有输入参数的值
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 检查所有来源于外部数据的值和子程序所有输入参数的值
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-18
3
+ name: 一些故障总结经验作为基本准则
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 一些故障总结经验作为基本准则
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: C规-4-3
3
+ name: 变量在使用前必须初始化
4
+ severity: error
5
+ tool: auto
6
+ category: wc-style
7
+ description: |
8
+ 变量在使用前必须初始化
9
+
10
+ Auto-extracted from book299-4081-C++编程规范.txt.
11
+
12
+ check:
13
+ type: ast-grep
14
+ pattern: TODO