Dear Sonar experts,
We keep getting Sonar error complaining code line out of range. The error message is:
java.lang.IllegalStateException: Line 92 is out of range in the file xxxxx.cpp (lines: 90)
The code it complains on has only 90 lines, we don’t understand how Sonar would expect line 92. Our CI does not use any cache, all analysis are from clean checkout and clean build.
This error can be eliminated by adding some empty lines in the end of the file, but we don’t want to keep empty lines in our code base for this reason.
Could anyone help on how to solve this ?