Hello again for another exciting tip of the day!
I was trying to add all missing @Override annotations into the java classes of openmrs-core and new I could use the eclipse save action for it but then I’d have to open every file and I’m lazy
So I searched and found the Eclipse Clean Up feature
Here’s what you do:
Go to the preferences, search for cleanup and find this:
then you create a new profile, in my case I called it ‘add override annotations’ and you select just what you want to clean up. The options are just like in the save actions settings dialog.
Now to clean up all the files in the repo you open the Eclipse project explorer and go to the package view, right click and select ‘Source’ -> ‘Clean Up’ as shown below
Voila Now I can go back to being lazy again
If anyone wants to try this out, there is enough to do on the clean code quest so grab an issue, or create one according to things shown by codacy, create a clean up profile and become a clean code hero