Lines of code...how are they counted?

sonarqube

(JD) #1

I notice that the community edition now counts lines of code in the admin section. How are those lines being counted? Does this include whitespace and comments?


(G Ann Campbell) #2

Hi,

This might help: https://docs.sonarqube.org/display/SONAR/Metric+Definitions#MetricDefinitions-Size

To to answer your question directly, no this doesn’t count lines with only comments or vertical whitespace.

Ann


(JD) #3

Thank you very much.