Skip to content

Commit 2e70e68

Browse files
patapizzafacebook-github-bot
authored andcommitted
Documentation: Coding style
Reviewed By: haoxuany Differential Revision: D7992017 fbshipit-source-id: ddbd92929690fea167ea5cd99602160a8d8a3aa9
1 parent b28e6e5 commit 2e70e68

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ to do this once to work on any of Facebook's open source projects.
2323

2424
Complete your CLA here: <https://code.facebook.com/cla>
2525

26+
## Coding Style
27+
28+
### Simple heuristic: Look around
29+
Match the style you see used in the rest of the project. This includes formatting and naming things in code.
30+
31+
### Simple philosophy: Make it 1% better
32+
The code is far from perfectly clean. When the code surrounding your changes is not consistent, go ahead and make it so. However don't clutter your changes with style clean-up; split the pull requests to make the review process easier.
33+
34+
### Guidelines
35+
- 80-char limit.
36+
- Imports: one block for standard modules and other packages, one block for project modules. Qualified imports at the end of each block, alphabetical ordering.
37+
2638
## Issues
2739
We use GitHub issues to track public bugs. Please ensure your description is
2840
clear and has sufficient instructions to be able to reproduce the issue.

0 commit comments

Comments
 (0)