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]
When counting the number of lines with comments, do you include those comments included at the end of lines with source code? Or just those lines that are purely comments? Would be a good idea to do, if not being done already.
A line with mixed code and comment counts only as code.
To be counted as a comment line, the line must contain purely comments.
Yes, that was my first impression. Is there any plan to change this?
I would consider this a pretty low priority. Of course you are always free to fix it since the ohcount is available at labs.ohloh.net.
In reality, ohcount is correct that the mixed line is code and clearly the comment is not all that important. A comment that is meant to influence the documentation of the code should not be mixed with the code. Ohcount makes some value judgements here and there is really nothing wrong with that.