SonarQube dosen't report errors on typescript files - JavaScript and/or TypeScript rules were not executed. Missing TypeScript dependency

Good morning,
I have a problem in SonarQube.
I noticed, in my project, that there are no errors, bugs, Vulnerabilities, Security Hotspots etc. It is all equal to 0.
But in theory, there should be a lot more errors, because in my local project, I have installed SonarLint extensions, and configured the same rules set on SonarQube. So, in my local typescript files, errors are reported, while SonarQube does not report the same errors.
This situation, however, has not always been present, in fact some days ago, SonarQube was working correctly, and all sonar errors are reported correctly also in SonarQube.
I can notice the following warning:
JavaScript and/or TypeScript rules were not executed. Missing TypeScript dependency.
Has there been any change? Has something different been set on SonarQube? Has something new been configured?
Could you please check?
I remain available for any clarification.
I look forward to your kind reply,
With best regards,

Nicolò

Hi,

What has changed in your environment? Did you upgrade your SonarQube version? What, exactly is the notification you see in your analysis log?

 
Ann

Uploading: MicrosoftTeams-image.png…

I don’t think I have changed anything

Can anyone help me please?

Hi! We are expanding our Typescript usage in our project. We were assuming that Sonar cloud would analyze and report errors from Typescript normally seen from the tsc transpiler. After testing this appears to not be the case. Are we missing some configuration for this or is it so that Sonar does not report Typescript errors?

An example error is to leave a function parameter without any typing information and we’d expect to see message “Parameter ‘session’ implicitly has an ‘any’ type.ts(7006)”.

I am considering an alternative where we format the error output from tsc in eslint style report JSON and pass that into Sonar to show the errors. This is suboptimal in my opinion.

Thank you for any assistance!

Hi @Mikael_Lavi

Welcome to the community!

You’ve resurrected a thread that’s nearly 4 years old. Per the FAQ, please don’t do that. Please create a new thread with all your details.

 
Thx,
Ann

1 Like