Find methods with too many paths
ProprietaryMarks methods and constructors whose cyclomatic complexity is greater than 10. The method itself counts one, and each if, for, while, do, case label other than default, conditional expression, && and || adds one. Lambdas and nested classes in the body are not counted, and a method of an anonymous or local class is measured on its own. equals and hashCode overrides are never marked. Splitting the method is left to the author. Test sources are not searched.
io. moderne. staticanalysis. FindMethodCyclomaticComplexitymod run . --recipe= io. moderne. staticanalysis. FindMethodCyclomaticComplexityInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.