Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Sonar from command line without a SonarQube server

I need to perform some static analysis of java classes from command line To extract basic metrics and I was thinking I could use sonar-cli, but that required a fully working SonarQube.

How can I perform those inspections?

like image 295
Edmondo1984 Avatar asked Jan 27 '16 14:01

Edmondo1984


1 Answers

If you want to get the metrics on your code, then there's no other choice than installing a SonarQube server and indeed run an analysis using a SonarQube scanner.

By the way, installing a SQ server for such a simple use case is as simple as extracting the binaries from the ZIP archive and double-click on the sonar.sh or sonar.bat scripts. See "Get Started in Two Minutes" documentation page.

like image 131
Fabrice - SonarSource Team Avatar answered Nov 15 '22 08:11

Fabrice - SonarSource Team