We want to make contributing to this project simple and convenient.
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Facebook's internal repository remains the source of truth. It is automatically synchronized with GitHub. Contributions can be made through regular GitHub pull requests.
We actively welcome your pull requests. If you are planning on doing a larger chunk of work or want to change an external facing API, make sure to file an issue first to get feedback on your idea.
- Fork the repo and create your branch from
master
. - If you've added code that should be tested, add tests.
- Ensure the test suite passes and your code lints.
- Consider quashing your commits (
git rebase -i
). One intent alongside one commit makes it clearer for people to review and easier to understand your intention. - If you haven't already, complete the Contributor License Agreement ("CLA").
Copy and paste this to the top of your new file(s):
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
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.
- The Hermes coding style is generally based on the LLVM Coding Standards.
- Match the style you see used in the rest of the project. This includes formatting, naming things in code, naming things in documentation.
- Run
clang-format
, using the provided.clang-format
configuration.
By contributing to Hermes, you agree that your contributions will be licensed under the LICENSE file in the root directory of this source tree.