C# 确定代码圈复杂度的最佳工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/884251/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 05:18:57  来源:igfitidea点击:

Best tool to determine code Cyclomatic complexity

c#cyclomatic-complexity

提问by leora

Can people suggest the best tool to determine the cyclic complexity with in a C# winforms code base.

人们可以建议使用 C# winforms 代码库来确定循环复杂度的最佳工具。

采纳答案by Paul Alexander

NDependhas a huge number of code analysis and query tools including Cyclomatic Complexityper type and method estimation.

NDepend有大量的代码分析和查询工具,包括每种类型和方法估计的圈复杂度

回答by Mike_G

DevExpress's Refactor Prodoes that. It has a free trial, so you may want to give it a shot.

DevExpress 的Refactor Pro 可以做到这一点。它有一个免费试用版,所以你可能想试一试。

回答by Steven

In Visual Studio I just go to Analyze/Calculate Code Metrics and I get cyclomatic complexity.

在 Visual Studio 中,我只需转到分析/计算代码指标,我就会得到圈复杂度。

3rd party edit

第三方编辑

  • Visual Studio 2015 community edition has it as well
  • Visual Studio 2015 社区版也有

回答by Juanma

We are using SourceMonitor. It's free, very easy to use and easy to integrate with a CI server.

我们正在使用SourceMonitor。它是免费的,非常易于使用并且易于与 CI 服务器集成。

回答by Kenneth Cochran

There is a free plugin for Red Gate's .NET Reflector called CodeMetricsthat does this.

Red Gate 的 .NET Reflector 有一个名为CodeMetrics的免费插件可以执行此操作。