BT

Codecity for Eclipse Visualises Source Code Metrics

| by Alex Blewitt Follow 4 Followers on Mar 12, 2015. Estimated reading time: less than one minute |

During EclipseCon, Codetrails released an alpha version of Codecity for Eclipse, which calculates source code metrics and presents them in a city block layout. After installing from the marketplace or the update site, a new option 'Show in → Codecity' will be enabled on project resources or source folder. After calculating a set of metrics, an external browser will be opened with a WebGL view that renders the results in a pannable and scrollable graphic.

For example, the graphic below shows individual classes in Apache Log4J 1.2.17; the highest bar selected is LogBrokerMonitor, which contains 106 methods and 36 fields.

Image showing the result of Codecity operating on Log4J 1.2.17

The metrics for display can include number of methods (or fields as width/length), the number of commits (if the project is connected to a team shared project in Eclipse) or the number of tests succeeded/failed/coverage (if the project has a jacoco coverage report with a jacoco.xml file). Other metrics, such as code complexity numbers, are likely to be added in the future.

More information about the project is available at the marketplace entry. The plug-in is free for non-commercial use.

Let InfoQ know what you think by commenting below.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss
BT