feat: PMD 依赖 classpath 自动探测 + SQLFluff AL06 参数修复 + 诊断消息前缀 Code Purifier + AI maxTokens 统一走配置

This commit is contained in:
范智鹏
2026-08-09 00:07:08 +08:00
parent d22bb61aba
commit 8c3e239acd
14 changed files with 535 additions and 9 deletions
Binary file not shown.
+8
View File
@@ -27,6 +27,14 @@ public class PmdRunner {
PMDConfiguration config = new PMDConfiguration();
config.addRuleSet(rulesetPath);
String auxcp = System.getenv("PMD_AUXCP");
if (auxcp == null || auxcp.isEmpty()) {
auxcp = System.getenv("PMD_AUX_CLASSPATH");
}
if (auxcp != null && !auxcp.isEmpty()) {
config.prependAuxClasspath(auxcp);
}
Writer writer = new StringWriter();
JsonRenderer renderer = new JsonRenderer();
renderer.setWriter(writer);