Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
148 views
in Technique[技术] by (71.8m points)

c# - Looking for static-code-review system for .Net MVC

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...