Open furpu opened 2 months ago
We already have a sort function that sorts by start_index
, which should have the same exact effect:
Although this one is for BlockSpan
, not ImportSpan
, Can you see if it's possible to de-duplicate the code somehow?
Description
This PR implements ordering the results of
find_unused_imports
by source location.Just a suggestion that I thought would be a nice addition to the tool. Also, I'm not sure if this is the best place to order the results.
Feel free to correct or edit it in anyway. Thanks for the awesome tool.
Sample output: