I’m a little confused by the definition of (lines of code) and (lines to cover) on sonar documentation .
here is :
the lines of code : Number of physical lines that contain at least one character which is neither a whitespace nor a tabulation nor part of a comment.
lines to cover : Number of lines of code which could be covered by unit tests (for example, blank lines or full comments lines are not considered as lines to cover).
I understand that lines of code = lines to cover WHEN covered lines =0
Can anyone explain more the difference if there is any, please?