Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for removing unused imports #17

Open
alexanderkjeldaas opened this issue Oct 25, 2017 · 1 comment
Open

Add support for removing unused imports #17

alexanderkjeldaas opened this issue Oct 25, 2017 · 1 comment

Comments

@alexanderkjeldaas
Copy link

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.

@dakrone
Copy link
Owner

dakrone commented Oct 25, 2017

I think this is a great idea. I also think it wouldn't be too hard to do, just requires the plumbing.

Thanks for suggesting it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants