{iframe:src=http://update.sonarsource.org/plugins/trac.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
This plugin uses the Trac XML-RPC plugin to connect to a Trac instance and display metrics about open tickets. It can also drill down to the component level.
Install and enable the Trac XML-RPC plugin on your Trac instance. You will need to give an anonymous or user account 'XML_RPC' and 'TICKET_VIEW' privileges.
A user (working with trac 0.11.7) has reported in Sonar's mailing list that the HttpAuthPlugin should be also installed, so if you get the following error Trac: XmlRpcException (possibly missing authentication details?) install it as well.
The Trac instance URL can be specified in two places:
Your project's pom.xml file under the 'issue managment' section; for example: (note that the username/password/component has to be specified in Sonar project settings, the plugin does not currently have the ability to read the username/password/component from the pom.xml)
<issueManagement>
<system>Trac</system>
<url>http://trac_server/projects/project_name</url>
</issueManagement>
|
Note: component name is completely optional, if you don't specify one you will get the number of tickets over the whole instance. There is also no validation of the component name, so if you specify a non-existent component name, no tickets will be found.
To kick-off the analysis, see Analyzing Source Code.