Skip to content

style(dart/a2ui_core): apply dart format to processor.dart and its test - #4371

Merged
gspencergoog merged 1 commit into
a2ui-project:mainfrom
gspencergoog:fix/dart-core-processor-format
Nov 23, 2026
Merged

gspencergoog merged 1 commit into
a2ui-project:mainfrom
gspencergoog:fix/dart-core-processor-format

Conversation

@gspencergoog

Copy link
Copy Markdown
Collaborator

Summary

Applies dart format to two files in dart/a2ui_core so that the format-check and dart_a2ui_core formatting jobs pass on main again. They have failed on main, and on every PR based on it, since #4197 merged.

Changes

  • dart/a2ui_core/lib/src/processing/processor.dart: one statement is wrapped the way Dart 3.13 formatting wraps it.
  • dart/a2ui_core/test/processor_test.dart: one list literal is re-indented, and one call is wrapped with a trailing comma.

The diff is the formatter's output and nothing else. With whitespace and trailing commas removed, both files are identical before and after.

Impact & Risks

Testing

Before, on main at 5ff1b05f0:

$ dart format --language-version=3.13 --output=none --set-exit-if-changed samples/client/flutter dart
Changed dart/a2ui_core/lib/src/processing/processor.dart
Changed dart/a2ui_core/test/processor_test.dart
Formatted 362 files (2 changed)

After:

  • ./scripts/fix_format.sh --check --skip-swift, the command the format-check job runs, exits 0.
  • dart format --output=none --set-exit-if-changed . in dart/a2ui_core, the command the dart_a2ui_core jobs run, reports 0 changed files.
  • dart test in dart/a2ui_core passes.
  • The analyzer reports no errors on the two files.

Checked with the stable Dart SDK (3.13.7). The beta job in CI is not reproduced locally.

The format-check and dart_a2ui_core formatting jobs have failed on main,
and on every PR based on it, since a2ui-project#4197 merged. That change was
formatted before a2ui-project#3304 landed just ahead of it, and the two files it
touched no longer match what `dart format` produces.

This is the formatter's output and nothing else: with whitespace and
trailing commas removed, both files are unchanged.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request consists of minor formatting and indentation updates in processor.dart and processor_test.dart to adhere to the repository's style guidelines. There are no functional code changes, and no review comments were provided.

@gspencergoog gspencergoog added the skip-changelog-check Use for noop PRs to skip CHANGELOG updates. label Nov 23, 2026
@gspencergoog
gspencergoog marked this pull request as ready for review November 23, 2026 16:32
@gspencergoog
gspencergoog enabled auto-merge (squash) November 23, 2026 17:11

@andrewkolos andrewkolos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though a check is failing. Might have something to do with the skip-changelog-check label

@gspencergoog
gspencergoog merged commit 8feedf8 into a2ui-project:main Nov 23, 2026
62 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-check Use for noop PRs to skip CHANGELOG updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants