Do you find cyclomatic complexity a useful measure?

后端 未结 15 1261
傲寒
傲寒 2020-12-12 22:03

I\'ve been playing around with measuring the cyclomatic complexity of a big code base.

Cyclomatic complexity is the number of linearly independent paths through a pr

15条回答
  •  伪装坚强ぢ
    2020-12-12 22:29

    There's a Java metric called CRAP4J that empirically combines cyclomatic complexity and JUnit test coverage to come up with a single metric. He's been doing research to try and improve his empirical formula. I'm not sure how widespread it is.

提交回复
热议问题