Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...