Contributing to Swoosh
Thanks for thinking about contributing to Swoosh. Please review this document first and also take a look at our Code of Conduct, to help us keep this project inclusive to all those that may wish to contribute also.
We classify bugs as any unexpected behaviour that occurs based on the code in the project, and we really appreciate it when users take the time to create an issue.
Please take time to add as much detail as you can to any bug reports, consider including things like the version of Elixir you are using, which adapter you are having trouble with and any custom config you have passed for that adapter.
If you are thinking about adding a feature, you should the check Issues first, someone else may have started already, or it might be a feature we've decided not to implement intentionally.
Whether you're fixing a bug, or proposing a feature you'd like to see included, you can submit Pull Requests by following this guide:
- Fork this repository and then clone it locally:
git clone https://github.com/swoosh/swoosh
- Create a topic branch for your changes:
git checkout -b fix-mailchimp-pricing-bug
- Commit a failing test for the bug:
git commit -am "Adds a failing test that demonstrates the bug"
- Commit a fix that makes the test pass:
git commit -am "Adds a fix for the bug"
- Run the tests:
- If everything looks good, push to your fork:
git push origin fix-mailchimp-pricing-bug
We support the common conventions found in Elixir, if you're in doubt take a look at the code in the project, and we would like to keep the style consistent throughout.
- Keep line length below 120 characters.
- Complex anonymous functions should be extracted into named functions.
- One line functions, should only take up one line!
- Pipes are great, but don't use them, if they are less readable than brackets then drop the pipe!