SonarQube – Managing Code Quality

SonarQube is a very powerful open source platform for managing code quality. Among others, you can collect code metrics, identify issues in our source code (i.e. display results from static code analysis) and visualize results from unit tests.

A very powerful feature of SonarQube is its extensibility. You can add plugins to our installation and adapt the platform according to your needs. It is also very nice that you develop our own plugins. Developing own plugins requires a bit of understanding how the platform works, but it is not very difficult.

Jorge Hidalgo has written a very nice introduction how to develop plugins. His tutorial complements the introduction provided by SonarQube.

My first attempt to write a plugin was a simple widget that allows to embed an iframe into the SonarQube dashboard. With this dashboard I’m in the position to display external data.

Git Notes

Git Commands

  • Clone Repository: git clone URL
  • Update remote repository: git pull
  • List available Tags: git tag
  • List available Branches: git branch
  • Change branch: git checkout branchname
  • Switch to tag: git checkout tags/tagname
  • Add Files and Prepare for Commit: git add filename

 

Links:

  • Git Book: http://git-scm.com/book/de