Skip to content

lint rule omit_obvious_property_types should be suppressed on public apis when type_annotate_public_apis is enabled. #60642

Open
@bsutton

Description

@bsutton

dart 3.7.

The follow code triggers a warning when the lint omit_obvious_property_types is enabled.

String packageVersion = '0.1.1';

The problem is that if you also have type_annotate_public_apis enabled then removing the type will trigger the type_annotate_public_apis warning.

If type_annotate_public_apis is enabled and the variable is part of the public api then omit_obvious_property_types should be suppressed for that variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions