Source Code Lines in gnucash

Christian Stimming stimming at tuhh.de
Mon Oct 30 11:04:03 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just recently I wondered how the actual number of source code lines in
gnucash has changed over the recent releases. There are some numbers in
src/count.dat, but they stop with 385.5k LOC (lines of code) at version
1.8.4. In order to get some more recent numbers, I installed the tool
sloccount and went through various tags in SVN.

Surprisingly enough, sloccount reports numbers that are almost 50% lower
from what Linas' simple line counting initially said. I guess this
simply accounts for the fact that we are using a *lot* of comments
inside of our code, which is good, but they are not counted here [1].
Whatever.

Most notable results from sloccount: gnucash-1.8.4 had 197k SLOC, 1.8.12
had 203k, and 2.0.0 had 250k SLOC. The full numbers are attached; if you
like, I can commit that to src/count.dat as well.

Regards,

Christian

[1] From http://www.dwheeler.com/sloccount/sloccount.html: This tool
measures ``physical SLOC.'' Physical SLOC is defined as follows: ``a
physical source line of code (SLOC) is a line ending in a newline or
end-of-file marker, and which contains at least one non-whitespace
non-comment character.'' Comment delimiters (characters other than
newlines starting and ending a comment) are considered comment
characters. Data lines only including whitespace (e.g., lines with only
tabs and spaces in multiline strings) are not included.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRUYic2XAi+BfhivFAQL28AP9E0zP3rqN/tPnnKRtus1+hQl0iCL2E8Jl
SC7HW/sL7oP0pWOWwqP0fKUDe/v2l1mOPL6cK0tzVIvaFOopBcYOpsrf31PkaPXQ
sORGvgWqCnTcRDbGPt/1HhfYmQg/nEa4rrj0wLZvkR8UzmcbJBXbJamyrdBwZOWF
xcpL+AvowOY=
=ihko
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: count.dat
Url: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20061030/896ab7c6/attachment.pl 


More information about the gnucash-devel mailing list