Skip to content

Commit

Permalink
Documentation: Coding style
Browse files Browse the repository at this point in the history
Reviewed By: haoxuany

Differential Revision: D7992017

fbshipit-source-id: ddbd92929690fea167ea5cd99602160a8d8a3aa9
  • Loading branch information
patapizza authored and facebook-github-bot committed May 14, 2018
1 parent b28e6e5 commit 2e70e68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ to do this once to work on any of Facebook's open source projects.

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

## Coding Style

### Simple heuristic: Look around
Match the style you see used in the rest of the project. This includes formatting and naming things in code.

### Simple philosophy: Make it 1% better
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.

### Guidelines
- 80-char limit.
- Imports: one block for standard modules and other packages, one block for project modules. Qualified imports at the end of each block, alphabetical ordering.

## Issues
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.
Expand Down

0 comments on commit 2e70e68

Please sign in to comment.