How to Install and configure SonarQube with SonarScanner for generating sonar Report for your…

I am Nandan, And you probably know me as a "Software Engineer who "hacked" an Airline to retrieve his luggage".
I am a full-time Software Engineer, Tech Speaker, and mentor. I enjoy talking about Web Development, Machine Learning, Natural language Processing, Machine learning Accelerated Mobile Pages, Progressive Web Apps, Cybersecurity, Chatbots, etc.
My claim to fame was when I posted a series of tweets on Twitter about data privacy issues on an airline’s website and the tweet got viral for all the good reasons. The story was covered by all major media portals all around the world including BBC, Saudi Gazette, Times of India, Boing Boing, Lallantop etc. and I have been interviewed by some major radio channels and podcasts.
In my free time, I like to indulge myself in activities like Photography, Gardening, Snooker, or Boxing. I am a proud owner of many plants, I sometimes talk to them (mostly pep talks).
1. Steps to Install SonarQube :
* Go to https://www.sonarqube.org/downloads/ and click “Download LTS”
* Once download is complete, Unzip your sonar file in your C or D drive.
* Go to “{Your root path}\sonarqube-6.7.1\bin\windows-x86–64” and click . on StartSonar.bat file.
It will start a Sonar server at “localhost:9000” , You can login to your Sonar with following preset credentials.
username : admin
password : admin
2. Steps to Install Sonar-scanner :
* Go to
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner and click Windows 64 bit.
* Once download is complete, Unzip the file and save it to your C or D drive.
* You can set path variable for Sonar-scanner by adding “{Your root path}\sonar-scanner\bin” to your path
3. Steps to Generate sonar Report:
* Go to Your project’s root directory.
* Execute the following command.
sonar-scanner -D sonar.projectKey="YOUR SONAR PROJECT KEY" -D sonar.sources=."PATH TO YOUR JAVASCRIPT SOURCE FOLDER" -D sonar.host.url=http://localhost:9000
4. Configuring Your javascript Quality profile:
* Once You are logged In, Click On Quality Profiles and then click dropdown button next to create.
* Click Restore Profile and the import your custom JavaScript-profile XML, Browse the javascript profile & upload it.







