寻找 .Net MVC 的静态代码审查系统
我是一个小团队的一员,该团队的任务是在我们暂时停机时帮助我们的项目团队重建 TFS/SharePoint/等。管理层通知我们应该使用 SONAR 作为静态代码审查工具。这有点有趣,因为我们的项目使用 C#/ASP.Net/MVC...而 SONAR 是为 Java 设计的,只有通过插件才能处理 C#。
因此,根据我自己的直觉和一些高级团队成员的建议,我正在寻找替代方案。
有人可以向我推荐这样一个专为在 .Net 框架中工作而设计的系统吗?我知道 FxCop 可以在运行时定位代码,但最好有一些可以在非编译源代码上运行的东西。
预先感谢您的意见。
I'm part of a small team that has been tasked to help rebuild the TFS/SharePoint/etc for our project teams while we're on a bit of downtime. Management has informed us that we should use SONAR as a static-code-review tool. This is somewhat entertaining because we use C#/ASP.Net/MVC for our projects...whereas SONAR is designed for Java, and it's only through plugins that it can handle C# at all.
So, by my own gut instinct and the recommendation of some senior team members, I'm looking for alternatives.
Can anyone recommend to me such a system that was designed for working in the .Net framework? I know FxCop exists that can target the code at run-time, but it would be preferred to have something that will work on the non-compiled source code.
Thanks in advance for the input.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 @CodeInChaos 提到的,使用 StyleCop。
也就是说,FxCop/代码分析可以说更有用,并且与问题相反,它不在运行时运行。它在编译后运行,这不是一回事。我的 0.02 美元是所有 .NET 项目都应该使用它,唯一的例外是单元测试项目。
As @CodeInChaos mentioned, use StyleCop.
That said, FxCop/Code Analysis is arguably more useful, and, contrary to the question, doesn't run at runtime. It runs post-compile, which isn't the same thing. My $0.02 is that all .NET projects should use it, with the sole exception of unit tests projects.