SonarQube analysis on JSX file

6.9k Views Asked by At

I need to run SonarQube analysis for .jsx file . Is there any way so that we can run sonar-runner to analyse JSX file for performance issue?

2

There are 2 best solutions below

1
On

JSX is supported by the SonarQube JavaScript plugin since version 2.12.

See SONARJS-521 for more information.

1
On

You can try to add:

sonar.javascript.file.suffixes=.js,.jsx

in your sonar-project.properties file. The default value is .js, so only those files will be parsed by Sonar.