Is there a tool for cleaning up import statements? When a package grows, I often end up with a long and messy list of imports that usually contains many duplicate imports.
Instead, I would like to have each import once and sorted alphabetically.
Is there a tool that can do this for me? In the codebase I have in mind, there are many somewhat tricky corner cases. For instance submodules, multi-line imports, import statements in string literals etc.
1 Like
Not quite what you are asking for but ExplicitImports.jl is closely related
1 Like