Remove unused variable bindings
ProprietaryRemoves unused local variables and private members whose name starts with _ (underscore-prefixed binding) and whose initializer is a literal. Declarations that are referenced, visible outside the source file, or have any other initializer are kept.
org. openrewrite. scala. cleanup. RemoveUnusedBindingmod run . --recipe= org. openrewrite. scala. cleanup. RemoveUnusedBindingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.