Can you check on your side what is going wrong here ? Iām not sure but it might be the case we skip the rest of the file if there are errors while parsing the tsconfig.
Essentially the issue comes up after updating to the latest typescript version.
You can still keep the latest ts version (4.4.3 currently) and the scanner will correctly identify lines of code if you comment out the useUnknownInCatchVariables and exactOptionalPropertyTypes options in tsconfig if that works out for you, but it is obviously just a short term solution.
Hi,
I just noticed that the 4.4 option exactOptionalPropertyTypes still isnāt supported yet in our SonarQube Enterprise Edition Version 8.9.7 (build 52159).
It errors out with ERROR: Unknown compiler option 'exactOptionalPropertyTypes'. while parsing the tsconfig.json.
Could this be added, too?
Cheers, Steffen