How would you measure code “quality” across a large project

前端 未结 5 752
夕颜
夕颜 2021-02-04 15:20

I\'m working on a quite large project, a few years in the making, at a pretty large company, and I\'m taking on the task of driving toward better overall code quality.

I

5条回答
  •  借酒劲吻你
    2021-02-04 15:51

    Cyclomatic complexity is a decent "quality" metric. I'm sure developers could find a way to "game" it if it were the only metric, though! :)

    And then there's the C.R.A.P. metric...

    P.S. NDepend has about ten billion metrics, so that might be worth looking at. See also CodeMetrics for Reflector.

    D'oh! I just noticed that you already mentioned NDepend.

    Number of reported bugs would be interesting to track, too...

提交回复
热议问题