-
Notifications
You must be signed in to change notification settings - Fork 0
Code Review
HUPPPPPP edited this page Jul 24, 2025
·
1 revision
Code reviews ensure code quality, maintainability, and adherence to best practices.
- Identify bugs and vulnerabilities
- Ensure adherence to coding standards
- Improve readability and maintainability
- Share knowledge among team members
- Ensure the code is complete and tested before submission.
- Provide a clear title and description of the changes.
- Include relevant issue references if applicable.
- Check for correctness and adherence to project standards.
- Review code structure, readability, and maintainability.
- Identify potential performance improvements.
- Verify proper error handling and security measures.
- Does the code function as expected?
- Are all edge cases handled?
- Is the code self-explanatory and well-commented?
- Is the naming of variables, functions, and classes meaningful?
- Are functions concise and modular?
- Is there any redundant or unused code?
- Are there any security vulnerabilities (e.g., SQL injection, XSS)?
- Is the code optimized for performance?
- Are test cases included and passing?
- Is there sufficient documentation for new changes?
- If changes are needed, request modifications and add comments.
- Once approved by at least one reviewer, the code can be merged.
- Ensure the main branch remains stable after merging.
- Keep PRs small and focused.
- Use descriptive commit messages.
- Provide constructive feedback during reviews.
- Encourage open discussions for learning and improvement.