Forum OpenACS Q&A: Counting Lines of Code of an OpenACS Project

Dear all,

in the context of a security audit, we have been asked to count the lines of code of our project. As far as I know, there aren't any tools that ship with a language detection configuration that recognizes OpenACS's specialities such as comments in ad_proc, adp files, etc...

What is currently the least evil to count lines of code in an OpenACS project? Has anyone practical experiences in this regard?

Collapse
Posted by Gustaf Neumann on
You get some statistics from apm::metrics [1] (for example [2]). These metrics counts Tcl line comments as well as ad_proc comments, SQL comments, etc. You will have to do probably some fine-tuning for your needs, but this is at least a start.

-gn

[1] https://openacs.org/api-doc/proc-view?proc=apm::metrics
[2] https://openacs.org/xowiki/categories