What versions of SonarJS scanner are compatible with a given server version?

  • SonarQube 8.9.8 (LTS), SonarJS 7.4.4

I have a Typescript project that uses a few relatively-modern compiler features, from within the past 2 years. From the SonarjS release notes, it looks like scanner version 7.4.4 (released just over a year ago) is the last one before 8.0, which added support for TS 4.3 (released around the same time). I had to comment out new compiler options in my tsconfig to get the scanner to run at all, and now when I scan my code, about a quarter of my source files are skipped because the parser breaks on new keywords like override.

First: is 7.4.4 the newest SonarJS version that can be used on the current LTS server software? If so, are LTS users expected to just not add modern Typescript features for 2+ years? A newer plugin is supported, where do I find that information? I saw this plugin matrix but it doesn’t include core language scanners / plugins.

Second: I found this older post where @Yassin_Kammoun said “We’ll make sure to be more explicit about supported TypeScript versions with future SonarQube releases” – did that ever happen? I see that the v9.5 docs for JS/TS say Typescript 4.6, while the docs for 8.9LTS just say “Typescript 4” (without specifying a minor version). I’d love to have a TS-specific roadmap, since their compiler adds pretty significant changes more than once a year, and they’re often exactly the kind of static analysis improvements that Sonar users would love to be able to take advantage of.

Hi,

SonarQube is a bundle. Language engines are no longer independently upgradable. If you need the features in the newest version… you’ll need to upgrade to the latest SonarQube version, 9.5 at this writing (9.6 due in a couple weeks).

 
HTH,
Ann

Thanks. OK, so, just to be totally clear, that does mean LTS users must keep their Typescript projects pinned to a 2-year-old version of Typescript? If so, is there any plan to improve this situation in the future?

Hi,

The promise of the LTS is stability. If you’ve chosen the LTS, that must be what you want. If you want the latest/greatest features, then you should upgrade to the Latest/greatest version of SonarQube.

There are no plans to change this.

 
HTH,
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.