Analysing a React Native Project Using SonarQube?

1,060 views
Skip to first unread message

Amal p

unread,
May 24, 2017, 2:22:45 AM5/24/17
to SonarQube




I have installed sonarqube inside a virtual machine in my system.And is able to access it from anywhere inside my local network.

I am trying to analyse the java-script files of my react-native project which is inside the app folder as shown in the above screenshot.

so i set up a sonar-project.properties file inside the base directory of react-native project(as shown in the above screenshot) according to the sonarqube official doc in the below link 


and from the base directory i am trying push the file using sonar-scanner command (i am doing this from outside the virtual machine from my system os).

and it shows sonar-scanner command not found(as in the blow screenshot).



How does this   sonar-scanner command work ?,when accessing sonarserver from outside the virtualmachine do need something extra in my system os other than sonar-project.properties file in my projects root directory ? ,do i need to install something in my system os  to use the command sonar-scanner.

G. Ann Campbell

unread,
May 24, 2017, 9:28:29 AM5/24/17
to SonarQube
Hi,

First, please be aware that the standard courtesies (Hi, Thanks, ...) are appreciated in this group.

To your question: the error you're seeing is an OS-level error; it looks like sonar-scanner isn't available in your $PATH. 


Ann
Reply all
Reply to author
Forward
0 new messages