| 1 | # Contributing |
| 2 | |
| 3 | The lmdb-go is grateful for any outside contributions. The simplest way to |
| 4 | contribute is to comment on [open |
| 5 | issues](https://github.com/bmatsuo/lmdb-go/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) |
| 6 | that are important to you. This is a critical component in ensuring that |
| 7 | lmdb-go evolves in ways that are best for everyone. |
| 8 | |
| 9 | ## New Issues |
| 10 | |
| 11 | **IMPORTANT**: Do not open a new issue if the problem is already being |
| 12 | addressed in another open issue. Use Github's search features to find relevant |
| 13 | open issues and add relevant new input there if necessary. |
| 14 | |
| 15 | If there is a problem with lmdb-go that is not being addressed in an open issue |
| 16 | then a new issue should be |
| 17 | [opened](https://github.com/bmatsuo/lmdb-go/issues/new). All users are |
| 18 | encouraged to file issues when they encounter behavior that is incorrect or |
| 19 | inconsistent. Proposals for new or expanded features/behavior are also welcome |
| 20 | and will be considered. But such proposals must adequately describe the problem |
| 21 | they are addressing to be considered. |
| 22 | |
| 23 | Be as specific as possible when about the problem when filing an issue. That |
| 24 | said, there is some baseline information that must be provided in the issue |
| 25 | description. |
| 26 | |
| 27 | - Description of the problem. Describing only the problem symptoms is fine. |
| 28 | But be as specific as possible so that another user could reproduce the |
| 29 | error. |
| 30 | |
| 31 | - What os/arch does the problem affect (if applicable)? For example, |
| 32 | "darwin/amd64" or "OS X". |
| 33 | |
| 34 | ## Code Contributions |
| 35 | |
| 36 | Pull requests are welcome but there are some rules and guidelines for |
| 37 | contributors to follow. |
| 38 | |
| 39 | 1. Open an issue first. Anything beyond simple errors, such as errors in |
| 40 | spelling and grammar, must have a corresponding issue created beforehand. |
| 41 | See previous sections for information about opening new issues. |
| 42 | |
| 43 | 2. Pull requests must mention the corresponding issue number in their |
| 44 | description using the github convention format #XXX. If the pull requset |
| 45 | resolves an issue then the description should contain the line "Fixes #XXX", |
| 46 | so the issue will be closed automatically after merging the pull request. |
| 47 | |
| 48 | 3. Comments in pull requests must be restricted to code review. Any |
| 49 | discussion about design or overall merit must take place in the |
| 50 | corresponding issue. |
| 51 | |
| 52 | 4. All contributions must compile and pass the tests and format/style checks |
| 53 | in the Makefile, invoked with the command `make all`. Specifically, code |
| 54 | must be formatted with `goimports` and must not produce any warnings or |
| 55 | errors from `go test`, `go vet`, or `golint`. |
| 56 | |
| 57 | By submitting a pull request for this project, you are asserting that you have |
| 58 | the rights to provide it and agree to license your contribution under the MIT |
| 59 | license to this project. |