Members should not have names differing only by capitalization

MSAL

Looking at the set of methods and fields in a class and all of its parents, no two members should have names that differ only in capitalization. This rule will not report if a method overrides a parent method. Members with near-identical names are easily confused, leading to bugs where the wrong field or method is referenced.

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

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