Template for a good new topic, formatted with
INFO: Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or later. No TypeScript analysis is performed by SonarTS.
While running sonar-scanner and sending reports to sonarqube developer edition 8.1, I am getting this error and typescript files are not analyzed, this was working on community edition 7.9.1.
SonarTS plugin in sonarqube noe - sonar-typescript-plugin-188.8.131.5259.jar
This log is just a note, that actual analysis will be done by SonarJS plugin. Could you share full logs of analysis to understand why TS analysis is missing?
@Lena @Tibin_George_Kuriyan Possibly related to the same issue I’m seeing
Local Sonar Version - Community Edition Version 7.9.2 (build 30863)
Hosted Sonar Version - Version 7.0 (build 36138)
Sonar Scanner 184.108.40.2064
SonarJS/TS - 6.2 / 2.1
Sonar NPM Module - 2.5.0
Between March 6th and Today, our pipeline is no longer reporting code coverage - either in full or on new code.
We have a multi-module setup for an Angular project that has a root properties file and uses the multi-module for each library and app shipped from this repo
Nothing has changed in our configura…
Has only happened recently, seems others are reporting it here too - I’ve raised a bug on Github too, also included logs
Attaching sonar-scanner logs in debug mode.
Log part where it says typescript analysis is skipped
07:02:26.797 INFO: Sensor SonarTS [typescript]
07:02:26.797 INFO: Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or later. No TypeScript analysis is performed by SonarTS.
07:02:26.797 INFO: Sensor SonarTS [typescript] (done) | time=0ms
List of plugins from the above logs
07:01:04.524 DEBUG: Plugins:
07:01:04.525 DEBUG: * SonarCSS 220.127.116.110 (cssfamily)
07:01:04.525 DEBUG: * Svn 18.104.22.1685 (scmsvn)
07:01:04.525 DEBUG: * SonarPLSQL 22.214.171.12476 (plsql)
07:01:04.525 DEBUG: * SonarScala 126.96.36.1995 (sonarscala)
07:01:04.525 DEBUG: * SonarC# 188.8.131.5283 (csharp)
07:01:04.526 DEBUG: * Vulnerability Analysis 184.108.40.2065 (security)
07:01:04.527 DEBUG: * SonarJava 220.127.116.1188 (java)
07:01:04.527 DEBUG: * SonarHTML 18.104.22.1682 (web)
07:01:04.527 DEBUG: * SonarFlex 22.214.171.1241 (flex)
07:01:04.527 DEBUG: * SonarXML 126.96.36.1990 (xml)
07:01:04.527 DEBUG: * SonarTS 188.8.131.5259 (typescript)
07:01:04.527 DEBUG: * SonarVB 184.108.40.20683 (vbnet)
07:01:04.527 DEBUG: * SonarSwift 220.127.116.11 (swift)
07:01:04.527 DEBUG: * SonarCFamily 18.104.22.16806 (cpp)
07:01:04.527 DEBUG: * SonarPython 22.214.171.12451 (python)
07:01:04.527 DEBUG: * Google Authentication for SonarQube 1.6.1 (authgoogleoauth)
07:01:04.528 DEBUG: * JaCoCo 126.96.36.1995 (jacoco)
07:01:04.528 DEBUG: * SonarGo 188.8.131.529 (go)
07:01:04.528 DEBUG: * SonarKotlin 184.108.40.2065 (kotlin)
07:01:04.528 DEBUG: * SonarTSQL 220.127.116.1134 (tsql)
07:01:04.529 DEBUG: * SonarRuby 18.104.22.1685 (ruby)
07:01:04.530 DEBUG: * Vulnerability Rules for C# 22.214.171.1245 (securitycsharpfrontend)
07:01:04.530 DEBUG: * Vulnerability Rules for Java 126.96.36.1995 (securityjavafrontend)
07:01:04.530 DEBUG: * License for SonarLint 188.8.131.52237 (license)
07:01:04.530 DEBUG: * Vulnerability Rules for Python 184.108.40.2065 (securitypythonfrontend)
07:01:04.531 DEBUG: * Git 220.127.116.114 (scmgit)
07:01:04.534 DEBUG: * SonarPHP 18.104.22.16866 (php)
07:01:04.534 DEBUG: * SonarABAP 22.214.171.1244 (abap)
07:01:04.534 DEBUG: * Vulnerability Rules for PHP 126.96.36.1995 (securityphpfrontend)
That’s the line where the interesting long starts. So the problem is that most of your TS files are not matching any tsconfig file, we are not analyzing those.
07:03:37.498 INFO: Skipping 157 files with no tsconfig.json
So check that for each TS file there is at least one
tsconfig.json in one of the directories above.