I’m using SonarCloud and SonarScanner - version below:
INFO: SonarScanner 184.108.40.2060
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Linux 4.14.193-113.317.amzn1.x86_64 amd64
My project is setup to use TypeScript 3.6.5, apart from having that version in my package.json file, typescript 3.6.5 is also installed globally in my system.
When I run the scanner I see the following message: “INFO: Version of TypeScript used during analysis: 3.8.3”
Because SonarScanner is running on 3.8.3, it’s detecting things I added for 3.6.5 as “unnecessary assertion”.
Why can’t I run the scanner with 3.6.5?