Code reviews are an integral part of our development workflow. They ensure that the codebase remains clean, adheres to our conventions, and is thoroughly tested.
Quality Assurance: Before merging a Pull Request (PR), it is mandatory to get it reviewed. This process ensures the introduced changes meet our quality standards.
Knowledge Sharing: Code reviews allow team members to learn from each other, share expertise, and spread knowledge about various parts of the application.
Consistent Codebase: Adhering to a consistent style and structure makes the code more readable and maintainable by all team members.
Trigger: Code reviews are conducted before merging a PR. No code gets merged without an approval.
Responsibility: While the primary reviewer is often the main developer of the project, peer reviews are also encouraged.
Platform: All our code reviews are facilitated through GitHub.
Coding Standards: While we don't have rigid coding standards, the code should be easy for others to maintain. Following conventions is crucial.
Functionality: The feature or bug fix implemented should work as expected and be accompanied by appropriate tests.
Simplicity: The best code is not necessarily the most clever or intricate code. It should be straightforward, easy to read, and easy to maintain.
Providing feedback is an art. Here are some guidelines to ensure your feedback is constructive and helpful:
Disagreements are natural. When they arise: