Remove unused Scala imports
MSALRemoves imports, and selectors of brace imports, that nothing after them in their scope uses. Uses through implicit arguments and implicit conversions count, and an import whose use can't be ruled out for lack of type information is kept.
org. openrewrite. scala. RemoveUnusedImportsmod run . --recipe= org. openrewrite. scala. RemoveUnusedImportsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.