Code Standards
Naming Conventions
- When using abbreviations in CamelCase, keep the first letter capitalized and lowercase the remaining letters. For example
- A "BMI Thresholds" variable name must be written as
bmiThresholds
- An "ANC Patient Repository" class name must be written as
AncPatientRespository
- A "BMI Thresholds" variable name must be written as
Branch Naming
Create a new branch using the following naming convention:
issue-number-feature-name
For example:
238-fix-login-page-styling
Commit Messages
Here are some guidelines when writing a commit message:
- Separate subject/title from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line/Title
- Do not end the subject line with a period
- Use hyphens at the beginning of the commit messages in the body
- Use the imperative mood in the commit messages
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
To dive deeper into these guidelines, please view this article by Chris Beams.
Sample commit message:
Implement login functionality
- Add login page view
- Implement authentication and credentials management
- Add tests for login implementation
- Fix sync bug causing crash on install