We want to make contributing to this project as easy and transparent as possible. There is a design ethos behind the library, so it is recommended to reach out via a GitHub issue on the project to discuss non-trivial changes you may wish to make. These changes include, for example, wanting to change existing API, wanting to furnish a new utility, or wanting to change underlying behavior substantially. Let's avoid situations where you put in a lot of hard work, only to have to change it substantially or get your pull request rejected.
This library has another home inside Facebook repos. From there it is subjected to regular continuous integration testing on many platforms, and used by many projects.
We actively welcome your pull requests.
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Utilize clang-format.
- If you haven't already, complete the Contributor License Agreement ("CLA").
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects.
Complete your CLA here: https://code.facebook.com/cla
We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue.
Facebook has a bounty program for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue.
- 2 spaces for indentation rather than tabs
- 100 character line length
- Member variables have trailing underscore_
- BigCamelCase for classes and structs, and smallCamelCase for functions and variables (exception is if you are trying to match a substantial part of a standard library interface).
- 1TBS braces
- Most of all, try to be consistent with the surrounding code. We have automated tools that will enforce clang-format style for some files (e.g. the C++ core) once we import your pull request into our internal code reviewing tools.
By contributing to dispenso, you agree that your contributions will be licensed under the LICENSE.md file in the root directory of this source tree.