Metric new_lines_to_cover vs new_lines?

Hi,

looking to my dashboard there are the metrics new_lines_to_cover and new_lines:

  • What’s the difference?
  • Why could they be different?

grafik
Other points is also that I can’t find new_lines on the metric definitions page:
https://docs.sonarqube.org/latest/user-guide/metric-definitions/

Regards,
Günter

Hey Günter,

“Lines to Cover” refers to Executable Lines, which means a line that can be covered by Tests. Comments, for example, can’t be covered by tests, or blank lines (so they’re excluded from this measure).

Lines, however, includes all lines.

Hi,

Thanks for your answer. Means in other words: new_lines_to_cover is new_ncloc.

Regards,