For Reviewers and Contributors
Code reviews ensure:
- Quality - Bugs are caught early
- Consistency - Code follows standards
- Knowledge - Everyone learns
- Security - Vulnerabilities are found
- Performance - Optimization opportunities
| Check | Question |
|---|---|
| Correctness | Does it do what it should? |
| Edge Cases | Are edge cases handled? |
| Error Handling | Are errors handled gracefully? |
| Validation | Is input validated? |
| Check | Question |
|---|---|
| Readability | Is the code easy to understand? |
| Naming | Are names clear and consistent? |
| Comments | Are comments helpful? |
| Structure | Is the code well-organized? |
| Check | Question |
|---|---|
| Patterns | Does it use appropriate patterns? |
| Separation | Are concerns separated? |
| DRY | Is code repeated unnecessarily? |
| SOLID | Does it follow SOLID principles? |
| Check | Question |
|---|---|
| Coverage | Are all paths tested? |
| Quality | Are tests meaningful? |
| Integration | Does it work with other parts? |
| Check | Question |
|---|---|
| Efficiency | Is it efficient? |
| Resources | Does it use resources wisely? |
| Scale | Will it work at scale? |
| Check | Question |
|---|---|
| Input | Is input properly sanitized? |
| Authentication | Is auth properly handled? |
| Authorization | Are permissions checked? |
| Data | Is sensitive data protected? |
✅ "Consider using map instead of forEach here for better readability."
✅ "This function is doing too much. Could we split it into smaller functions?"
✅ "Great approach! This solves the problem elegantly."
❌ "This is wrong."
❌ "Fix this."
❌ "I don't like this."
❌ "Why did you do it this way?"
Format:
- What: What needs to change
- Why: Why it should change
- How: How to change it
- Example: Example code if needed
- Read the description
- Check the issue
- Overview
- Quick wins
- Line by line
- Think like the author
- Test mentally
- Check tests
- Overall assessment
- Major issues
- Minor issues
- Recommendation
| Outcome | When to Use | Next Steps |
|---|---|---|
| Approve | All good | Merge |
| Request Changes | Issues need fixing | Contributor fixes |
| Comment | Questions or suggestions | Discuss and decide |
| Metric | Good | Needs Improvement |
|---|---|---|
| Review Time | < 24h | > 48h |
| PR Size | < 200 lines | > 500 lines |
| Comments/PR | 3-10 | 0 or > 20 |
| Time to Merge | < 48h | > 1 week |
Remember: We're all here to build something great together. Be kind, be constructive, and always keep learning. 🌱