Last month, I showed you how to use code metrics to evaluate the quality of your code.
上一期文章中,我展示了如何使用代码度量来评估代码质量。
In fact, you can use code metrics to easily spot code that might be difficult to maintain.
实际上,可以用代码度量很容易地找出可能难以维护的代码。
You can't find bugs in source code simply by measuring source-code metrics, but you can locate source code that has a high probability of containing a bug.
仅通过测量源代码指标是很难发现bug的,但您可以确定很可能包含bug的代码的位置。
Such analysis includes calculation of source-code metrics, detection of potential bugs based on defined patterns, and discovery of violations of coding conventions and rules.
这种分析包括计算源代码指标、根据预定义模式筛查潜在的bug和发现是否违反编程约定和规则。
Code metrics are a way to mathematically calculate the complexity of code.
代码度量是一种计算代码复杂度的数学方法。
Feedback to Microsoft can be provided on the VS Code Analysis and Code Metrics forum.
如果你对该工具有什么意见和建议,可以通过微软提供的VS代码分析和代码度量论坛参与讨论。
Duke Kamstra, Program Manager for Microsoft, has a walk-through on his Code Analysis and Code Metrics blog.
微软的程序经理Duke Kamstra写过一篇介绍如何进行代码分析和代码度量的网志。
Duke Kamstra, Program Manager for Microsoft, has a walk-through on his Code Analysis and Code Metrics blog.
微软的程序经理Duke Kamstra写过一篇介绍如何进行代码分析和代码度量的网志。
应用推荐