Automatic assignment of issues in #SonarQube

For those who uses SonarQube to keep an eye on code quality you probably aware there is no abilities to automatically assign issue to it’s author, except commerce plugin for that.

In order to fix mentioned little pain there is a small Groovy script that uses Sonar REST API to ensure that issues are assigned to authors according to SCM.

Script by it’s own logs into SonarQube to retrieve opened and not assigned yet issues, looks up for source code author and performs assignment. After that SonarQube just does a notifications.

Here is a script with basic usage https://github.com/webdizz/embezzler.

3 thoughts on “Automatic assignment of issues in #SonarQube

  1. I have managed to resolve the previous error. Now I get a new error:
    Caught: java.lang.NullPointerException: Cannot invoke method getMeasure() on null object
    java.lang.NullPointerException: Cannot invoke method getMeasure() on null object
    at Embezzler$_run_closure2.doCall(Embezzler.groovy:101)
    at Embezzler.run(Embezzler.groovy:92)

    Any ideas on how to fix this?

  2. I feel that is among the so much significant information for me. And i’m glad studying your article. However should observation on few general issues, The website taste is ideal, the articles is in point of fact excellent D. Just right activity, cheers fkcdkfgdddaf

Leave a Reply

Your email address will not be published. Required fields are marked *