当前用于 C#(或其他 .NET 语言)的静态源代码分析工具通常在程序集级别运行。他们使用反射来分析代码。
是否有仅在源代码级别运行的可用工具(如 C 语言的 lint)?
最佳答案
IIRC,SourceMonitor适用于代码级别,也适用于 Microsoft StyleCop .
源监视器:
The freeware program SourceMonitor lets you see inside your software source code to find out how much code you have and to identify the relative complexity of your modules.
风格警察:
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project.
关于c# - 在源代码级别运行的 C# 静态源代码分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2681790/