-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typos, formatting and links in import-etl docs and update README.…
…md (#291) * Fix typos, formatting and links in import-etl docs. Also update README.md * Move Styling from README to Style.md
- Loading branch information
1 parent
7e2ac04
commit a60583b
Showing
4 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## GenomicsDB Style Guide | ||
|
||
For Java code, roughly adhere to [Google Java Style](https://google.github.io/styleguide/javaguide.html) and for C/C++ roughly adhere to [Google C++ Style](https://google.github.io/styleguide/cppguide.html) for consistency/readabilty | ||
|
||
GenomicsDB Example Rules: | ||
|
||
``` | ||
Use spaces instead of tabs. | ||
Use 2 spaces for indenting. | ||
Add brackets even for one line blocks e.g. | ||
if (x>0) | ||
do_foo(); | ||
should ideally be | ||
if (x>0) { | ||
do_foo(); | ||
} | ||
Pad header e.g. | ||
if(x>0) should be if (x>0) | ||
while(x>0) should be while (x>0) | ||
One half indent for class modifiers. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters