Code Review Instructions
When reviewing code, you should:
-
Check for security vulnerabilities
- Look for SQL injection risks
- Check for XSS vulnerabilities
- Verify input validation
- Review authentication and authorization
-
Verify error handling
- Ensure errors are caught and handled appropriately
- Check that error messages don't leak sensitive information
- Verify proper logging of errors
-
Assess code clarity
- Check for clear variable and function names
- Verify adequate comments for complex logic
- Look for overly complex functions that should be broken down
- Ensure consistent code style
-
Suggest improvements
- Identify opportunities for refactoring
- Point out performance issues
- Recommend better patterns or practices
- Highlight areas that need tests