..

Code Review Checklist

Best Practices

  • Be Polite and Professional
  • Write Small Changes
  • Write Good Change Descriptions
  • Communicate explicitly

My Code Review Checklist

NoDescription
0CR description is clear
1CR description is matched with commit description
2Typo
3indentation, spacing, naming conventions
4Comments. Whys and whats
5Easy to read. Avoid 1-liners
6Dead codes. Is code commented out?
7Are there obvious bugs?
8Are there unit tests and have they been run? Are they adequate?
9Does the design make sense?
10Does the change cover the design requirements?
11Duplicated code?
12Constants. Magic numbers?
13Initialize the default values
14Backward compatible?
15Dependencies. Introduce new dependencies? Break it?
16Failure handling? Edge cases handling?
17Performance?
18How to debug? Does code have logging? Impact on performance?
19Security
20Variable, function names explain themselves

Resources

  1. Google’s Code Review
  2. How to do code review like a human(Part One) and Part two