Automated Tool to optimize import generation #22
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Idea is that Imports are generated through templates.
Though sometimes mistakes are made.
So the idea is to write a import tool that reverses the logic.
First run through all the sourcecode in the IDE and force a "organize imports" that will make basically imports done properly sorted.
After that is done run a tool scan all the .java files that are auto generated and copy in all "imports". Then templificate the imports and compare which each implementation needs them.
Once that is done output the import section. Either through console or directly into the file itself.
Console would make most sense since that would secure templates never being written to, and just read from.