I used this some time ago and it worked. Hope it helps...<br><br>linesOfCodeOf: aSetOfClasses<br>| loc |<br>loc := 0.<br>aSetOfClasses do: [ : aClass |<br> aClass class methodsDo: [ : aCompiledMethod | <br> loc := loc + aCompiledMethod linesOfCode.<br>
]. <br> aClass methodsDo: [ :aCompiledMethod | <br> loc := loc + aCompiledMethod linesOfCode.<br> ].<br>].<br>^ loc<br><br>Now, you only need to know how to get what the classes of a project are.<br>Regards<br>
Alejandro<br><br><div class="gmail_quote">On Jan 30, 2008 4:28 PM, <<a href="mailto:squeak-dev.5.pris@spamgourmet.com" target="_blank">squeak-dev.5.pris@spamgourmet.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>what is the easiest way of counting LOC of my project?<br><br>Thanks Roland<br><br></blockquote></div><br>