Code Review Checklist - Jomsaruj/DEK-COM GitHub Wiki
The following attributes should be verified during a code review:
Repository
Branch management
- Anything in the
masterbranch is deployable. - The latest version of application always merge into
developbranch beforemasterbranch. - Always delete unnecessary merged branch.
- Avoid unnecessary pull requests.
Project structure
File location management
- All image files located in
mediadirectory. - All
HTMLfiles located intemplatesdirectory. - All
CSSfiles located instaticdirectory.
Clarity and Maintainability
Coding style
- Code is clear and easy to understand with no complex coding style.
- Docstring always contain information about method description, parameter(s) and return value.
- Well commented and documented so other programmers able to maintain the code.
- Write communicate code by introduce explanatory variable.
- Always run Flake 8 and modify the code.
- Refactor the code to make the code clearer.
Modularity
Directory management
- Separate each part of
test.pyinto individual test file. - Separate each part of
models.pyinto individual models file.
Reliability and Robustness
Unit testing requirement
- Unit test is readable.
- Always test edge case and extreme value.
- Implement Continuous Integration.