November 20, 2008, 04:45:17 pm *
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: overall metric  (Read 2148 times)
Unpublished
Newbie
*
Posts: 6


« on: October 01, 2007, 11:17:20 am »

Hi,

I am working on a (thought) simple query to give me an overall metric of a project with

numberOfPackages, numberOfInterfaces, numberOfClasses, numberOfLines

Did not manage it by now. Does anybody knows how to do it. Is there some kind of "project" object in .QL which could be asked for the overall informations.

Thanks
Klaus
Logged
Mathieu Verbaere
Administrator
Newbie
*****
Posts: 26


« Reply #1 on: October 02, 2007, 05:33:39 pm »

Hi Klaus,

You can get that information for the full working set you have populated:

Code:
select
  count(Package p | p.fromSource()) as numberOfPackages,
  count(Interface i | i.fromSource()) as numberOfInterfaces,
  count(Class c | c.fromSource()) as numberOfClasses,
  sum(MetricPackage p | p.fromSource() | p.getNumberOfLines()) as numberOfLines

Does this help or are you interested in having that information for each project of your working set? We do not have a notion of "Eclipse project" in the database yet (although you could actually find out in which project is a compilation unit by looking at its path) but we could add that.
Logged
stlecho
Newbie
*
Posts: 4


« Reply #2 on: January 28, 2008, 12:47:37 pm »

I've found this query quite useful, but now I would like to have the same statistics on a per-project base. Is this possible with version 0.4.0 ?
Logged
Mathieu Verbaere
Administrator
Newbie
*****
Posts: 26


« Reply #3 on: January 30, 2008, 08:57:42 am »

No, not yet. We are considering adding that notion of project in the next version.
Logged
stlecho
Newbie
*
Posts: 4


« Reply #4 on: January 30, 2008, 10:59:52 am »

Hi Mathieu,

Any ideas on the included features and release date of this next version ?

Regards, Stefan Lecho.
Logged
Mathieu Verbaere
Administrator
Newbie
*****
Posts: 26


« Reply #5 on: January 30, 2008, 04:40:02 pm »

We are planning to release definitely before the end of March, possibly sooner. The development effort is mostly being put on the professional version right now (http://semmle.com/products/semmlecode-professional/), but of course the express edition benefits that effort too.
Thanks again for your continuous interest.
Logged
Pages: [1]
  Print  
 
Jump to: