开发者

Code analysis using fxCop for C#..NET projects to display its results in Sonar

开发者 https://www.devze.com 2023-04-10 18:11 出处:网络
I am in need of running static code analysis using fxCop for C#..NET projects and display its results in Sonar? I am new to Sonar. Can I run FxCop from S开发者_运维问答onar on .NET code. How would I d

I am in need of running static code analysis using fxCop for C#..NET projects and display its results in Sonar? I am new to Sonar. Can I run FxCop from S开发者_运维问答onar on .NET code. How would I do this and get the results displayed in sonar?


You can find anything to get started here: http://docs.codehaus.org/display/SONAR/C-Sharp+Plugins+Ecosystem

See the C# example application that we use to test the Sonar C# Plugin here: http://svn.codehaus.org/sonar-plugins/trunk/dotnet/tools/dotnet-tools-commons/src/test/resources/solution/Example/


Sonar is an open source software quality platform. Sonar uses various static code analysis tools such as Checkstyle, PMD, FindBugs , FxCop , Gendarme and many more to extract software metrics, which then can be used to improve software quality. Sonar provides some useful metrics for pointing out hotspots in your code that may be making it more difficult to maintain and extend your functionality. SONAR provides a web interface using which we can drill-down on any of the metrics to the module, class, and method level, including full source code.

Coming to your question, YES , you can run FxCop using Sonar Client. The complete procedure to run sonar analysis is as follows:

  • Set Up and configuration of Sonar Server
  • Set up and configuration of Sonar Client
  • Install Sonar Plugins for C# environment (C# ecosystem)
  • running Sonar Analysis using Sonar client
  • Analyzing Sonar Analysis over Sonar Server web interface.

If your sonar analysis is complete then all the results will get published over the Sonar web server portal , you configured. For detailed procedure for setup,configuring and running sonar analysis over C# project visit here.

For C# ecosystem in SONAR click here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号