Lint for C# [英] Lint for C#
问题描述
是否有用于C#的类似棉绒的工具?我有编译器来标记警告为错误,还有Stylecop,但是这些仅捕获最严重的错误。是否还有其他必备工具(尤其是像我这样的C#新手)指出我正在做的蠢事?
Is there a lint-like tool for C#? I've got the compiler to flag warnings-as-errors, and I've got Stylecop, but these only catch the most egregious errors. Are there any other must-have tools (especially for newbie C#ers like me) that point out probably-dumb things I'm doing?
推荐答案
尝试了 FxCop 吗?它作为代码分析集成到VS中。
Tried FxCop? It's integrated into VS as "Code Analysis"
在较新版本的Visual Studio中,它称为 Microsoft代码分析,可以从Visual Studio Marketplace中下载: https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.MicrosoftCodeAnalysis2017
In the newer versions of Visual Studio, it is called "Microsoft Code Analysis" and can be downloaded from the Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.MicrosoftCodeAnalysis2017
这篇关于Lint for C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!