daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest May 16th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # How to code review?
  2.  
  3. - Review is a top-priority task. Review code soon as possible. It can help to avoid massive merge of PRs at the end of sprint and won’t waste time of team members, especially if tasks are related to each other.
  4. - First of all you should check if the changes are related to the task. There shouldn’t be a thing like “let me also add this stuff to this PR by the way”.
  5. - Initial PR comment should contain the link to corresponding trello card.
  6. - You should not only check the code, but also check if the modified component is working correctly in the app. You check the code very carefully, every line. When checking the component in the app, you should test all possible use cases.
  7. - The code should follow established code style and styled with prettier. Also, please follow English language rules and use common sense when naming variables. Do not repeat yourself, but keep it simple.
  8. - Code review is not for critics, it’s rather a place for common effort to make a better product. That’s why it is important to always point to a specific mistake, so that person understands it, and also to suggest solutions for difficult situations. Do not argue with the author for too long, ask other team members about it.
  9. - Review all changes at once, do not review single commits one by one.
  10. - Code style changes and documentation changes are only allowed for places strictly related to the task. If those changes are not related to the task - open a separate PR for them. Such unrelated changes make reviews harder and potentially create merge conflicts.
  11. - If you make a helper function and use it in more than 1 place, put it in “utils” directory.
  12. - Remember: some components are interdependent, so you should also check their work.
  13. - If you remove some functionality, you should make sure that everything exclusively related to that functionality is removed: any utils, any common styles, metrics, colors or documentation.
  14. - When modifying the list of npm dependencies - check that every component that depends on that package works and that npm package versions are strictly fixed.
  15. - If anything is unclear in the code and you ask the author about it - ask him to add a comment about it, ask him to explain why did he choose that solution, and not the other.
RAW Paste Data
Top