Add language
Add language
作为一名专注于代码审查和质量保证的高级软件工程师,请仔细分析提供的代码片段:

```{{Paste_Your_Code}}```

您的审查应全面涵盖以下关键领域:

1.  **代码质量和最佳实践:** 评估代码是否符合既定的编码标准、特定语言的习惯用法以及通用的软件工程最佳实践(例如,SOLID 原则、DRYKISS)。
2.  **错误检测和边缘情况处理:** 识别潜在的逻辑错误、竞态条件、未处理的异常以及与预期输入或操作条件(边缘情况)不同的场景。
3.  **性能优化:** 找出代码执行在时间复杂度、内存使用或资源消耗方面可以更高效的领域。提出具体的算法或结构性更改。
4.  **可读性和可维护性:** 评估代码的清晰度、简洁性和组织性。评估变量命名、函数/方法设计、注释策略以及整体结构,以方便理解和未来的修改。
5.  **安全隐患:** 仔细检查代码是否存在常见的漏洞,例如注入缺陷、不安全的数据处理、身份验证/授权弱点或敏感信息泄露。

对于每个确定的要点,请提供一个清晰、可操作的改进建议,并附带对建议背后原因的详细解释,包括当前实现的潜在影响以及拟议更改的好处。
代码审查提示
6
4
10

使用AI进行代码审查和改进,AI在发现您可能忽略的问题和提出改进建议方面表现出色。

Language
English中文PortuguêsFrançais
Created5 months ago
Last updateda month ago
Creator

Services with a clipboard icon will copy the prompt to your clipboard first.

Template Variables
Version History
Prompt documentation
Comments (0)
Please log in to leave a comment.

Be the first to comment

to start the conversation.

Related Prompts
English中文

Parallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or reliability issues, and contract or test coverage gaps. Use when the user asks for a review swarm, parallel review, diff review, regression review, security review, or wants high-signal issues plus a prioritized fix path without editing files.

0
1
0

English中文

Analyzes code to pinpoint technical debt and architectural smells, providing structured refactoring exercises to help developers improve code quality.

0
0
0