change the way that calculate a line of code-a valid line with end character like semicolon
SONARDOTNT-328 Improve code coverage metrics