I'm trying to create a custom sonar plugin that consists of a widget on the global dashboard.
I want this to display a "global" metric. So for example, a metric showing the number of lines across all projects.
Is this possible, if so how can I go about this? I can only find example projects that run project specific metrics. They output them in the ruby template like this: format_measure('random'). I am guessing this format measure only works in project context.
The documentation is extremely light on this whole process. So if anyone knows of any good documentation or guides that would also be useful, currently trying to piece together what I want to do from about 10 other plugins.
The only documentation I have found is here: http://docs.sonarqube.org/display/SONAR/Developing+Plugins