...
- Finding bugs
- Bugs found in code review require much less effort to find & fix than bugs found in QA/testing.
- Coding style. Ensure that our Java Conventions are followed.
- Improving code quality
- Teaching best practices
- Code consistency (can't tell the author from the code)
- Learning code
- Efficiency (getting pull requests reviewed quickly)
- Ensuring that the pull request guidelines are followed.
...
- Best Kept Secrets of Peer Code Review
- Best Practices for Code Review
- The commandments of navigating code reviews
- Best Practice for Peer Code Review (PDF)
- Things Everyone Should Do: Code Review
- Code Review as Relationship Builders
- How Should Code Reviews Be Carried Out
- Code Review Metrics
- Code Review Tips
- Reflections on the Quality of Open Source Software
- http://www.perlmonks.org/?node_id=744932
- http://goodmath.scientopia.org/2011/07/06/things-everyone-should-do-code-review/
- https://talk.openmrs.org/t/maintainer-happiness-github-saved-replies/14927
- https://improvingsoftware.com/2011/06/27/5-best-practices-for-commenting-your-code/
FAQ
- Where is the asynchronous code review application?
- What should I do if I find something wrong during a personal or asynchronous code review?
- Assuming that this review is happening in Github, add a comment to the review at that line.
- We need to make sure that this is a constructive process. The reviewer should not slam or even poke fun at the developer. Code reviews are meant to be both constructive and instructive. Not all of us have the same level of understanding of the code, so please be kind. In addition, the developer should not be defensive about his/her code. If the developer disagrees with the reviewer (which is totally reasonable), that developer should state their case and ask other developers for their opinion.
- Clarify it. Send an email to the developer asking for clarification
- How do I request a code review?
- Go to the ticket on the JIRA board, click on request review, and Add the link to your pull request in the description section. Make sure you have claimed the issue first before you can do this. Set the status of the ticket to "Code Review (Pre-Commit)". (A ticket that's ready for work must be assigned to you first, so first make sure you click "Claim Ticket" to assign it to yourself.)
- What types of issues are we looking to capture during code review?
- See the Code Review Checklist.
- How much code should be reviewed in a single code review session?
- Ideally, less than 90 minutes without a break and less than 300 lines of code in one sitting