MCPcopy Create free account
hub / github.com/echoVic/blade-code / reviewCode

Method reviewCode

src/agent/LLMManager.ts:212–226  ·  view source on GitHub ↗

* 代码审查

(code: string, language: string)

Source from the content-addressed store, hash-verified

210 * 代码审查
211 */
212 public async reviewCode(code: string, language: string): Promise<string> {
213 const prompt = `请审查以下 ${language} 代码,指出潜在问题和改进建议:
214
215\`\`\`${language}
216${code}
217\`\`\`
218
219请从以下角度分析:
2201. 代码质量
2212. 性能优化
2223. 安全性
2234. 可维护性`;
224
225 return await this.chat(prompt);
226 }
227
228 /**
229 * 情绪分析

Callers

nothing calls this directly

Calls 1

chatMethod · 0.95

Tested by

no test coverage detected