问题标签 [metric-fu]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - How to run metric_fu command on a specific task
rake metrics:all
seems to generate all metric reports as flog,flay..etc. How to run report for a single metric (say flog) rake metrics:flog
The following error occurs while running this command
ruby-on-rails - Metric_fu - UTF-8 中的无效字节序列
每天结束时,我都会在 RoR 环境中运行 metric_fu 来衡量代码质量。直到今天一切正常...
当我尝试运行 metric_fu 时,这是我从今天开始的结果。
我在这里发现了一个类似的问题:https ://github.com/jscruggs/metric_fu/issues/61 。由于 GitHub 上的问题,我在项目的根目录中创建了一个名为“.metrics”的文件,内容如下:
不幸的是,这没有用。
最近几天除了代码没有更新,这就是为什么突然出现这个错误很奇怪。
这是我的 Ruby 版本:
提前致谢!
编辑
可以通过禁用流失来绕过该问题。您可以通过添加来禁用流失--no-churn
,如下所示:
编辑 2
由于我添加了--no-churn
一次,Metric_fu 再次完全可操作。即使在下一个报告中激活了流失,同时分析了相同的代码。
Github 上的问题已创建:https ://github.com/metricfu/metric_fu/issues/70
ruby-on-rails - 如何从 metric_fu 中排除某些指标
我正在使用 metric_fu 4.4.1
我的 .metrics 文件说:
我的 metric_fu.rake 说:
当我运行时:bundle exec rake metrics:all get the falling error
ruby - Sonar Ruby 插件 - Saikuro 不返回任何结果
我真的坚持这个。我为 Sonar 构建了 Godaddy Ruby 插件,它似乎运行良好,我可以从 Cane 和其他人那里注销结果,但是在这一行:
我得到一个空指针异常,因为 Saikuro 似乎不在那个对象中。我想知道我是否缺少配置项或其他东西。有没有人看到这个问题?
更烦人的是,如果我注释掉有问题的代码,其他分析工具的结果都不会保存到 Sonar。我得到了大量的 MetricFu results.yml,但没有向 Sonar 报告任何内容。