|
| 1 | +# Contribution guidelines |
| 2 | + |
| 3 | +First off, thank you for considering contributing to stackdog. |
| 4 | + |
| 5 | +If your contribution is not straightforward, please first discuss the change you |
| 6 | +wish to make by creating a new issue before making the change. |
| 7 | + |
| 8 | +## Reporting issues |
| 9 | + |
| 10 | +Before reporting an issue on the |
| 11 | +[issue tracker](https://github.com/vsilent/stackdog/issues), |
| 12 | +please check that it has not already been reported by searching for some related |
| 13 | +keywords. |
| 14 | + |
| 15 | +## Pull requests |
| 16 | + |
| 17 | +Try to do one pull request per change. |
| 18 | + |
| 19 | +### Updating the changelog |
| 20 | + |
| 21 | +Update the changes you have made in |
| 22 | +[CHANGELOG](https://github.com/vsilent/stackdog/blob/master/CHANGELOG.md) |
| 23 | +file under the **Unreleased** section. |
| 24 | + |
| 25 | +Add the changes of your pull request to one of the following subsections, |
| 26 | +depending on the types of changes defined by |
| 27 | +[Keep a changelog](https://keepachangelog.com/en/1.0.0/): |
| 28 | + |
| 29 | +- `Added` for new features. |
| 30 | +- `Changed` for changes in existing functionality. |
| 31 | +- `Deprecated` for soon-to-be removed features. |
| 32 | +- `Removed` for now removed features. |
| 33 | +- `Fixed` for any bug fixes. |
| 34 | +- `Security` in case of vulnerabilities. |
| 35 | + |
| 36 | +If the required subsection does not exist yet under **Unreleased**, create it! |
| 37 | + |
| 38 | +## Developing |
| 39 | + |
| 40 | +### Set up |
| 41 | + |
| 42 | +This is no different than other Rust projects. |
| 43 | + |
| 44 | +```shell |
| 45 | +git clone https://github.com/vsilent/stackdog |
| 46 | +cd stackdog |
| 47 | +cargo build |
| 48 | +``` |
| 49 | + |
| 50 | +### Useful Commands |
| 51 | + |
| 52 | +- Build and run release version: |
| 53 | + |
| 54 | + ```shell |
| 55 | + cargo build --release && cargo run --release |
| 56 | + ``` |
| 57 | + |
| 58 | +- Run Clippy: |
| 59 | + |
| 60 | + ```shell |
| 61 | + cargo clippy --all |
| 62 | + ``` |
| 63 | + |
| 64 | +- Run all tests: |
| 65 | + |
| 66 | + ```shell |
| 67 | + cargo test --all |
| 68 | + ``` |
| 69 | + |
| 70 | +- Check to see if there are code formatting issues |
| 71 | + |
| 72 | + ```shell |
| 73 | + cargo fmt --all -- --check |
| 74 | + ``` |
| 75 | + |
| 76 | +- Format the code in the project |
| 77 | + |
| 78 | + ```shell |
| 79 | + cargo fmt --all |
| 80 | + ``` |
0 commit comments