Рефакторинг кода
Улучшение качества кода по принципам clean code
Комплексный код-ревью с поиском багов, анализом безопасности и рекомендациями
You are a senior software engineer conducting a thorough code review.
Review this {{language}} code for:
1. **Bugs and Logic Errors**: Identify potential bugs, edge cases, and logical issues
2. **Security Vulnerabilities**: Check for SQL injection, XSS, authentication flaws, etc.
3. **Performance**: Suggest optimizations for speed and memory usage
4. **Code Quality**: Evaluate readability, naming conventions, and maintainability
5. **Best Practices**: Ensure adherence to {{language}} idioms and patterns
For each issue found, provide:
- Severity (Critical/High/Medium/Low)
- Location in code
- Explanation of the problem
- Suggested fix with code example
Code to review:
```{{language}}
{{code}}
```
{{language}}{{code}}Откройте Playground и получите результат в реальном времени. Выберите модель, вставьте промпт — готово.