Reputation: 3283
I am wondering why Gradle builds my project, when I call Sonarqube for static code analysis:
./gradlew sonarqube
How can I prevent Gradle from building the whole project?
Upvotes: 1
Views: 137
Reputation: 5394
Sonarqube does not only analyze the source code. It also produces some reports on code coverage of tests. Therefore tests must be run and all your code needs to be compiled.
If your project is in Java, this post also explains that Sonarqube performs semantic analysis based on .class
file
Upvotes: 4