The last empty line of source file is not displayed in the source code viewer
When the last line of a source code file is a blank line, this line is not currently displayed but should be
We decided that the last empty line should not be counted as a real line, as it is empty. Indeed, no tool will report a violation on an empty line (as there's no code) and we don't want a user to be able to create a manual violation on it.
See SONAR-3003 for reference.
And now we finally decided that definition of number of lines should be consistent with what you see in IDE, i.e. number of line terminators plus 1. And same should be shown in Sonar - see SONAR-3896.
Manually tested !
Already covered by integration tests.