Do you find cyclomatic complexity a useful measure?

后端 未结 15 1296
傲寒
傲寒 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:15

    We recently started to use it. We use NDepend to do some static code analysis, and it measures cyclomatic complexity. I agree, it's a decent way to identify methods for refactoring.

    Sadly, we have seen #'s above 200 for some methods created by our developers offshore.

提交回复
热议问题