Description / Features
This plugin will automatically assign new issues raised in the current analysis to the SCM author responsible
for the violation.
If the author is not registered in SonarQube the issue can be assigned to a configurable default assignee.
The plugin can handle scenarios where the violator is not the original author of the code in which
the issue is raised, but rather the last committer. For example, in metrics where the length of a
method has exceeded the maximum threshold. In this case the issue will be assigned to the last committer.
The plugin can be installed via the Update Center.
- This plugin requires the SCM Activity Plugin to be installed, and will work with any SCM provider it supports.
- SonarQube v4.4 and above.
Configure the plugin as described below and run the SonarQube analysis as normal.
NOTE: If you wish to avoid mass issue assignments on first-time analysis or when rule changes are introduced, disable the plugin during the initial analysis and re-enable it for subsequent analyses.
For Git users, the SCM author is an email address. The plugin can map this email address to a Sonar user,
provided the email address is the same for the SCM and SonarQube accounts.
Configure this value to be a valid SonarQube login of a user to whom issues will be assigned if the plugin cannot determine the SonarQube user who is responsible for an issue. An example of this would be an SCM author who has left your organization and no longer has an account in SonarQube.
The plugin is disabled by default. It can be enabled or disabled in either the global or project settings.
Configure this value to be a valid SonarQube login of a user to whom all issues will be assigned regardless of the SCM author. Useful to avoid issues being assigned and notifications being sent out to unsuspecting SonarQube users in testing scenarios.
Assign to Last Committer
Assign issue to the last committer of the file, rather than the author as determined by the SCM metrics.
Assign 'blameless issues' to Last Committer
Assign blameless issues to the last committer of the file. Blameless issues are issues that don't have an associated line number and therefore cannot be resolved to a particular commit. For example: squid:S00104 'Files should not have too many lines'
Extract SonarQube Username from SCM Username
Extract the SonarQube username from the SCM username associated with an issue using a given regular expression.
Issue Cutoff Date
Only assign issues introduced after this date. Use the format dd/MM/yyyy.
Only Assign New Issues
Only assign new issues raised in the current analysis. Set to false to assign all qualified unassigned issues.
Only assign issues with a severity equal to or greater than a configurable value.
Notifications can now be sent when an issue is assigned. In the top-right corner of the GUI, go to <username> -> My profile -> Overall notifications. Tick 'New issues assigned to me (batch)' to receive a single notification of all issues assigned to you during the latest analysis.
Notification content is also configurable. See the options on the plugin settings page.