Skip to main content
brian_thomas2
Adobe Employee
Adobe Employee
December 11, 2009
Question

FlexMetrics NCSS Metric

  • December 11, 2009
  • 1 reply
  • 787 views

Thanks for introducing the FlexMetrics tool, this is very cool! How is the NCSS metric calculated? It seems to be vastly under-counting our number of lines, but maybe I'm just not understanding the metric.

Thanks,

Brian

This topic has been closed for replies.

1 reply

Adobe Employee
December 12, 2009

Hi Brian,

It is calculating the number of Non Comment Source Statements, not the Lines Of Code:

1 private function foo() : void

2 {

3     var i : int = 10; // NCSS

4

5     while( i > 0 ) // NCSS

6     {

7          i++; // NCSS

8     }

9}

The NCSS value will be 3, where as the LOC will be 6.

That's the theory. In practice there may be a bug in the computation, but that's the way it works currently.

HTH

Xavier