You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pegjs/.github/CONTRIBUTING.md

2.1 KiB

Contribution Guidelines

PEG.js is an open source project and it welcomes contributions. To make sure your contributions are useful and the overall process is smooth, please adhere to these guidelines.

You can contribute in three main ways: by reporting bugs, requesting features, and contributing code.

Reporting Bugs

You can report bugs using GitHub issues. Before submitting a bug report, search the existing reports to see if the bug wasnt reported already.

Each bug report should contain this information:

  • Steps to reproduce
  • What you expected to happen
  • What happened instead

In most cases, it is useful to include a minimal example (grammar + input) reproducing the problem.

Requesting Features

You can request features using GitHub issues. Before submitting a feature request, search the existing requests to see if the feature wasnt requested already.

Each feature request should contain this information:

  • Feature description
  • Why do you request it

Contributing Code

You can contribute code using GitHub pull requests. However, for anything but trivial changes, file an issue first. Your idea may not fit the project, or the implementation you have in mind may not be the right one. Filing an issue in these cases will prevent wasting time and effort on both sides.

Split your change into atomic commits with descriptive commit messages adhering to these conventions. Have a look in the commit history to see good examples.

When appropriate, add documentation and tests.

Before submitting, make sure your change passes the specs (make spec) and ESLint checks (make lint).