We are using sonarqube version 6.7.7
I wanted to know if there is any way we can configure sonarqube to count the number of lines on unformatted code.
With formatted code it counts each line as a new line instead of an executable statement.
Any help is appreciated.
Thanks.
Hi Vikas, welcome to the SonarSource Community!
It’s up to you to format your code as you wish for it to exist for viewing/maintainability purposes. SonarQube will always count any line that contains reachable code; there is no way to “condense” this, as you seem to be requesting.
Also FYI, SonarQube 6.7.7 is long past its end of life and no longer supported; please consider an upgrade to at least the 7.9 LTS version (and be aware the new 8.x LTS is expected within Q1 2021).