“好”剥皮分数
我正在开发一个 Rails 项目,我们正在其上运行 Flay 。它的得分约为 1400,我不确定这到底意味着什么。我知道 0 是理想的,但我不确定什么是好的目标,以及项目的实际上限应该是多少。有没有关于评分过程和最终结果的好的文档?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于这个困境有一个简单的解决方案,它不仅适用于 Flay,而且适用于几乎所有“坏”分数:将上限设置为当前分数的值,每当分数下降时,将其设置为新值。
这样,你就可以保证
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
以下是有关 Flog 评分流程以及如何重构项目以降低评分的链接。 (我认为由于 Flay 与 Flog 类似,因此评分过程应该类似)
对 Rail 应用程序的复杂性进行评分
这是另一个较旧的链接 (2008),其中讨论了 Flog 的评分系统:
Jake Scruggs - 什么是好的 Flog 分数?
您还可以看看Caliper,这是另一个 Ruby 指标工具。
希望这些有帮助!
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!