Exclude Javascript/TS Scanner (no Node)

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
    Run analysis on a project that has no Javascript on a machine without node.
  • what have you tried so far to achieve this
    sonar.exclusions=**/.js, **/.ts

Hey there.

… and what happens?

It says Nodejs is required.

Can I just run the scanner without Javascript Sensors?

sonar.exclusions=**/*.js, **/*.ts, **/*.tsx, **/tsconfig.json, **/node_modules/**

But I gave in and installed node, and it’s no better

INFO: Sensor TypeScript analysis [javascript]
INFO: Found 0 tsconfig.json file(s): []
INFO: No tsconfig.json file found
INFO: Skipped 2 file(s) because they were not part of any tsconfig (enable debug logs to 
see the full list)
INFO: 2 source files to be analyzed
INFO: 2/2 source files have been analyzed
INFO: Sensor TypeScript analysis [javascript] (done) | time=125171ms
INFO: Sensor CSS Rules [javascript] (done) | time=131103ms