Terraform project in SonarQube

I have a Terraform repository in Github that is under a Jenkins pipeline. I would like to this Terraform as a new project in the SonarQube dashboard. But it seems SonarQube does not support Terraform.

I wonder if anyone has experience how to do this integration?

Thanks in advance for the help!

Hello @Ali_G,

I’ve had a quick look at https://www.terraform.io/ to get understanding of the languages present in those kind of projects which reads:

Terraform users define infrastructure in a simple, human-readable configuration language called HCL (HashiCorp Configuration Language). Users can write unique HCL configuration files or borrow existing templates from the public module registry.

So, there is no support of the HCL and y0u may be the first to ask.
However, if you looking for support of some specific languages have a look at https://docs.sonarqube.org/latest/instance-administration/plugin-version-matrix/ and you should be able to tell if SonarQube given language natively or with support of community/3rd party plugins.

Hope that helps.

I’m also interested in a Terraform sonarqube plugin.