Counting lines of code
Alejandro Gonzalez
mrgonza78 at gmail.com
Wed Jan 30 19:12:49 UTC 2008
I used this some time ago and it worked. Hope it helps...
linesOfCodeOf: aSetOfClasses
| loc |
loc := 0.
aSetOfClasses do: [ : aClass |
aClass class methodsDo: [ : aCompiledMethod |
loc := loc + aCompiledMethod linesOfCode.
].
aClass methodsDo: [ :aCompiledMethod |
loc := loc + aCompiledMethod linesOfCode.
].
].
^ loc
Now, you only need to know how to get what the classes of a project are.
Regards
Alejandro
On Jan 30, 2008 4:28 PM, <squeak-dev.5.pris at spamgourmet.com> wrote:
> Hi,
>
> what is the easiest way of counting LOC of my project?
>
> Thanks Roland
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080130/e72077a3/attachment.htm
More information about the Squeak-dev
mailing list
|