We greatly appreciate your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
Pull requests are the best way to propose changes to the codebase We actively welcome your pull requests:
- Fork the repo and create your branch from
main
. - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
In short, when you submit code changes, your submissions are understood to be under the same GPLv3 License that covers the project. Feel free to contact the maintainers if that's a concern.
Suggestions are welcome, be sure:
- it is not already being discussed in the issue tracker
- If it has and is marked as OPEN, go ahead and share your own thoughts about the topic!
- If it has and is marked as CLOSED, please read the ticket and depending on whether the suggestion was accepted or not consider if it is worth opening a new issue or not.
- Consider if the suggestion is not too out of scope of the project.
- Mark them with a [Suggestion] in the title
Report bugs using Github's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
A good bug report should have:
- Check that the bug is not already discussed in the issue tracker
- See our documentation if there are some steps that could help you solve your issue
- Mark them with an [Error] in the title
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Provide logs (terminal output, runs with verbose mode)
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
- use
shellcheck
to check for posix compliance and bashisms using: - use
shfmt
to style the code using:shfmt -s
- install from HERE using
go install mvdan.cc/sh/v3/cmd/shfmt@latest
- Legibility of the code is more important than code golfing, try to be expressive in the code
- Error checking is important! Ensure to LBYL (Look Before You Leap), check for variables and for code success exit codes
- Don't hesitate to comment your code! We're placing high importance on this to maintain the code readable and understandeable
- Update documentation to reflect your changes - Manual pages can be found in
directory
docs
If you are using Visual Studio Code, there are plugins that include all this functionality and throw a warning if you're doing something wrong. If you are using Vim or Emacs there are plenty of linters and checkers that will integrate with the 2 tools listed above.
By contributing, you agree that your contributions will be licensed under its GPLv3 License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft