On 17.12.19 11:04, Josef Reidinger wrote:
Ruby 4281 104886 150083 573752
C++ 726 40778 31679 143555
I was tempted to calculate the ratio of real lines of code vs. comment lines
(ignoring blank lines):
comment_ratio = comment_lines / (total_lines - blank_lines)
Then I realized that we have that license header in each file which greatly
distorts such a ratio: That legalese is also considered comment lines. Each
file has a legalese header. But Ruby files tend to be a lot smaller, so there
are more percent of legalese lines.
so...
comment_ratio = (comment_lines - legalese_lines) /
(total_lines - blank_lines - legalese_lines)
Any chance of figuring out the real sizes without the legalese?
I am really curious how well documented our stuff is.
Kind regards
--
Stefan Hundhammer <shundham...@suse.de>
YaST Developer
SUSE Software Solutions Germany GmbH
Geschäftsführer: Felix Imendörffer HRB 36809 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
--
To unsubscribe, e-mail: yast-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: yast-devel+ow...@opensuse.org