Emulate eslint --fix for certain classes of warnings (small/simple changes). (Larger changes could be handled by a separate tool; a codemod to migrate projects to new templates, etc.)
For example:
POM: <type> not removed (re-run with "--fix type" to fix)
Possibly XSLT?
(From @bterryUFG and @cjnickel )