Hi Janko. Thanks for your useful package.
Apparently there is some issue with #linesOfCode. The dummy expression
below return 5 instead of 4 in Pharo 1.4 and 2 because is counting the
autogenerated 'DoIt' selector.
(UndefinedObject evaluatorClass new
compileNoPattern: '| oc |
oc := OrderedCollection new: 20.
oc add: 1.
oc size'
in: UndefinedObject
context: nil
notifying: nil
ifFail: []) generate linesOfCode
Hernán
El 31/03/2013 10:17, Janko Mivšek escribió:
Hi Hernán
I once did some code statistics for our web frameworks, by counting:
- Nr of packages, categories, classes, methods
- lines of code
- Avg methods/class
- Avg lines/method
- Nr of test methods
- Avg tests/class
- % of commented methods
- % of commented classes
Then three graphs were drawn:
- Methods in classes
- Class inheritance depth
- Lines in methods
Results can be seen here:
https://docs.google.com/spreadsheet/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlFyQXpHclhZa2c#gid=1
The code measuring all above is here:
http://www.squeaksource.com/WebCodeStats.html
Hope this helps
Janko
Dne 31. 03. 2013 09:23, piše Hernán Morales Durand:
Hi there,
Guys, what are you using to measure logical lines of code (LOC) in Pharo?
Given I am measuring a script, is there any other software measure you
may recommend?
Cheers,
Hernán