使用静态代码分析工具来检查自己的代码。
最后,有一个面向t - SQL的静态代码分析工具。
代码复查:一个静态代码分析工具可以分析你的代码并报告其中的错误。
Code Review: a static code analysis tool that analyzes your code and reports problems.
在测量工具部分,Jaibeer解释了使用静态代码分析工具的理由。
In the Measurement tools part, Jaibeer explains the reasons to use static code analysis tools.
SQLite使用全面覆盖的测试来保证质量,而不是依靠编译器警告或静态代码分析工具。
Quality assurance in SQLite is done using full-coverage testing, not by compiler warnings or other static code analysis tools.
这种类型的残留代码也可以通过静态代码分析工具如pmd和FindBugs找到。
This sort of vestigial code can also be found by static code analysis tools like PMD and FindBugs.
为静态代码分析工具(如FindBugs)编写自定义bug检测器可以显著提高代码质量,并且有许多乐趣。
Writing custom bug detectors for a static code analysis tool such as FindBugs can offer tremendous leverage in improving code quality, and it can be a lot of fun.
不得不提的两个插件是进行源代码控制的RationalClearCase插件以及静态代码分析工具FindBugs,eBay使用FindBugs来部分验收其所有源代码。
Two which get a mention are the Rational ClearCase plug-in for source-code control and static code analysis tool FindBugs which is used by eBay as part of their acceptance of any source code.
你可以使用fxcop,或者StyleCop、clonedetective、ndepend、 Visual Studio 2008 附带的codemetricsfeature, 或者其他自选的静态代码分析工具。
Use fxcop, or StyleCop, clone detective, ndepend, the code metrics feature of VS 2008, or any other static analysis tool of your choice.
本文提供了一种使代码味道与一种度量方法相关的模式,这种度量方法可以配置为通过自动静态分析工具标记。
This article provides a pattern of correlating a code smell to a measure that can be configured to be flagged from an automated static analysis tool.
静态分析工具是提供总体代码质量的唯一途径。
Static analysis tools are one way of improving overall code quality.
这种技术保持使系统安全的一种有效的方法,但是因为并没有真正地清除数据(仅仅以它作为条件),那么当前的静态分析工具就不能适当地分析这样的代码。
This technique is a valid way to keep the system secure, but because there is no real sanitization of the data (only conditions on it), current static analysis tools do not properly analyze such code.
对它可理解的代码的局限性:例如,静态分析工具需要构建所使用的每种语言以及每个开发平台的完全支持。
Limited to code it can understand: for example, static analysis tools need to build dedicated support for each language and every development platform used.
静态分析是许多企业都使用的很有价值的工具,可以帮助管理大型代码库。
Static analysis is a valuable tool used by many organizations to help manage large code bases.
CPD是流行的开源静态分析工具pmd的一部分,它报告代码基中重复行的数量。
CPD, which is part of the popular open source static analysis tool PMD, reports the number of duplicate lines in a code base.
在清单8中,我调用PMD静态分析工具来搜索代码库中的长方法。
In Listing 8, I'm calling the PMD static analysis tool to search for long methods in the code base.
我坚信本文的例子也有助于您使用静态分析工具来查找本文未涉及到代码味道。
I'm confident that the examples in this article will help you use static analysis tools to find other types of code smells than the ones I've demonstrated.
FindBugs就是一个能够查找代码中可能的缺陷模式的开源静态分析工具。
FindBugs is an open source static analysis tool that looks for likely bug patterns in code.
CheckStyle: CheckStyle是一个开源静态资源代码分析工具。
CheckStyle: CheckStyle is an open source static source code analysis tool.
我鼓励读者对自己的代码试用静态分析工具,不管是FindBugs、PMD还是其他的。
I encourage you to try some form of static analysis tool on your code, whether it's FindBugs, PMD, or something else.
RationalApplication Developer包含能够让您在代码运行之前就确定出缺陷的静态分析工具。
Rational Application Developer includes static analysis tools that enable you to identify defects before the code even runs.
FxCop是一个广泛使用的静态代码分析器和策略优化工具,最近微软发布了该产品的1.36版本。
Microsoft has released version 1.36 of FxCop, the popular static code analysis and policy enforcement tool.
词组“源代码静态分析工具”是一个通用的词汇,它表示用于在未执行程序的情况下从源代码提取信息的工具。
The phrase "source-code static analysis tool" is a general term for a tool that extracts information from the source code itself without executing the program.
静态分析工具审核一个应用程序的源代码和二进位,弄清楚这个应用程序是如何运行的,以及构建这个行为的数学模型。
Static analysis tools look at the source code and binaries of an application, figure out how the application works, and build mathematical models of that behavior.
通过识别潜在的源代码,静态分析工具还能帮助发现资源泄漏,比如无法释放内存或资源。
Static analysis tools also can help to find resource leaks, such as failures to deallocate memory or release resources, by identifying potential source code.
静态分析工具对于保证代码质量来说非常有用,特别是如果这些工具被统一在一个可以自动构建过程中时。
Static analysis tools are very useful to keep an eye on code quality, particularly if they're integrated in an automatic build process.
与专用的源代码静态分析工具相比,编译器的此项功能比较有限,但值得一试。
Compared to dedicated source-code static analysis tools, the functionality is usually limited, but worth trying.
对于一百万行代码,您认为运行静态分析工具要花多长时间?
With over a million lines of code, how long do you think it would take to run a static analysis tool against the code?
最后,一些最前沿的静态分析工具能够从源代码提取设计模式。
Finally, at the frontier of the state-of-the-art, there are static analysis tools capable of extracting design patterns from source code.
使用诸如pmd的CPD或CheckStyle这样的静态分析工具,您能够将整个分析过程作为自动构建的一部分,持续分析,确定代码重复度高的区域。
By using a static analysis tool such as PMD's CPD or CheckStyle, you can determine areas of high code duplication on a continual basis as part of running an automated build.
应用推荐