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.28k stars 1.58k forks source link

[analyzer] Incorrect completion suggestion when the rule is already in the list #57076

Open incendial opened 1 week ago

incendial commented 1 week ago

Hi,

When the rule is already in the configuration list, but is disabled (via : false), it's still added to the list of completion items:

Screenshot 2024-11-13 at 14 11 52

It should probably not be there.

incendial commented 1 week ago

@DanTup fyi

dart-github-bot commented 1 week ago

Summary: The Dart analyzer incorrectly suggests adding a rule to the configuration list even when the rule is already present but disabled. This behavior should be corrected to prevent redundant suggestions.