Fix String#format and String#formatted expressions
MSALFix String#format and String#formatted expressions by removing any unused arguments. Note this recipe is scoped to only transform format expressions which do not specify the argument index. Removing unused arguments eliminates dead code that may mask a mismatch between the format string and its parameters.
org. openrewrite. staticanalysis. FixStringFormatExpressionsmod run . --recipe= org. openrewrite. staticanalysis. FixStringFormatExpressionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.