Skip to the content.

Main > Process

Code Review

This section is about reviewing code that has been committed and pushed to GitHub. For general Git guidelines and practices, see Git

General

The Review

Code review is not to make sure something works; it is to make sure it is workable going forward. Acceptance testing should have been handled previously. It is, however, reasonable and expected that the reviewer will make sure the author has automated tests covering the functionality added, and that they have verified that the feature works.

As a reviewer, begin from the standpoint that the code in front of you works. If something about the author’s design, implementation, or style confuses you, ask them questions that will help remove that confusion.

Don’t +1 something that you don’t understand. Code review is the one time that someone will be reading this code before it is committed. It is a special time because it will be fresh in the author’s head, and thus are very well-suited to field questions from the reviewer. Code review is a partnership between author and reviewer to make sure that going forward, this code is clear and usable for the next time someone has to touch it when the details have become fuzzy from the fog of time.

As a reviewer, if you have worries about the code in its current state, seek to back those up with something other than your gut feeling. Use documentation, sample code, writing from members of the community, etc. to back up what you’re saying.

Discussions of the style guide are to be limited to the style guide. Code review is not an opportunity for reviewers to enforce personal feelings of theirs not covered in the style guide.

Assigning Reviewers

Adding Dependencies

When adding dependencies, please follow the guidelines in Adding Dependencies.