문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top