Skip to content

Missing quick fix for omit_obvious_property_types in Dart Analysis view in IntelliJ #57017

@denniskaselow

Description

@denniskaselow

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:
image

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

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

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

One obvious difference between both lints is that one hasFix, while the other needsEvaluation (if this matters):

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellijTracking issues for the Dart IntelliJ plugin.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions