@boyingliu01/xp-gate 0.8.1 → 0.8.2

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 (303) 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/hooks/pre-commit +26 -23
  277. package/hooks/pre-push +7 -3
  278. package/lib/__tests__/ui-detector.test.ts +94 -0
  279. package/lib/init.js +44 -0
  280. package/lib/ui-detector.ts +3 -3
  281. package/package.json +1 -1
  282. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  283. package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
  284. package/plugins/claude-code/skills/ralph-loop/SKILL.md +41 -3
  285. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
  286. package/plugins/claude-code/skills/sprint-flow/SKILL.md +147 -4
  287. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
  288. package/plugins/opencode/package.json +1 -1
  289. package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
  290. package/plugins/opencode/skills/ralph-loop/SKILL.md +41 -3
  291. package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
  292. package/plugins/opencode/skills/sprint-flow/SKILL.md +147 -4
  293. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
  294. package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
  295. package/plugins/qoder/skills/ralph-loop/SKILL.md +41 -3
  296. package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
  297. package/plugins/qoder/skills/sprint-flow/SKILL.md +147 -4
  298. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
  299. package/skills/delphi-review/AGENTS.md +1 -1
  300. package/skills/ralph-loop/SKILL.md +41 -3
  301. package/skills/sprint-flow/AGENTS.md +1 -1
  302. package/skills/sprint-flow/SKILL.md +147 -4
  303. package/skills/test-specification-alignment/AGENTS.md +1 -1
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-003
3
+ name: catch时分清稳定和非稳定代码
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000041
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ catch时分清稳定和非稳定代码
10
+
11
+ 对应浩鲸规范 J000041。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Stable vs unstable code separation"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-004
3
+ name: 捕获异常需处理不可抛弃
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000042
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 捕获异常需处理不可抛弃
10
+
11
+ 对应浩鲸规范 J000042。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Empty catch block prohibition"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-005
3
+ name: finally块必须关闭资源
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000043
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ finally块必须关闭资源
10
+
11
+ 对应浩鲸规范 J000043。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Resource cleanup in finally"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-006
3
+ name: 不在finally块中使用return
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000044
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 不在finally块中使用return
10
+
11
+ 对应浩鲸规范 J000044。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "PMD:ReturnFromFinallyBlock"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-007
3
+ name: 抛异常与捕获异常必须完全匹配
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000046
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 抛异常与捕获异常必须完全匹配
10
+
11
+ 对应浩鲸规范 J000046。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Exception type matching"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-008
3
+ name: 避免空的try/catch/finally语句块
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000096
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 避免空的try/catch/finally语句块
10
+
11
+ 对应浩鲸规范 J000096。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "PMD:EmptyCatchBlock/EmptyFinallyBlock"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-009
3
+ name: 区分unchecked/checked异常
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000048
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 区分unchecked/checked异常
10
+
11
+ 对应浩鲸规范 J000048。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Exception classification"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-010
3
+ name: 对外API必须使用错误码
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000049
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ 对外API必须使用错误码
10
+
11
+ 对应浩鲸规范 J000049。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Error code standardization"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-EXCEPT-011
3
+ name: JDK9+ try-with-resources优化
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000045
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-exception
8
+ description: |
9
+ JDK9+ try-with-resources优化
10
+
11
+ 对应浩鲸规范 J000045。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Resource management improvement"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-001
3
+ name: 日志输出字符串拼接使用占位符
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000053
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 日志输出字符串拼接使用占位符
10
+
11
+ 对应浩鲸规范 J000053。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "PMD:LoggerFormat already covers"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-002
3
+ name: trace/debug/info日志输出前需判断级别
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000054
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ trace/debug/info日志输出前需判断级别
10
+
11
+ 对应浩鲸规范 J000054。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "isDebugEnabled() guard"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-003
3
+ name: 避免重复打印日志
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000055
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 避免重复打印日志
10
+
11
+ 对应浩鲸规范 J000055。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Log duplication prevention"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-004
3
+ name: 异常信息包括案发现场和堆栈信息
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000056
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 异常信息包括案发现场和堆栈信息
10
+
11
+ 对应浩鲸规范 J000056。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Context + stacktrace"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-005
3
+ name: 生产环境禁止输出debug日志
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000058
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 生产环境禁止输出debug日志
10
+
11
+ 对应浩鲸规范 J000058。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Production log level"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-006
3
+ name: 国际化团队使用全英文日志
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000057
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 国际化团队使用全英文日志
10
+
11
+ 对应浩鲸规范 J000057。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "English-only logs"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-LOG-007
3
+ name: 使用warn记录用户输入参数错误
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000059
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-logging
8
+ description: |
9
+ 使用warn记录用户输入参数错误
10
+
11
+ 对应浩鲸规范 J000059。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Warning level for input errors"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-001
3
+ name: 使用正则表达式利用预编译功能
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000124
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 使用正则表达式利用预编译功能
10
+
11
+ 对应浩鲸规范 J000124。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Pattern.compile cache"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-002
3
+ name: 利用缓冲流类提高I/O操作效率
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000127
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 利用缓冲流类提高I/O操作效率
10
+
11
+ 对应浩鲸规范 J000127。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "BufferedInputStream/Reader"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-003
3
+ name: 合理使用字符串连接方式
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000120
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 合理使用字符串连接方式
10
+
11
+ 对应浩鲸规范 J000120。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "StringBuilder vs concatenation"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-004
3
+ name: 优先使用toCharArray遍历字符
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000122
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 优先使用toCharArray遍历字符
10
+
11
+ 对应浩鲸规范 J000122。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "String char iteration"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-005
3
+ name: 避免使用已过时的技术或组件
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J001061
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 避免使用已过时的技术或组件
10
+
11
+ 对应浩鲸规范 J001061。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Deprecated technology usage"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-006
3
+ name: 尽早释放无用对象引用
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000107
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 尽早释放无用对象引用
10
+
11
+ 对应浩鲸规范 J000107。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Reference clearing"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-007
3
+ name: 高并发/循环中避免直接调用System.getProperty
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J001127
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 高并发/循环中避免直接调用System.getProperty
10
+
11
+ 对应浩鲸规范 J001127。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "System.getProperty caching"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-PERF-008
3
+ name: 数据结构初始化指定大小
4
+ severity: warning # error=阻断, warning=警告
5
+ source: J000113
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-performance
8
+ description: |
9
+ 数据结构初始化指定大小
10
+
11
+ 对应浩鲸规范 J000113。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Collection capacity hints"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-001
3
+ name: 避免静态块中执行复杂逻辑
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000051
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ 避免静态块中执行复杂逻辑
10
+
11
+ 对应浩鲸规范 J000051。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Static initializer complexity"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-002
3
+ name: 避免使用System.gc强制内存回收
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000108
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ 避免使用System.gc强制内存回收
10
+
11
+ 对应浩鲸规范 J000108。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "PMD:DoNotCallSystemExit"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-003
3
+ name: 避免在构造器中创建大量对象
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000109
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ 避免在构造器中创建大量对象
10
+
11
+ 对应浩鲸规范 J000109。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Constructor complexity"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-004
3
+ name: 避免将过大文件一次性加载到内存
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000111
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ 避免将过大文件一次性加载到内存
10
+
11
+ 对应浩鲸规范 J000111。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Memory management"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-005
3
+ name: JDBC结果集大小应当加以限制
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000110
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ JDBC结果集大小应当加以限制
10
+
11
+ 对应浩鲸规范 J000110。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "ResultSet fetch size"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-RESO-006
3
+ name: 谨慎使用Object.clone进行对象拷贝
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000094
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-resource
8
+ description: |
9
+ 谨慎使用Object.clone进行对象拷贝
10
+
11
+ 对应浩鲸规范 J000094。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Clone vs copy constructor"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-SECU-001
3
+ name: 禁止字符串拼接防范SQL注入
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000078
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-security
8
+ description: |
9
+ 禁止字符串拼接防范SQL注入
10
+
11
+ 对应浩鲸规范 J000078。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "PreparedStatement usage — PMD:UsePreparedStatement"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-SECU-002
3
+ name: 不使用MD2/MD4/MD5加密敏感数据
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000075
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-security
8
+ description: |
9
+ 不使用MD2/MD4/MD5加密敏感数据
10
+
11
+ 对应浩鲸规范 J000075。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "SHA256 recommendation"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-SECU-003
3
+ name: 优先使用Spring RestTemplate进行HTTP请求
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000076
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-security
8
+ description: |
9
+ 优先使用Spring RestTemplate进行HTTP请求
10
+
11
+ 对应浩鲸规范 J000076。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "HTTP client abstraction"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-SECU-004
3
+ name: 使用HttpClient必须显式关闭响应资源
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000052
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-security
8
+ description: |
9
+ 使用HttpClient必须显式关闭响应资源
10
+
11
+ 对应浩鲸规范 J000052。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Connection pool management"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-SECU-005
3
+ name: 禁止内外层循环使用相同遍历变量
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000104
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-security
8
+ description: |
9
+ 禁止内外层循环使用相同遍历变量
10
+
11
+ 对应浩鲸规范 J000104。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Shadow variable risk"
@@ -0,0 +1,17 @@
1
+ ---
2
+ id: WC-STYLE-001
3
+ name: 严格把控类成员变量和方法访问控制
4
+ severity: error # error=阻断, warning=警告
5
+ source: J000064
6
+ tool: auto # auto-manual-auto: detected by tool / manual check / AST-grep
7
+ category: wc-style
8
+ description: |
9
+ 严格把控类成员变量和方法访问控制
10
+
11
+ 对应浩鲸规范 J000064。
12
+
13
+ check:
14
+ type: ast-grep # ast-grep / pmd-custom / spotbugs / checkstyle / manual
15
+ pattern: TODO
16
+
17
+ notes: "Access modifier discipline"