Skip to content

Add a new dt presubmit tool.#9751

Open
kenzieschmoll wants to merge 1 commit intoflutter:masterfrom
kenzieschmoll:dtpresubmit
Open

Add a new dt presubmit tool.#9751
kenzieschmoll wants to merge 1 commit intoflutter:masterfrom
kenzieschmoll:dtpresubmit

Conversation

@kenzieschmoll
Copy link
Copy Markdown
Member

@kenzieschmoll kenzieschmoll commented Apr 2, 2026

This presubmit command mimics the presubmits that are run on the CI. Optionally, when a --fix flag is passed, the command applies dart fixes and formatting changes before performing the presubmit checks. Order of operations:

  1. Runs pub get to ensure packages solve and are up to date
  2. (when the --fix flag is passed) Runs dart fix --apply and dart format to fix any warnings with associated dart fixes and address formatting issues
  3. Runs dt repo-check
  4. Runs dt analyze
  5. (when the --fix flag is not passed) Runs dart format over the DevTools packages exits with a failure code if anything changed.

This also adds utilities to test dt tool commands.

Work towards #9724.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants