Dear Open Hub Users,
We’re excited to announce that we will be moving the Open Hub Forum to
https://community.blackduck.com/s/black-duck-open-hub.
Beginning immediately, users can head over,
register,
get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.
On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at
[email protected]
Hello to everybody.
I've almost finished putting my project (blueMarine) under Cobertura, which computes the LOC figure too. OHLOH reports 50.000+ LOC, code only. The numbers reported by Cobertura are around 11.000 LOC for two sub-projecs out of three that make blueMarine; I don't think the third and last subproject (which will be added under Cobertura in a few days) will be much bigger than the former two together, which gives a total estimate about what the final Cobertura number will be to about 25.000 lines. Of course OHLOH counts tests too, but there are just a few for now, let's say that not counting tests, OHLOH LOC are about 45.000. There is a difference of 20.000 lines. Does OHLOH measure also lines with just braces or the method declarations? If so, since Cobertura counts only statements, this should make for another increase, but I doubt that this explains the 20.000 missing LOC. Any hint?
Thanks.
Hi fabrizio,
Sorry for this late reponse -- I did not see your post until today.
Yes, Ohloh counts all lines with any code at all -- this includes lines with just braces, and method declarations.
For some precise numbers from Ohloh you can look at this page.
I'm not sure what you mean by two sub-projects
, so I can't compare our numbers with yours.
Ohloh counts everything that comes back from this command:
svn co https://bluemarine.dev.java.net/svn/bluemarine/trunk/src bluemarine --username='guest' --ignore-externals
There are a lot of tools
and third-party libraries in this checkout -- are you counting all of this with Cobertura?
Very soon we will be releasing our line counter as an open source tool. If you are able to run our line counter locally, you should be able to understand where the differences are coming from. Send me email ([email protected]) if you are interested in getting an early drop of this code.
Otherwise, I am happy to help answer questions. If you can give me some exact subdirectories, I'll be happy to give you some line counts.
Thanks,
Robin
Thanks for you reply.