Skip to main content

Command Palette

Search for a command to run...

Sonarqube

Published
•1 min read•View as Markdown

How to use

To do static analysis of any code do this

this is dashboard of sonar qube select create project

Give name of your project

Here you can integrate with various ci tools in this blog we do locally code test click on locally.

Generate token name

select operting system and which type of code you want to scan.

Install sonar cli for your operating system.

sonar-scanner.bat -D"sonar.projectKey=reactjs2" -D"sonar.sources=." -D"sonar.host.url=http://localhost:9000" -D"sonar.login=sqp_997c8b9883e189877240136434b752f394d763e2"

Run this test in your source code project directory with your project credential

The report will be generated