Fix missing braces
MSALAdds missing braces around code such as single-line if, for, while, and do-while block bodies. Omitting braces can lead to dangling-statement bugs when additional lines are later added to a block without realizing they fall outside the control structure.
org. openrewrite. staticanalysis. NeedBracesmod run . --recipe= org. openrewrite. staticanalysis. NeedBracesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.