Contributing to Scriggo
September 29, 2021 ยท View on GitHub
Want to help contribute to Scriggo? Here is the right place for you. Any help is appreciated, whether it's code, documentation or spelling corrections.
Contributor Checklist
- Create a GitHub account.
- Fork Scriggo.
- Make the changes.
- Add tests (if necessary) and run all the tests (see the section below)
- Open a Pull Request.
Contributing Code
- If you plan on opening a Pull Request that introduces some major change, you should create an issue before sending such patch.
- Follow standard Go convention (formattation, documentation etc...).
- Add tests (if necessary) and run all the tests (see the section below)
Format of the Commit Message
The first line should contain a short summary of the change, while the commit message body should explain the reason for the commit.
An example of a good commit message is this:
cmd/scriggo: add 'version' constant built-in
The 'version' constant built-in represents the version number of the
scriggo command such as '0.50.0'.
Testing Scriggo
When making changes to Scriggo, it is important that:
- all existing tests pass
- new tests are added over fixed bugs and newly implemented features
Running existing tests
There are two kind of tests in Scriggo: tests that are executed using go test, and
tests that are executed through a custom command that compares Scriggo with gc.
- Run
go test ./...in the root of the repository to run the tests of the main module of Scriggo - Run
go test ./...within the directorytestto run the tests of the test module - Run the comparison tests