The Artima Developer Community
Sponsored Link

Artima Developer Spotlight Forum
SemmleCode: A Free Eclipse Plugin for Code Search, Metrics, and Analysis

2 replies on 1 page. Most recent reply: Apr 7, 2009 10:08 AM by Oege de Moor

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Oege de Moor

Posts: 3
Nickname: oege
Registered: May, 2007

SemmleCode: A Free Eclipse Plugin for Code Search, Metrics, and Analysis Posted: May 7, 2007 4:39 PM
Reply to this message Reply
Advertisement

SemmleCode exposes the relationships between elements of your codebase, so you can search for bugs, style violations, and determine what elements are impacted by a proposed change. Query results can be viewed as charts, as graphs, as a tree view, or in the Eclipse problems view. There are pre-defined queries for most common tasks, and these can be launched via the Eclipse run menu.

SemmleCode is unique in that all the checks and rules can be formulated in a simple yet powerful object-oriented query language called .QL. That makes it a truly agile tool for code queries and source code analysis: you think of a new check or metric, and it takes just a couple of lines of .QL to try it out.

As a tiny example query, suppose you wish to find all methods in source code that have more than 8 parameters. Often such methods ought to be refactored, wrapping all those parameters in an appropriate object. In .QL, you write

from Method m
where m.fromSource() and m.getNumberOfParams() > 8
select m, "wrap parameters in object?"

The results of this query can be reported in the Eclipse problems view, and simultaneously as warning markers in the code itself.

SemmleCode is being developed by Semmle Ltd, a start-up company in Oxford, UK.


Elnar Hajiyev

Posts: 5
Nickname: semhq1
Registered: Jun, 2007

Re: SemmleCode: A Free Eclipse Plugin for Code Search, Metrics, and Analysis Posted: Jun 28, 2007 5:52 AM
Reply to this message Reply
A new version SemmleCode 0.2.0 has been recently released.

Oege de Moor

Posts: 3
Nickname: oege
Registered: May, 2007

Re: SemmleCode: A Free Eclipse Plugin for Code Search, Metrics, and Analysis Posted: Apr 7, 2009 10:08 AM
Reply to this message Reply
A new, Professional Edition of SemmleCode is now available from http://semmle.com. It provides tons of different visualizations, and many more carefully tuned analyses. Enjoy!

Flat View: This topic has 2 replies on 1 page
Topic: How JRuby Makes Ruby Fast Previous Topic   Next Topic Topic: Twitter on Scala


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us