Remove System.out#println and System.err#println statements
MSALPrint statements are often left accidentally after debugging an issue. This recipe removes all System.out#println and System.err#println statements from the code. Production code should use a proper logging framework which provides consistent formatting, configurable log levels, and centralized output control.
org. openrewrite. staticanalysis. RemoveSystemOutPrintlnmod run . --recipe= org. openrewrite. staticanalysis. RemoveSystemOutPrintlnInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.