🎉 First off, thanks for taking the time to contribute! 🎉
The following is a set of steps for contributing to Dart version of Persian tools package.
If you intend to change the public API, or make any non-trivial changes
to the implementation, we recommend filing an issue
.
This lets us reach an agreement on your proposal before you put significant
effort into it.
if you're fixing a bug you need to mention that issue in your PR. This helps us to understand exactly what you are working on.
Before creating a pull request please:
- First of all make sure you have installed dart SDK on your machine.
- Fork the repository.
- use
git clone
to clone the project. - create your branch from
dev
. we usemaster
branch only for production. all development changes should submitted todev
branch ( For the Branch name, please Follow this Convention ). - Install all dependencies (
flutter packages get
orpub get
). - Squash your commits and ensure you have a meaningful commit message ( for the commit messages, please follow this convention ).
- If you’ve fixed a bug or added code that should be tested, add tests! Pull Requests without 100% test coverage will not be approved.
- Ensure the test suite passes (
dart test .
). - If you've changed the public API, make sure to update/add documentation.
- Format your code (
dart format .
). - Analyze your code (
dartanalyzer --fatal-infos --fatal-warnings .
). - Create the Pull Request.
If you are creating/changing the public API please make sure that the public methods, classes and variables has documentation.
You should also change the README.md
file if the changes related to it.
If you are creating/changing the public API, you should create/update example for it. example should placed in /example
directory and the name of the example file must be similar to the following name.
example/example_feature_name.dart
.
By contributing to Bloc, you agree that your contributions will be licensed under its MIT license.