-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
This line triggers the omit_obvious_property_types lint:
final String foo = '';When using right click in the Analysis View in IntelliJ, there is no quick fix shown:

Pressing Alt+Enter directly on the type annotation where the lint occurs shows a quick fix:

If it's declared as a local variable (omit_obvious_local_variable_types), the quick fix is shown in the Analysis View:

Additionally Alt+Enter has the yellow light bulb for quick fixes:

One obvious difference between both lints is that one hasFix, while the other needsEvaluation (if this matters):
sdk/pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml
Lines 2199 to 2202 in 5b6e686
| LintCode.omit_obvious_local_variable_types: | |
| status: hasFix | |
| LintCode.omit_obvious_property_types: | |
| status: needsEvaluation |
Dart version: Dart SDK version: 3.7.0-81.0.dev (dev) (Tue Oct 29 17:06:42 2024 -0700) on "windows_x64"