Debian Codegraph @

CONTRIBUTING.md

raw symbols SCIP
1 # Contribution Guidelines
2
3 The best way to contribute to PEG.js is by using it and giving back useful
4 feedback — reporting discovered bugs or requesting missing features.
5
6 You can also contribute code, but be advised that many patches end up being
7 rejected, usually because the change doesn’t fit the project or because of
8 various implementation issues. In almost all cases it’s best to get in touch
9 first before sending a patch.
10
11 ## Reporting Bugs
12
13 Report bugs using [GitHub issues][issues]. Before submitting a bug report,
14 please [search existing reports][issues-search-bugs] to see if the bug wasn’t
15 reported already.
16
17 In the report, please describe:
18
19 * Steps to reproduce the problem
20 * Expected result(s)
21 * Actual result(s)
22
23 In most cases, it’s also useful to include a **minimal** example (grammar +
24 input) reproducing the problem.
25
26 ## Requesting Features
27
28 Request features using [GitHub issues][issues]. Before submitting a feature
29 request, please [search existing requests][issues-search-enhancements] to see if
30 the feature wasn’t requested already.
31
32 In the request, please describe:
33
34 * How the feature should work
35 * Use case(s) behind it
36
37 ## Contributing Code
38
39 Contribute code using [GitHub pull requests][pulls]. For non-trivial changes,
40 first file a corresponding bug report or feature request. This will ensure the
41 *problem* is separated from a *solution*.
42
43 Split your change into atomic commits with descriptive messages adhering to
44 [these conventions][git-commit-messages]. Have a look in the commit history to
45 see good examples.
46
47 When appropriate, add documentation and tests.
48
49 Before submitting, make sure your change passes the specs (`make spec`) and
50 ESLint checks (`make lint`).
51
52 [issues]: https://github.com/pegjs/pegjs/issues
53 [issues-search-bugs]: https://github.com/pegjs/pegjs/issues?q=is%3Aopen+is%3Aissue+label%3ABug
54 [issues-search-enhancements]: https://github.com/pegjs/pegjs/issues?q=is%3Aopen+is%3Aissue+label%3AEnhancement
55 [pulls]: https://github.com/pegjs/pegjs/pulls
56 [git-commit-messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html