开发者

In what kind of situations should I not care about the Maintainability Index in Visual Studio's Code Metrics?

开发者 https://www.devze.com 2023-01-25 22:30 出处:网络
I just today stumbled upon the Code Metrics thing, after having used Visual Studio pra开发者_StackOverflow中文版ctically every day for... practically my whole life. I think it\'s been there since arou

I just today stumbled upon the Code Metrics thing, after having used Visual Studio pra开发者_StackOverflow中文版ctically every day for... practically my whole life. I think it's been there since around VS2008, but I haven't cared to play with it.

Most of my projects in my solution have fairly high Maintainability Indices -- 85, 83, 86, and 76 and 59 on my "scrap" projects. I do remember putting very little effort into making those scrap projects presentable, so I agree with the index.

But I can't imagine it being a perfect measure. In what situations should I rightfully disagree with an index?


"A Practical Model for Measuring Maintainability" talks about the problems with the maintainability index. One of the main drawbacks is that it is a composite index of several other metrics, so it's hard to say why the score is bad.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号