JS Files are being excluded from the analysis

Must-share information (formatted with Markdown):

  • I am using SonarQube 7.9.2, Sonar-Scanner for windows, tried with sonarjs plugin)
  • Get static code analysis for js
  • Tried command
    sonar-scanner.bat -D"sonar.projectKey=" -D"sonar.sources=." -D"sonar.host.url=http://localhost:9001" -D"s
    onar.login=" -D"sonar.sourceEncoding=UTF-8" -D"sonar.verbose=true" -D"sonar.langu
    age=js" -D"sonar.inclusions=**/*.js"> sonar.txt

The warning that I am getting for all the js files is as follows
12:39:57.853 DEBUG: ‘elements/acc-adv-filter.js’ excluded by org.sonar.plugins.javascript.JavaScriptExclusionsFileFilter

Please help as I am not sure where I am doing it wrong.


It looks to me like you could drop sonar.inclusions altogether.

Check also your JS exclusions as on the screenshot below:

Hope it helps.