Skip to content

Commit ae7c7bf

Browse files
authored
Update CONTRIBUTING.md
Fixed code highlighting, added more coding style rules, added link to how to do draft prs.
1 parent 316825a commit ae7c7bf

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## How to Contribute
22

33
1. Follow the code style
4-
```C#
4+
```cs
55
if ()
66
{
77

@@ -16,7 +16,7 @@ catch (...)
1616

1717
}
1818

19-
if ()
19+
if (...)
2020
return;
2121

2222
for (int i = 0; i<=1; i++)
@@ -32,15 +32,26 @@ while (...)
3232
private int _name;
3333
public int Name;
3434
public int Name { get; private set; }
35+
Do not use var.
3536

3637
public void Example(int argName)
3738
{
3839

3940
}
41+
42+
using (...)
43+
{
44+
45+
}
46+
47+
~bit
48+
~(bit ^ 0xFF)
49+
((bit & 0xFF) | 0xFF) >> 0xFF
4050
```
4151

4252
2. Push changes to a new local branch to the 'dev' branch. ('contributor-feature' -> 'dev')
43-
3. You are encouraged to start a PR early so we can spy on what you are working on!
53+
3. You are encouraged to start a PR early so we can spy on what you are working on! [How to do that](https://github.blog/2019-02-14-introducing-draft-pull-requests/)
4454
4. Versions should not be bumped at all
4555
5. gitignore is free game add anything that fits
4656
6. Do not use #region
57+
7. Tabs only. Spaces will not be accepted.

0 commit comments

Comments
 (0)