tags:

views:

854

answers:

6

Is there a C# equivalent of Sonar?

+1  A: 

You can use the Code Analysis tools in Visual Studio.

Also, there are third party tools that include much of the same information. Much of what is reported by Sonar is output by AQTime's Static Profiler, for example.

Reed Copsey
+1  A: 

I imagine that Team System would be about as close as you could get (in terms of a monolithic software management tool for .NET-based products).

Andrew Hare
A: 

The possibility of Visual Studio Team Foundation Server is apply certain rules for coding. But it takes some effort into TFS to ensure the quality insurance.

pipelinecache
A: 

FxCop analyse dll

Clover
+6  A: 

Sonar is now avalable for C# ! You can check out the wiki page here : http://docs.codehaus.org/display/SONAR/.Net+plugin I am one of the developer of the "dotnet sonar plugin", your feedback is welcomed.

Alexandre Victoor
Very cool. Glad to see support for C#.
Taylor Leese
... and a new version will be soon available with more rules ;)
Alexandre Victoor
How is the .NET plugin for Maven?
Taylor Leese
Well, the maven dotnet plugin firt feature is the ability to run msbuild on a visual studio solution. To make thinks easier additional goals have been developed such as dotnet:coverage, dotnet:stylecop, dotnet:fxcop and so on... Take a look to http://maven-dotnet-plugin.appspot.com for more insight.The big missing feature is dependency management. Right now nothing is done, but that will perhaps change in the future. You can already find articles on how to use maven with VS solutions. Basically you can zip the assemblies of a solution and store the zip file in a maven repository.
Alexandre Victoor
A: 

Did you have a look at NDepend? The tool analyze C# and .NET code and comes with plenty of cool features to browse the analysis results. With NDepend you can make rules, you can compare 2 versions of the code base and you can harness more than 80 code metrics.

Also, the tool comes with several great visualization features like:

Dependency Graph: alt text

Dependency Matrix: alt text

Code metric visualization through treemaping: alt text

Patrick Smacchia - NDepend dev
Patrick I know and like NDepend however it doesn't do everything (i.e. code coverage) nor unless my memory fails does it have web based interface. Can NDepend be plugged into SONAR or something else like it?
Mark Levison
NDepend comes witha HTML report. Before the end of 2010 NDepend will come with interactive HTML + javascript report. NDepend can be plugged to any tools thanks to its NDepend.Console.exe command.
Patrick Smacchia - NDepend dev