问题描述
有一个询问如何测量Java代码的与适用于C / C ++。对该问题的公认答案是,通常使用完成。我知道Sonar具有良好的内置功能,但这不是问题所在
There is a question asking how to measure computational complexity of Java code similar to what trend-prof does for C/C++. The accepted answer to that question says it is commonly done using Sonar. I know that Sonar has good cyclomatic complexity capabilities built in, but that is not what the question was asking for.
Sonar实际上具有计算复杂性的测量功能吗?
Does Sonar in fact have computational complexity measuring capabilities?
推荐答案
Sonarqube中没有集成Java的类似工具。就像评论中指出的那样,答案将计算复杂度与循环度量复杂度混为一谈。
No there aren't any similar tools for Java integrated in Sonarqube. Like the comments point out the answer confuses "computational complexity" with "cyclometric complexity".
我也知道,没有声纳插件可以添加这些度量。也许某个地方有一些项目,但是至少在官方插件存储库中没有任何东西可以做。
There are also no plugins for sonar, that I know of, that add these metrics. Maybe there is some project somewhere but at least in the official plugin repository is nothing that does that.
这篇关于Sonar是否具有计算复杂度测量功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!