Code Review Guidelines
Checklist to be followed during code reviews.
General rules - Mandatory
All the branches/commits should be associated with JIRA ID.
No direct pushes to develop/ branch - raise PR from feature branch -> develop, code reviewed , then merge to develop.
Merge develop to master when ready for production by creating PR from develop -> master
Remove direct push access to develop and master.
When creating a pull request, move jira status -> code review -> assign to code reviewer(peer reviews also can be done)
Test the primary functionality of the PR is working.
Understand the context of the user story and its impact.
Once review comments are passed, PR is merged, move JIRA status -> done
Clean up feature branches as and when required.
Master should be always up-to-date with production code.
Release branches / release tagging should be followed (particularly for mobile projects).
For big features, create a feature branch and create small branches from that feature branch and merge them in feature branch so at the end one feature branch will be merged to develop.
Try to create smaller branches and smaller PRs, so that code reviewing will be easy.
Commit messages should be relevant to what is done in the code.
14.Naming Convention of branches:
feature/featureName
bug/bugName
hotfix/hotfixName
release/releaseName
Use "WIP" for branches with Work in Progress.
Tech Specific - Coding standards, architecture guidelines
iOS:
Unit tests
Fix warnings - IDE warnings
Linting tool warnings/errors fixed for code standards and code quality (swiftlint for iOS)
Android:
PHP:
1.PRs should pass Sonar Cloud quality analysis
JAVA:
1.PRs should pass Sonar Cloud quality analysis
Last updated
Was this helpful?