You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+16-17
Original file line number
Diff line number
Diff line change
@@ -38,38 +38,38 @@ Discussion of issues should be placed transparently in the issue tracker here on
38
38
AngleSharp and its libraries uses features from the latest versions of C# (e.g., C# 7). You will therefore need a C# compiler that is up for the job.
39
39
40
40
1. Fork and clone the repo.
41
-
2. First try to build the AngleSharp.Core libray and see if you get the tests running.
41
+
2. First try to build the AngleSharp.Core library and see if you get the tests running.
42
42
3. You will be required to resolve some dependencies via NuGet.
43
43
44
44
AngleSharp itself does not have dependencies, however, the tests are dependent on NUnit.
45
45
46
-
The build system of AngleSharp uses Cake. A bootstrap script (build.ps1 for Windows or build.sh for *nix systems) is included. Note, that at the moment AngleSharp may require NuGet 3.5, which looks for MSBuild pre-15, i.e., before Visual Studio 2017 on Windows systems. We aim to drop this requirement enitirely soon.
46
+
The build system of AngleSharp uses Cake. A bootstrap script (build.ps1 for Windows or build.sh for *nix systems) is included. Note, that at the moment AngleSharp may require NuGet 3.5, which looks for MSBuild pre-15, i.e., before Visual Studio 2017 on Windows systems. We aim to drop this requirement entirely soon.
47
47
48
48
### Code Conventions
49
49
50
50
Most parts in the AngleSharp project are fairly straight forward. Among these are:
51
51
52
-
- Always use statement blocks for control statements, e.g., in a for-loop, if-condition, ...
53
-
- You may use a simple (throw) statement in case of enforcing contracts on argument
54
-
- Be explicit about modifiers (some files follow an older convention of the code base, but we settled on the explicit style)
52
+
* Always use statement blocks for control statements, e.g., in a for-loop, if-condition, ...
53
+
* You may use a simple (throw) statement in case of enforcing contracts on argument
54
+
* Be explicit about modifiers (some files follow an older convention of the code base, but we settled on the explicit style)
55
55
56
56
There are a couple of rules, which are definitely not standard, but highly recommended for consistency and readability:
57
57
58
-
- AngleSharp uses the RHS convention, where types are always put on the right hand side if possible, i.e., preferring `var` under all circumstances
59
-
- A single empty line between two non-simple statements (e.g., for-loop and if-condition) should be inserted
60
-
- Types are preferred to keywords (`String` instead of `string` or `Int32` instead of `int`)
61
-
-`using` statements must be inside the namespace declaration
58
+
* AngleSharp uses the RHS convention, where types are always put on the right hand side if possible, i.e., preferring `var` under all circumstances
59
+
* A single empty line between two non-simple statements (e.g., for-loop and if-condition) should be inserted
60
+
* Types are preferred to keywords (`String` instead of `string` or `Int32` instead of `int`)
61
+
*`using` statements must be inside the namespace declaration
62
62
63
63
### Development Workflow
64
64
65
65
1. If no issue already exists for the work you'll be doing, create one to document the problem(s) being solved and self-assign.
66
66
2. Otherwise please let us know that you are working on the problem. Regular status updates (e.g. "still in progress", "no time anymore", "practically done", "pull request issued") are highly welcome.
67
-
2. Create a new branch—please don't work in the `master` branch directly. It is reserved for releases. We recommend naming the branch to match the issue being addressed (`feature/#777` or `issue-777`).
68
-
3. Add failing tests for the change you want to make. Tests are crucial and should be taken from W3C (or other specification).
69
-
4. Fix stuff. Always go from edge case to edge case.
70
-
5. All tests should pass now. Also your new implementation should not break existing tests.
71
-
6. Update the documentation to reflect any changes. (or document such changes in the original issue)
72
-
7. Push to your fork or push your issue-specific branch to the main repository, then submit a pull request against `devel`.
67
+
3. Create a new branch—please don't work in the `master` branch directly. It is reserved for releases. We recommend naming the branch to match the issue being addressed (`feature/#777` or `issue-777`).
68
+
4. Add failing tests for the change you want to make. Tests are crucial and should be taken from W3C (or other specification).
69
+
5. Fix stuff. Always go from edge case to edge case.
70
+
6. All tests should pass now. Also your new implementation should not break existing tests.
71
+
7. Update the documentation to reflect any changes. (or document such changes in the original issue)
72
+
8. Push to your fork or push your issue-specific branch to the main repository, then submit a pull request against `devel`.
73
73
74
74
Just to illustrate the git workflow for AngleSharp a little bit more we've added the following graphs.
75
75
@@ -117,7 +117,6 @@ The following files should not be edited directly in the current repository, but
0 commit comments