Forums : Ohloh General Discussion

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]

Comment Counting

Does ohloh only count comments on seperate lines? Like this
//Test
x + y = z
Or will it still count comments like this
x + y = z//Test
Thanks
UberMouse

Garr forgot the text formatting dosent work I presume you know what I mean

Taylor Lodge over 15 years ago
 

Hi UberMouse,

Each physical line in the source file is counted only once, and as only one category: either code, comment, or blank.

A single line that contains both code and comments is counted as only code.

Your first example will be considered 1 line of code and 1 line of comments.

Your second example we be counted as 1 line of code only.

Robin Luckey over 15 years ago
 

Ok thanks. Time to begin the annoying process of moving all my comment lines up one line :(
Oh well at least there's only 500-750 lines to move up :)

Taylor Lodge over 15 years ago