sentry-dart
sentry-dart copied to clipboard
Add scripts to run `flutter test` and `flutter analyze` on all files before pushing.
This feature is for repository maintenance.
Before pushing I run flutter test but often forget to run flutter analyze. Also doing this manually doing cd in each folder is a bit cumbersome. It would be a lot easier to just run a script and do this for all files. This would also decrease frequent pushes to PR's .
Also if there is a plan to do this, can I be assigned the task?
There is already, do you mean this? https://github.com/getsentry/sentry-dart/blob/main/dart/tool/presubmit.sh
This is for the dart module only? Or does this run for every module?
This is for the dart module only? Or does this run for every module?
Indeed, it's not executed once and works for all modules, that could be improved. You'd need to do it for each folder. Another option is having a GH Action that executes and commits missing formats in the code on CI, so you don't need to bother about doing it locally, e.g. https://github.com/getsentry/sentry-java/pull/1963/files