feat: PMD 依赖 classpath 自动探测 + SQLFluff AL06 参数修复 + 诊断消息前缀 Code Purifier + AI maxTokens 统一走配置
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user