Duplicate code finder in TeamCity

TeamCity allows us to find the duplicate code in Java and .Net projects.

Below image shows how we can add a build step to find the duplicates in TeamCity.

Duplicate finder runner for Java in TeamCity

Duplicate finder runner for Java in TeamCity

Similarly we can have a duplicate finder for .Net projects. Once we run this build, on overview tab of the build page, we can see the count of duplicates found as shown in below image.

Viewing duplicate code count in TeamCity

Duplicates tab shows the instances of duplicate as well as actual duplicate code and files as shown in below image.

Duplicates tab showing duplicate code in TeamCity

Duplicates tab showing duplicate code in TeamCity

 

 

You may also like...