Interested in contributing? Awesome!Before you do though please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles and tests pass.
There are many ways you can contribute! ❤️
- If you find a bug, please search for it in the issues, and if it isn't already tracked, create a new issue. Fill out the "Bug Report" section of the issue template. Even if an issue is closed, feel free to comment and add details, it will still be reviewed.
- Issues that have already been identified as a bug (note: able to reproduce) will be labelled
bug
. - If you'd like to submit a fix for a bug, send a pull request and mention the issue number.
- Include tests that isolate the bug and verifies that it was fixed.
- If you'd like to add new functionality to this project, describe the problem you want to solve in a new issue.
- Issues that have been identified as a feature request will be labelled
enhancement
. - If you'd like to implement the new feature, please wait for feedback from the project
maintainers before spending too much time writing the code. In some cases,
enhancement
s may not align well with the project objectives at the time.
- If you'd like to improve the tests, you want to make the documentation clearer, you have an alternative implementation of something that may have advantages over the way its currently done, or you have any other change, we would be happy to hear about it!
- If its a trivial change, go ahead and pull request with the changes you have in mind.
- If not, open an issue to discuss the idea first.
For your contribution to be accepted:
- The test suite must be complete and pass.
- The changes must be approved by code review.
- Commits should be atomic and messages must be descriptive. Related issues should be mentioned by issue number.
If the contribution doesn't meet the above criteria, you may fail our automated checks or a maintainer will discuss it with you. You can continue to improve a Pull Request by adding commits to the branch from which the PR was created.
- 🍴 Fork the repository on GitHub.
- 🏃♀️ Clone/fetch your fork to your local development machine. It's a good idea to run the tests just to make sure everything is in order.
- 🌿 Create a new branch and check it out.
- 🔮 Make your changes and commit them locally. Magic happens here!
⤴️ Push your new branch to your fork. (e.g.git push username fix-issue-16
).- 📥 Open a Pull Request on github.com from your new branch on your fork to
main
in this repository.
This project is using ktlint with the ktlint-gradle plugin to format your code. To reformat all the source code as well as the buildscript you can run the ktlintFormat
gradle task.
This project is also using detekt to analyze the source code, with the configuration that is stored in the detekt.yml file (the file has been generated with the detektGenerateConfig
task).
./gradlew detekt - To run detekt
./gradlew ktlintCheck - checks all SourceSets and project Kotlin script files
./gradlew ktlintFormat - tries to format according to the code style all SourceSets Kotlin files and project Kotlin script files