Skip to content

Add support for removing unused imports #17

@alexanderkjeldaas

Description

@alexanderkjeldaas

I made a similar module to this, but I don't have it anymore (and I don't own the code, my ex-employer does).

Anyways, in my module I had this simple function that just collects the import symbols and scans the source for these tokens. Imports that don't have a token in the file can be safely removed.

Saves a lot of time and keeps the import list clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions