Skip to content

Unused import doesn't handle export #61877

@johnniwinther

Description

@johnniwinther

The unused import warning doesn't handle exports. For instance if a declaration is imported both from its declaring library and a reexporting library, neither import is flags a unused even when one of them could be removed.

I've created a CL that show some of the cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions