Continuous Inspection

SonarQube JavaScript 2.12 Released

SonarSource is pleased to announce the release of the JavaScript plugin version 2.12.

This new version provides a full support of React JSX. JSX allows to inject some XML elements in JavaScript code. Not only the JavaScript analyzer is able to correctly parse those XML elements but also to correctly track all references to some existing variables contained into those XML elements. Example:



Moreover, the JavaScript analyzer starts benefiting from the state-of-the-art SonarSource’s technology to do some path-sensitive data-flow analysis. The first rule relying on this technology is :

And here is an example of an issue found by this rule in the Dojo project :



Please read the release notes for more information. You can install or update it via the Update Center.
Documentation is available on the product page.