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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With