Any alternatives for code analysis in .net besides FxCop?

I was wondering if there are alternatives for code analysis. I believe that you can create a code analyzer from scratch, although this is a tedious job, and I'm not sure if it is worth it. Are there other network-independent analyzers?

Thanks sun

+4
source share
5 answers

NDepend is a commercial tool (with the release of Open Source / Academic Edition) that can do all kinds of analysis for you. Although for some rules it overlaps with FxCop, it still has many functions.

I believe you can create a code analyzer from scratch

Everything is possible, but it takes a lot of time to write any validation tool that has any meaning. If your boss pays you for software development, you will burn his money. Writing your own analyzer is a good exercise, but it will also be a waste of time.

+5
source

I think ReSharper also has some code analysis functions, the search here is also in SO.

I found this one by the way: http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx

Also look at the source of the sonar:

http://www.sonarsource.org , this is open source :)

+4
source
+4
source

My company offers many tools for analyzing C #.

You ask about analysis tools in a broad sense, so I assume that you are not just interested in static analysis. We also provide (based on dynamic analysis) test coverage and profilers for C #.

+1
source

As David Piras said, you should take a final look at the C # sonar plugin ecosystem. I am one of the main participants in the project, I do not belong to sonarsource. These plugins and sonar itself are open source. The LGPL license and, therefore, business orientation.

If you want to see sonar in action on a C # project, take a look at a demo:

http://nemo.sonarsource.org/dashboard/index/org.mybatis:mybatisdotnet

The official documentation is available here:

http://docs.codehaus.org/display/SONAR/C-Sharp+Plugins+Ecosystem

If you need help or have any questions regarding the installation process, feel free to subscribe to the user mailing list:

http://www.sonarsource.org/support/support/

+1
source

All Articles