This app has been archived

You may still get support information and download previous versions of this app. Learn more.
Last modified 2013-04-25 0 downloads By Marty Andrews

Support

To learn more about the app, you should:

Description

Shows duplication statistics for your build as reported by Simian.

At a basic level, the simian-bamboo plugin will show you the summary data produced by Simian when it is run on your build. This includes the number of significant lines of code (ie. a count not including blank lines or comments), and a count of the duplicate lines in your code. This gives you an indication of how much copy-and-paste style activity has occurred in your system and where to go to fix it.

In addition to the summary details, the simian-bamboo plugin gives you some feedback on how bad the percentage of duplication is in your system, based on the author's experience. Four levels, ranging from "Excellent" (0% duplication) to "Bad" (>10% duplication) are shown in the results page.

In order to help you locate and fix duplication in your system, the simian-bamboo plugin will list the top 10 worst sets of duplicate code found on the results page as well.

Finally, the summary page for your build plan includes a Simian graph which plots both lines of code and duplicate lines of code on the same graph, allowing you to see how duplication was affected over time in your build. Perhaps a rush towards the end of a release caused some copy and paste activity in the team.

Plotting multiple data sets an the same graph is one of the interesting features of the simian-bamboo plugin. The Bamboo API has support built in for single data sets, but not for multiple data sets. The graph data needed to be built by hand, and the graph generated in a way that Bamboo still rendered correctly. See the code attached for how that is done.

Version history