Skip to content
mildis edited this page Nov 21, 2014 · 15 revisions

#Welcome to the sonar-gerrit-plugin wiki!

This wiki will try to explain how to setup and use the sonar-gerrit-plugin.

How does it work?

As SonarQube™ analysis starts, plugin connects to Gerrit and asks what files were changed in a patchset. SonarQube iterates on every file and if file is contained in a patchset, the plugin collects it's violations and alerts. When analysis is finished, the plugin connects back to Gerrit again and publish violations and alerts as patchset comments. Depending on the threshold, plugin votes -1/+1 so submit can be blocked based on your Gerrit settings.

Clone this wiki locally