linter icon indicating copy to clipboard operation
linter copied to clipboard

rework avoid_types_on_closure_parameters to allow not-redundant types

Open a14n opened this issue 3 years ago • 8 comments

Description

rework avoid_types_on_closure_parameters to allow not-redundant types

Fixes #3330 Fixes #2131 Fixes #1099

a14n avatar Aug 01 '22 16:08 a14n

Coverage Status

Coverage decreased (-0.1%) to 95.597% when pulling 0deed279950e467badffeed5227d9b9f8c417218 on a14n:rework_avoid_types_on_closure_parameters into 7d51bf6a88e40e8fb8011cda5f64bb75ea5fa397 on dart-lang:main.

coveralls avatar Aug 01 '22 16:08 coveralls

Fantastic. We'll need to do an internal dry-run regardless , but if I understand the change correctly, this just addresses false-positives?

pq avatar Aug 02 '22 13:08 pq

I understand the change correctly, this just addresses false-positives?

Yes it should relax the original version. So it shouldn't add new diagnostics.

a14n avatar Aug 02 '22 13:08 a14n

Yes it should relax the original version. So it shouldn't add new diagnostics.

Add? If these are false positives, I'd expect there to be fewer...

Sorry if I'm being thick!

pq avatar Aug 02 '22 16:08 pq

@pq that's what I tried to say : fewer lints

a14n avatar Aug 02 '22 18:08 a14n

We'll need to do an internal dry-run

Did you have a chance to run it internally?

a14n avatar Aug 08 '22 19:08 a14n

Did you have a chance to run it internally?

Sorry, no. It may be a bit --- I'm still trying to land the last linter release in the SDK (https://dart-review.googlesource.com/c/sdk/+/253501) and have a backlog of other tasks.

Will definitely queue this up for our next release though.

Thanks for your patience!

pq avatar Aug 08 '22 19:08 pq

(And also for the nudge!)

pq avatar Aug 08 '22 19:08 pq