<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Piotr,</div><div><br></div><div>Currently, we employ several static analysis tools in the various oVirt projects.</div><div><br></div><div>In oVirt-Engine:</div><div>1. We use checkstyle at build time with several standard checks, and a couple implemented by project members</div><div>2. FindBugs is run by a Jenkins job: <a href="http://jenkins.ovirt.org/view/All/job/ovirt_engine_find_bugs/" data-mce-href="http://jenkins.ovirt.org/view/All/job/ovirt_engine_find_bugs/">http://jenkins.ovirt.org/view/All/job/ovirt_engine_find_bugs/</a></div><div>3. Animal Sniffer is used to ensure we don't break JDK6 compatibility on GWT-compiled modules (should probably be removed since the last GWT upgrade, BTW), also as a Jenkins job: <a href="http://jenkins.ovirt.org/job/ovirt_engine_animal_sniffer_check/" data-mce-href="http://jenkins.ovirt.org/job/ovirt_engine_animal_sniffer_check/">http://jenkins.ovirt.org/job/ovirt_engine_animal_sniffer_check/</a></div><div>4. pylint is used to check the python parts: <a href="http://jenkins.ovirt.org/view/ovirt_engine/job/ovirt_engine_pylint_gerrit/" data-mce-href="http://jenkins.ovirt.org/view/ovirt_engine/job/ovirt_engine_pylint_gerrit/">http://jenkins.ovirt.org/view/ovirt_engine/job/ovirt_engine_pylint_gerrit/</a></div><div><br></div><div>In VDSM, we use pep8 as part of the build.</div><div><br></div><div>Personally, I've heard about Sonar Qube, but never used it.</div><div>Can you share some experience?</div><div>How much "noise" does it produce?</div><div><br></div><div>-Allon</div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Piotr Kliczewski" <piotr.kliczewski@gmail.com><br><b>To: </b>infra@ovirt.org<br><b>Sent: </b>Sunday, September 29, 2013 7:00:58 PM<br><b>Subject: </b>Static analysis for oVirt<br><div><br></div><div dir="ltr">All,<div><br></div><div>Is there static analysis tool used for oVirt code base? </div><div><br></div><div>There is interesting tool called Sonar: <a href="http://www.sonarqube.org/" target="_blank">http://www.sonarqube.org/</a>. It integrates with Jenkins and provides you neat dashboard that will let you understand code quality. This tool supports many languages including Java and Python.</div>
<div><br></div><div>Thanks,</div><div>Piotr Kliczewski</div></div>
<br>_______________________________________________<br>Infra mailing list<br>Infra@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/infra<br></blockquote><div><br></div></div></body></html>