dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

Consider removing `Remove break` (single) assist from the list #56680

Open FMorschel opened 1 week ago

FMorschel commented 1 week ago

Consider removing the Remove break (single) assist from the list.

365731337-29b80121-0b9f-45d0-9ac6-a90dfe58d07e

There is little to no (I could not find any) gain in removing a single break statement. I'm not sure if there are any other lints that we should consider doing the same treatment. Where there would be few to no gains in leaving the single-fix option in the list.


Inspired by https://github.com/dart-lang/sdk/issues/56371.

dart-github-bot commented 1 week ago

Summary: The "Remove break (single)" assist in the Dart editor provides little benefit for removing a single break statement. The user suggests removing this assist from the list of available options as it offers minimal value.