Skip to content

Commit cbefeb6

Browse files
committed
Merge branch 'main' of https://github.com/tilkinsc/Lua.NET
2 parents 791df05 + 5737a2b commit cbefeb6

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

CONTRIBUTING.md

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

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

88
}
99

10+
if (...)
11+
return;
12+
1013
try
1114
{
1215

@@ -16,30 +19,49 @@ catch (...)
1619

1720
}
1821

19-
if ()
20-
return;
21-
2222
for (int i = 0; i<=1; i++)
2323
{
2424

2525
}
2626

27+
foreach (Type variable in new Type())
28+
{
29+
30+
}
31+
32+
foreach (var variable in new Dictionary<string, string>().keys)
33+
{
34+
35+
}
36+
2737
while (...)
2838
{
2939

3040
}
3141

42+
using (...)
43+
{
44+
45+
}
46+
3247
private int _name;
3348
public int Name;
3449
public int Name { get; private set; }
50+
Only use var when using foreach with a dictionary's key or value sets.
3551

3652
public void Example(int argName)
3753
{
3854

3955
}
56+
57+
~bit
58+
~(bit ^ 0xFF)
59+
((bit & 0xFF) | 0xFF) >> 0xFF
4060
```
4161

4262
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!
63+
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/)
4464
4. Versions should not be bumped at all
45-
5. gitignore is free game add anything that fits
65+
5. gitignore is free game add anything that fits
66+
6. Do not use #region
67+
7. Tabs only. Spaces will not be accepted.

0 commit comments

Comments
 (0)