docs: add dart format and import ordering to AGENTS.md #385

Closed
guettlibot wants to merge 1 commits from issue-384-fix-open-prs into main
guettlibot commented 2026-06-03 22:46:58 +00:00 (Migrated from codeberg.org)

Summary

Three open PRs were failing CI due to dart format and dart analyze --fatal-infos violations:

  • PR #381 (issue-367-prefetch-next-email): lib/di.dart needed reformatting
  • PR #378 (issue-377-remember-show-images): test/unit/migration_test.dart needed reformatting
  • PR #379 (issue-376-combined-inbox): lib/data/repositories/email_repository_impl.dart needed reformatting, lib/ui/router.dart had imports out of alphabetical order, and stale mock formatting in test/unit/account_sync_manager_test.mocks.dart

Formatting fix commits have been pushed directly to each PR branch so their CI can re-run.

This PR adds explicit requirements to AGENTS.md so future agents know to run dart format before committing and to keep imports sorted.

Closes #384

Test plan

  • dart format --output=none --set-exit-if-changed lib/ test/ — no changes
  • dart analyze --fatal-infos lib/ test/ — no issues

🤖 Generated with Claude Code

## Summary Three open PRs were failing CI due to `dart format` and `dart analyze --fatal-infos` violations: - **PR #381** (`issue-367-prefetch-next-email`): `lib/di.dart` needed reformatting - **PR #378** (`issue-377-remember-show-images`): `test/unit/migration_test.dart` needed reformatting - **PR #379** (`issue-376-combined-inbox`): `lib/data/repositories/email_repository_impl.dart` needed reformatting, `lib/ui/router.dart` had imports out of alphabetical order, and stale mock formatting in `test/unit/account_sync_manager_test.mocks.dart` Formatting fix commits have been pushed directly to each PR branch so their CI can re-run. This PR adds explicit requirements to `AGENTS.md` so future agents know to run `dart format` before committing and to keep imports sorted. Closes #384 ## Test plan - [x] `dart format --output=none --set-exit-if-changed lib/ test/` — no changes - [x] `dart analyze --fatal-infos lib/ test/` — no issues 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.