counting lines of code
Michele Simionato
michele.simionato at gmail.com
Sat Jan 23 06:00:19 EST 2010
On Jan 22, 7:51 pm, Phlip <phlip2... at gmail.com> wrote:
> On Jan 21, 9:00 pm, Michele Simionato <michele.simion... at gmail.com>
> wrote:
>
> > Just for fun I have run cloc on our trunk:
>
> > SUM: 8743 272238 215871 1470139 x 1.84 =
> > 2708354.95
>
> Nice!
>
> My favorite version of a cloc system can distinguish test from
> production code. That's why I always use executable cloc to measure
> the ratio of test to production code (where 1.2:1 is almost
> comfortable an 2:1 is sacred).
Most of this code base is old, before we started using automatic
tests, so tests are not a significant fraction of the code. And in any
case I consider tests as code, since you have to maintain them,
refactor them, etc.
More information about the Python-list
mailing list