Skip to content

test [nfc]: Remove WidgetTester type annotation from testWidgets tests.#860

Merged
gnprice merged 1 commit intozulip:mainfrom
PIG208:avoid_types_on_closure_parameters
Aug 11, 2024
Merged

test [nfc]: Remove WidgetTester type annotation from testWidgets tests.#860
gnprice merged 1 commit intozulip:mainfrom
PIG208:avoid_types_on_closure_parameters

Conversation

@PIG208
Copy link
Member

@PIG208 PIG208 commented Aug 2, 2024

This consists of handpicked output from running the dart lint fix for code avoid_types_on_closure_parameters. We probably don't need to enable this linter rule because in many cases the type annotation improves readability. For the (WidgetTester tester) case, though, it is common and intuitive enough that the annotation shouldn't be necessary.

See also:

#762 (comment)

@PIG208 PIG208 changed the title test: Remove WidgetTester from testWidgets tests. test: Remove WidgetTester type annotation from testWidgets tests. Aug 2, 2024
@PIG208 PIG208 force-pushed the avoid_types_on_closure_parameters branch from 2664128 to ce76b68 Compare August 2, 2024 18:43
@PIG208 PIG208 changed the title test: Remove WidgetTester type annotation from testWidgets tests. test [nfc]: Remove WidgetTester type annotation from testWidgets tests. Aug 2, 2024
@PIG208 PIG208 force-pushed the avoid_types_on_closure_parameters branch from ce76b68 to 2fd3301 Compare August 2, 2024 18:44
@PIG208 PIG208 added the maintainer review PR ready for review by Zulip maintainers label Aug 2, 2024
@chrisbobbe
Copy link
Collaborator

Thanks, LGTM! Over to Greg for his review.

@chrisbobbe chrisbobbe added integration review Added by maintainers when PR may be ready for integration and removed maintainer review PR ready for review by Zulip maintainers labels Aug 2, 2024
@PIG208 PIG208 force-pushed the avoid_types_on_closure_parameters branch from 2fd3301 to fdac15e Compare August 6, 2024 21:06
@PIG208
Copy link
Member Author

PIG208 commented Aug 6, 2024

Rebased the PR.

@gnprice
Copy link
Member

gnprice commented Aug 9, 2024

Thanks for cleaning this up!

The changes all look good. Would you rebase atop main?

This consists of handpicked output from running the dart lint fix
for code `avoid_types_on_closure_parameters`. We probably don't need to
enable this linter rule because in many cases the type annotation
improves readability. For the `(WidgetTester tester)` case, though, it
is common and intuitive enough that the annotation shouldn't be
necessary.

See also:

  zulip#762 (comment)

Signed-off-by: Zixuan James Li <zixuan@zulip.com>
@PIG208 PIG208 force-pushed the avoid_types_on_closure_parameters branch from fdac15e to 0a9cf7f Compare August 10, 2024 07:18
@PIG208
Copy link
Member Author

PIG208 commented Aug 10, 2024

Did another sweep and rebased the PR.

@gnprice gnprice merged commit 0a9cf7f into zulip:main Aug 11, 2024
@gnprice
Copy link
Member

gnprice commented Aug 11, 2024

Thanks! Looks good — merged.

@PIG208 PIG208 deleted the avoid_types_on_closure_parameters branch August 13, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration review Added by maintainers when PR may be ready for integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants