@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.
- 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
package/adapters/java.sh
CHANGED
|
@@ -9,7 +9,7 @@ _is_whalecloud_enabled() {
|
|
|
9
9
|
# Check if whalecloud-java plugin is enabled
|
|
10
10
|
[ -d "$WHALECLOUD_PLUGIN_DIR" ] && \
|
|
11
11
|
([ -f "config/pmd/whalecloud-ruleset.xml" ] || \
|
|
12
|
-
grep -q 'xp-gate-whalecloud-java\|
|
|
12
|
+
grep -q 'xp-gate-whalecloud-java\|xpGateWhalecloudCheck' pom.xml build.gradle build.gradle.kts 2>/dev/null)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
_detect_java_build() {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# book299-20132-python
|
|
2
|
+
|
|
3
|
+
Auto-generated plugin from spec document.
|
|
4
|
+
|
|
5
|
+
## Source
|
|
6
|
+
- **Spec file**: book299-20132-Python语言编码规范.txt
|
|
7
|
+
- **Language**: python
|
|
8
|
+
- **Generated**: 2026-05-13
|
|
9
|
+
- **Rule count**: 73
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### Maven
|
|
14
|
+
```bash
|
|
15
|
+
bash githooks/adapters/plugins/scripts/install-maven.sh
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Gradle
|
|
19
|
+
```bash
|
|
20
|
+
bash githooks/adapters/plugins/scripts/install-gradle.sh
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: book299-20132-python
|
|
3
|
+
name: book299-20132-python
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
languages: [python]
|
|
6
|
+
description: |
|
|
7
|
+
Auto-generated plugin from spec document: book299-20132-Python语言编码规范.txt
|
|
8
|
+
Generated by xp-gate init on 2026-05-13.
|
|
9
|
+
source_file: book299-20132-Python语言编码规范.txt
|
|
10
|
+
severity: error
|
|
11
|
+
categories:
|
|
12
|
+
- wc-style: Coding style rules
|
|
13
|
+
- wc-security: Security rules
|
|
14
|
+
- wc-performance: Performance rules
|
|
15
|
+
maven:
|
|
16
|
+
profile: xp-gate-book299-20132-python
|
|
17
|
+
profile_file: templates/maven/xp-gate-book299-20132-python-profile.xml
|
|
18
|
+
install_script: scripts/install-maven.sh
|
|
19
|
+
gradle:
|
|
20
|
+
config_file: templates/gradle/xp-gate-book299-20132-python.gradle
|
|
21
|
+
install_script: scripts/install-gradle.sh
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0023
|
|
3
|
+
name: 由于异常实际上也是类,因此类命名的约定也适用与异常。不同的是,如果异常实际上是抛出错误的话,异常名后应该加上“Error”的后缀。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-exception
|
|
7
|
+
description: |
|
|
8
|
+
由于异常实际上也是类,因此类命名的约定也适用与异常。不同的是,如果异常实际上是抛出错误的话,异常名后应该加上“Error”的后缀。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0071
|
|
3
|
+
name: 推荐使用logging而非print打印日志,logging的优点是:
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-logging
|
|
7
|
+
description: |
|
|
8
|
+
推荐使用logging而非print打印日志,logging的优点是:
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0003
|
|
3
|
+
name: 名字可以有两个或三个单词组成,但不应多于 4 个,控制在 3 至 30个字母以内。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
名字可以有两个或三个单词组成,但不应多于 4 个,控制在 3 至 30个字母以内。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0007
|
|
3
|
+
name: 模块命名应短小,并且全为小写,如果需要多单词增加可读性,使用下划线进行拼接。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
模块命名应短小,并且全为小写,如果需要多单词增加可读性,使用下划线进行拼接。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0008
|
|
3
|
+
name: 类命名采用驼峰命名约定,大写字母开头,各个单词首字母大写。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
类命名采用驼峰命名约定,大写字母开头,各个单词首字母大写。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0009
|
|
3
|
+
name: Activity、Fragment、Service 等命名必须以 Activity、Fragment、Service相应后缀结束。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
Activity、Fragment、Service 等命名必须以 Activity、Fragment、Service相应后缀结束。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0010
|
|
3
|
+
name: 当接口已有文档说明且主要是被用作调用时,也可以使用函数的命名约定。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
当接口已有文档说明且主要是被用作调用时,也可以使用函数的命名约定。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0011
|
|
3
|
+
name: 函数命名都是小写,必要时使用下划线连接各单词提高可读性。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
函数命名都是小写,必要时使用下划线连接各单词提高可读性。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0012
|
|
3
|
+
name: 只有当已有代码风格已经是混合大小写时,为了保留向后兼容性才使用混合大小写。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
只有当已有代码风格已经是混合大小写时,为了保留向后兼容性才使用混合大小写。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0013
|
|
3
|
+
name: 用单下划线(_)开头表示模块函数是 protected 的。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
用单下划线(_)开头表示模块函数是 protected 的。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0016
|
|
3
|
+
name: 类型变量名称通常应使用简短的驼峰命名,建议将后缀_co 或_contra 添加到用于声明相应的协变和逆变的行为。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
类型变量名称通常应使用简短的驼峰命名,建议将后缀_co 或_contra 添加到用于声明相应的协变和逆变的行为。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0020
|
|
3
|
+
name: 用单下划线(_)开头表示模块变量是 protected 的。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
用单下划线(_)开头表示模块变量是 protected 的。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0024
|
|
3
|
+
name: 一般情况下源程序的有效注释量必须在 30%以上。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
一般情况下源程序的有效注释量必须在 30%以上。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0026
|
|
3
|
+
name: 注释信息不仅要包括代码的功能,还应给出原因,不要为注释而注释。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
注释信息不仅要包括代码的功能,还应给出原因,不要为注释而注释。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0030
|
|
3
|
+
name: 如果需要注释的内容太多,需附加文档进行说明,注释时加上"参见《****》"。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
如果需要注释的内容太多,需附加文档进行说明,注释时加上"参见《****》"。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0032
|
|
3
|
+
name: 代码质量不高但能正常运行,或者还没有实现的代码用# TODO:声明。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
代码质量不高但能正常运行,或者还没有实现的代码用# TODO:声明。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0033
|
|
3
|
+
name: 可以根据[PEP-484]对Python3代码进行类型注释,并且在build时用类型检查工具例如[pytype]进行类型检查。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
可以根据[PEP-484]对Python3代码进行类型注释,并且在build时用类型检查工具例如[pytype]进行类型检查。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0035
|
|
3
|
+
name: 采用文档字符串的形式进行注释(三个双引号的形式)。
|
|
4
|
+
severity: error
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
采用文档字符串的形式进行注释(三个双引号的形式)。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GEN-0038
|
|
3
|
+
name: 如果你的类有公共属性(Attributes),那么文档中应该有一个属性(Attributes)段。并且应该遵守和函数参数相同的格式。
|
|
4
|
+
severity: warning
|
|
5
|
+
tool: auto
|
|
6
|
+
category: wc-style
|
|
7
|
+
description: |
|
|
8
|
+
如果你的类有公共属性(Attributes),那么文档中应该有一个属性(Attributes)段。并且应该遵守和函数参数相同的格式。
|
|
9
|
+
|
|
10
|
+
Auto-extracted from book299-20132-Python语言编码规范.txt.
|
|
11
|
+
|
|
12
|
+
check:
|
|
13
|
+
type: ast-grep
|
|
14
|
+
pattern: TODO
|