Search code examples
sonarqube

How can I automatically load the Google Style Rules to SonarQube?


I have found this xml with style rules: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml .

I would like to save developers time from manually flagging non-conformities by loading the list into SonarQube but I haven't been able to figure out how.

Anyone able to help me?


Solution

  • Instead of loading the rules (you'd have to write a plugin for that) consider just loading the issues. The Generic Issue Data feature was added recently (7.2) for just that case.

    Edit: Current docs here