Latest News

December 08, 2008

SonarJ 4.0 Released

Groundbreaking Features Revolutionize Java Architecture Management

May 02, 2008

hello2morrow Opens Office in the United States

Waltham, MA was selected as location

April 18, 2008

hello2morrow and Software-Tomography join forces

to become a new market leader in the field of software architecture management

Upcoming Events

Tue, Jan 20 2009 21:00 UTC

SonarJ 4.0 Webinar

Control your Architecture

Tue, Jan 27 2009
 -
Thu, Jan 29 2009

OOP 2009

Munich (Germany)

Quality Rules Based on Metrics

Besides its ability to maintain a logical architecture and to identify cyclic dependencies SonarJ also is able to calculate a bunch of useful metrics:

  • ACD (average component dependency - says a lot about internal coupling)
  • LOC (lines of code - where is the beef?)
  • Cyclomatic complexity (where is the complexity?)
  • Assertion usage
  • Relational cohesion
  • Metrics of Robert C. Martin ( abstractness, instability etc.
  • Many others...

You can define thresholds for all metrics. E.g. you could define an upper bound for cyclomatic complexity of 15. Every developer that tries to create a method with a higher complexity will receive a warning. Then he can try to split the method into several less complex parts.

SonarJ aggregates all the metrics to the higher level. Therefore you can easily find out the cyclomatic complexity of a layer or the lines of code comprising a vertical slice.