开发者

"Good" Flay Score

开发者 https://www.devze.com 2023-02-18 13:42 出处:网络
I\'m working on a rails project and we\'re running Flay on it. Its got 开发者_开发技巧a score of ~1400 and I\'m unsure what this really means. I know that 0 is ideal but I\'m unsure what a good target

I'm working on a rails project and we're running Flay on it. Its got 开发者_开发技巧a score of ~1400 and I'm unsure what this really means. I know that 0 is ideal but I'm unsure what a good target would be and what a realistic upper-bound for a project should be. Is there any good documentation on the scoring process and what the end-result is?


There's a simple solution to this dilemma, which applies not only to Flay, but pretty much all "badness" scores: set the upper-bound to whatever the current score is, and whenever it decreases, set it to the new value.

That way, you guarantee

  1. that your goal is realistic (because it will already be fulfilled) and
  2. that you only ever improve, or in the worst case stagnate, but you never get worse.


Here is a link regarding Flog's scoring process and how to refactor your project to reduce its score. (I figure since Flay is similar to Flog the scoring process should be similar)

Scoring your Rail Application's Complexity

Here is another, albeit older link (2008) with a discussion on Flog's scoring system:

Jake Scruggs - What's a good Flog Score?

You can also take a look at Caliper, which is another Ruby metrics tool.

Hope these helped!

0

精彩评论

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

关注公众号