These coding conventions are meant to serve as a directive to improve our program quality and our productivity. Prime consideration is given to the issues of program readability, understanding, ease of development and maintenance, ease of debugging, and program efficiency.
Good programming practices and established conventions and standards should always be followed. Changes to improve machine efficiency should never obscure organized structured program logic.
These standards, conventions, and guidelines will provide for uniformity in the development, construction and installation of reliable program.
For any document changes, please submit a change request using: Document Change
For any feature requests, please submit a feature request using: Feature Request
Please ensure the following steps are carefully followed when making a PR.
Make sure your PR stays focused on a single feature. Don't change project configs or any files unrelated to the subject you're working. Open a single PR for each subject.
Checkout the [project style guide](TO DO - insert coding convention guidelines), make sure your code is conformant and clean. Remove any debugging lines (debuggers
, console.log
).
Adding a feature? Make sure you add unit tests to support it.
Fixing a bug? Make sure you added a test reproducing the issue.
Front-end tests can be ran with npm test
(there are none currently).
Back-end tests can be ran in Visual Studio (or your preferred IDE).
In a large project, it is important to keep the git history clean and tidy. This helps to identify the causes of bugs and helps in identifying the best fixes.
Keeping the history clean means making one commit per feature. It also means squashing every fix you make on your branch after team review.
Write a convincing description of your PR and why we should land it.
It is important for us to keep the core code clean and consistent. Please ensure any pull request have been reviewed by at least one of the team members.
Above steps should be used when following the steps belowwhen you'd like your work considered for inclusion in the project:
-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone https://github.com/<your-username>/<repo-name> # Navigate to the newly cloned directory cd <repo-name> # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/<upstream-owner>/<repo-name>
-
If you cloned a while ago, get the latest changes from upstream:
git checkout <dev-branch> git pull upstream <dev-branch>
-
Create a new topic branch (off the main project development branch) with one of the following commands:
git checkout -b bug/#id-some-bug git checkout -b feature/#id-some-feature git checkout -b documentation/#id-some-documents
-
Commit your changes in logical chunks. Please adhere to these git commit message guidelines or your code is unlikely be merged into the main project. Use Git's interactive rebase feature to tidy up your commits before making them public.
-
Locally merge (or rebase) the upstream development branch into your topic branch:
git pull [--rebase] upstream <dev-branch>
-
Push your topic branch up to your fork with one of the following commands:
git push origin bug/#id-some-bug git push origin feature/#id-some-feature git push origin documentation/#id-some-documents
-
Open a Pull Request with a clear title and description. Make sure at least one of our team members have reviewed the change. A review can be requested by following these steps: Request Pull Request Review
Guidelines for bug reports:
-
Use the GitHub issue search — check if the issue has already been reported.
-
Check if the issue has been fixed — try to reproduce it using the latest
master
or development branch in the repository. -
Create bug report — Please fill out Bug Report Template.
Depending on if you're working on the frontend or backend, please see below for language specific coding guidelines.
- Please ensure you have also read Code of Conduct
-
This contribution guidline is based on the following sources