To get started with contributing, please follow the steps below:
-
Fork the wolt_modal_sheet repo on GitHub.
-
Clone your forked repo locally.
-
Ensure you have Melos installed.
dart pub global activate melos
-
Use Melos to bootstrap the project.
melos bootstrap
-
Ensure DCM (dcm.dev) is installed and activated
- Enabling and activating DCM is optional. When you open a PR, the CI bots will show you any DCM warnings introduced
by your change which should be fixed before submitting. please follow instructions at https://dcm.dev/pricing/. You can either use the free tier of DCM, or purchase a pro or team license. Note that the free tier doesn't support all the rules of the paid tier, so you will also need to consult the output of the
Dart Code Metrics workflow on Github
when you open your PR. To enable DCM check this quick start guide
- Enabling and activating DCM is optional. When you open a PR, the CI bots will show you any DCM warnings introduced
by your change which should be fixed before submitting. please follow instructions at https://dcm.dev/pricing/. You can either use the free tier of DCM, or purchase a pro or team license. Note that the free tier doesn't support all the rules of the paid tier, so you will also need to consult the output of the
-
Create a new branch from the
main
branch. -
Make your changes.
-
Run Melos format to format the code.
melos format
-
Run Melos analyze to identify any issues.
- Note, if you don't have DCM install locally, this command will fail, but you can check PR's CI output after sending your PR.
melos analyze
-
Make sure all existing tests pass and add new tests for the changes you made. Execute the following command to run the tests.
melos test
-
Create a pull request.