@boyingliu01/xp-gate 0.8.0 → 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.
- package/adapters/java.sh +1 -1
- package/adapters/plugins/book299-20132-python/README.md +21 -0
- package/adapters/plugins/book299-20132-python/plugin.yml +21 -0
- package/adapters/plugins/book299-20132-python/rules/exception/gen-0023.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/logging/gen-0071.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0001.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0002.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0003.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0004.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0005.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0006.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0007.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0008.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0009.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0010.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0011.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0012.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0013.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0014.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0015.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0016.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0017.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0018.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0019.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0020.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0021.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0022.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0024.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0025.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0026.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0027.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0028.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0029.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0030.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0031.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0032.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0033.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0034.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0035.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0036.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0037.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0038.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0039.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0040.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0041.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0042.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0043.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0044.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0045.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0046.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0047.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0048.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0049.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0050.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0051.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0052.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0053.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0054.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0055.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0056.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0057.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0058.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0059.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0060.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0061.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0062.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0063.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0064.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0065.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0066.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0067.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0068.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0069.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0070.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0072.yml +14 -0
- package/adapters/plugins/book299-20132-python/rules/style/gen-0073.yml +14 -0
- package/adapters/plugins/book299-20132-python/scripts/install-gradle.sh +4 -0
- package/adapters/plugins/book299-20132-python/scripts/install-maven.sh +20 -0
- package/adapters/plugins/book299-4081-c/README.md +21 -0
- package/adapters/plugins/book299-4081-c/plugin.yml +21 -0
- package/adapters/plugins/book299-4081-c/rules/collection/c/345/273/272-5-12.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/collection/c/345/273/272-5-8.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/concurrency/c/350/247/204-4-19.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/concurrency/c/350/247/204-4-20.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-11.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-12.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-6.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-8.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/exception/c/350/247/204-4-9.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-13.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-6.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/performance/c/345/273/272-5-7.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/performance/c/350/247/204-4-14.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/performance/c/350/247/204-4-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/resource/c/345/273/272-4-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/security/c/350/247/204-4-13.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/216/237-1-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-2-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-5.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-6.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-7.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-3-8.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-4-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-4-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-10.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-11.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-5.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/345/273/272-5-9.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-10.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-11.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-12.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-13.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-14.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-16.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-17.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-18.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-19.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-20.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-5.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-6.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-7.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-8.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-2-9.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-10.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-11.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-12.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-13.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-14.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-15.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-16.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-17.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-18.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-19.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-2.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-20.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-21.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-22.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-5.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-6.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-7.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-8.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-3-9.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-1.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-10.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-15.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-16.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-17.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-18.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-3.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-4.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-5.yml +14 -0
- package/adapters/plugins/book299-4081-c/rules/style/c/350/247/204-4-7.yml +14 -0
- package/adapters/plugins/book299-4081-c/scripts/install-gradle.sh +4 -0
- package/adapters/plugins/book299-4081-c/scripts/install-maven.sh +20 -0
- package/adapters/plugins/book299-4083-javascriptes5/README.md +21 -0
- package/adapters/plugins/book299-4083-javascriptes5/plugin.yml +21 -0
- package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0001.yml +14 -0
- package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0002.yml +14 -0
- package/adapters/plugins/book299-4083-javascriptes5/rules/security/gen-0003.yml +14 -0
- package/adapters/plugins/book299-4083-javascriptes5/scripts/install-gradle.sh +4 -0
- package/adapters/plugins/book299-4083-javascriptes5/scripts/install-maven.sh +20 -0
- package/adapters/plugins/p3c-java/README.md +66 -0
- package/adapters/plugins/p3c-java/plugin.yml +30 -0
- package/adapters/plugins/p3c-java/scripts/install-gradle-p3c.sh +45 -0
- package/adapters/plugins/p3c-java/scripts/install-maven-p3c.sh +98 -0
- package/adapters/plugins/p3c-java/templates/gradle/xp-gate-p3c-gradle.gradle +68 -0
- package/adapters/plugins/p3c-java/templates/maven/xp-gate-p3c-profile.xml +81 -0
- package/adapters/plugins/whalecloud-java/README.md +98 -0
- package/adapters/plugins/whalecloud-java/plugin.yml +45 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-008.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-009.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-010.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-011.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/collection/wc-collect-012.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-008.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-009.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-010.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-011.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-012.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-013.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/concurrency/wc-concur-014.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-008.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-009.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-010.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/exception/wc-except-011.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/logging/wc-log-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/performance/wc-perf-008.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/resource/wc-reso-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/security/wc-secu-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/security/wc-secu-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/security/wc-secu-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/security/wc-secu-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/security/wc-secu-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-001.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-002.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-003.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-004.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-005.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-006.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-007.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-008.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-009.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-010.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-011.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-012.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-013.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-014.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-015.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-016.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-017.yml +17 -0
- package/adapters/plugins/whalecloud-java/rules/style/wc-style-018.yml +17 -0
- package/adapters/plugins/whalecloud-java/scripts/install-gradle-whalecloud.sh +97 -0
- package/adapters/plugins/whalecloud-java/scripts/install-maven-whalecloud.sh +201 -0
- package/adapters/plugins/whalecloud-java/templates/gradle/xp-gate-whalecloud-gradle.gradle +73 -0
- package/adapters/plugins/whalecloud-java/templates/maven/xp-gate-whalecloud-profile.xml +148 -0
- package/hooks/pre-commit +26 -23
- package/hooks/pre-push +7 -3
- package/lib/__tests__/ui-detector.test.ts +94 -0
- package/lib/init.js +44 -0
- package/lib/ui-detector.ts +3 -3
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/claude-code/skills/ralph-loop/SKILL.md +41 -3
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/SKILL.md +147 -4
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/opencode/skills/ralph-loop/SKILL.md +41 -3
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/opencode/skills/sprint-flow/SKILL.md +147 -4
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/qoder/skills/ralph-loop/SKILL.md +41 -3
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/qoder/skills/sprint-flow/SKILL.md +147 -4
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
- package/skills/delphi-review/AGENTS.md +1 -1
- package/skills/ralph-loop/SKILL.md +41 -3
- package/skills/sprint-flow/AGENTS.md +1 -1
- package/skills/sprint-flow/SKILL.md +147 -4
- 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"
|