Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity static code analysis tools for .NET

I've been spending a lot of time in TeamCity lately and the duplicates finder and FxCop build runners have been fantastic. I've also got build targets in the projects for StyleCop so violation of these rules is being surfaced and I've integrated NDepend which produces some great metrics.

What other tools have people successfully integrated with TeamCity? There's plenty around that integrate into the IDE or run locally (as discussed in this question) such as ReSharper, but obviously to run on the build server it needs to be able to execute unattended and produce artifacts that can be surfaced in the build report. What options are out there that I might have missed so far?

like image 733
Troy Hunt Avatar asked Dec 08 '10 06:12

Troy Hunt


People also ask

What is Qodana?

Qodana is a code quality monitoring tool that identifies and suggests fixes for bugs, security vulnerabilities, duplications, and imperfections. It brings all the smart features you love in the JetBrains IDEs into your project pipelines.

How do I run a ReSharper code analysis?

ReSharper helps you resolve most of the discovered code issues automatically. All you need is to press Alt+Enter when the caret is on a code issue highlighted in the editor and check the suggested quick-fixes.

What is static code analysis?

Static analysis, also called static code analysis, is a method of computer program debugging that is done by examining the code without executing the program. The process provides an understanding of the code structure and can help ensure that the code adheres to industry standards.

Which of these are static test tools for the Python programming language?

Prospector is a powerful static analysis tool for Python code. It displays information about errors, potential problems, convention violations, and complexity. It brings together the functionality of other analysis tools such as: PyLint - Code quality/Error detection/Duplicate code detection.


2 Answers

We are using StatSVN for code statistics especially LoC an Churn report also it generates nice looking statistics.
like this.

like image 119
Sergey Mirvoda Avatar answered Oct 15 '22 05:10

Sergey Mirvoda


In case somebody is still interested, I've integrated ConQAT into TeamCity.

It has a great (and pretty fast) code clone detector for C# and java and generates an excellent and very visual distribution of code duplicates for the entire code-base. It's actually a very powerful tool, not just useful for code duplicates.

It can generate interactive graphs such as this one: Sample code clone map

I've also recently integrated ReviewBoard, a tool used for code reviewing (similar to Crucible), but in my case integrated through TC build configurations instead of the more common approach of using VCS hooks.

like image 26
Pablo Romeo Avatar answered Oct 15 '22 05:10

Pablo Romeo