Default comes last

MSAL

Ensure the default case comes last after all the cases in a switch statement. Placing default at the end follows a widely expected convention, making it easy to find the fallback behavior at a glance.

org.openrewrite.staticanalysis.DefaultComesLast
mod run . --recipe=org.openrewrite.staticanalysis.DefaultComesLast

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.