Please keep all these points in mind while reviewing a PR.
- Check for function placement in correct modules/classes (SRP)
- Check for repetition of code (DRY)
- Check for variable/function naming (Code readability)
- Functions should have consistent return types (Code consistency)
- Documentation at places where we have assumed something (Code maintainability)
- Documentation for logic where complex logic is there. (Code maintainability)
- Give preference to readable code(more LOC) than complex(less LOC) (Code readability)
Respect code boundaries and domain structure (DDD). Make sure to discuss the code design. This can also be done on a whiteboard before starting the PR review.
Check this PR for example PR review.