Jet Project Analysis Using SonarQube?

enter image description here

I installed sonarqube inside a virtual machine on my system. And has access to it from anywhere in my local network.

I am trying to parse the java-script files of my responder project, which is inside the application folder, as shown in the screenshot above.

so I installed the sonar-project.properties file inside the base directory of the jet project (as shown in the screenshot above) in accordance with the sonarqube official document in the link below.

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

and from the base directory I'm trying to click a file using the sonar-scanner command (I do this from outside the virtual machine from my os system).

and it shows that the sonar scanner command was not found (as in the screenshot). enter image description here

-? - , sonar-project.properties, ?, - , -.

// LCOV

sonar.javascript.lcov.reportPath=report/lcov.dat

?

+4
1

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner, :

  • .
  • -
  • sonar-scanner ( <install_directory>/bin

, JS, SonarQube Scanner JS, SonarQube . , script package.json:

let sonarqubeScanner = require('sonarqube-scanner');

sonarqubeScanner({
  serverUrl : "https://localhost:9000",
  token : "019d1e2e04eefdcd0caee1468f39a45e69d33d3f",
  options : {}
}, callback);
+3

Source: https://habr.com/ru/post/1677736/


All Articles