Sonarqube coverage for SQL code analysis

Hi Team,

I’m trying to implement the Sql code coverage in my server and I’m unable to find the steps to implement the SQL plugin.
We have implemented currently code analysis for .NET & C++ and Trying to add SQL to that but I’m not able to achive how to implement this.

Could you please share the steps how to integrate the SQL code in Sonrqube for code analysis.

Thanks in advance.

Hello,

Scanning SQL code (and more precisely, Transact-SQL or PL/SQL) is possible only if you have SonarQube Developer Edition or above.

Do you have such version of SonarQube running?

Alex

Hi @Alexandre_Gigleux
currently we are using Sonarqube enterprise version and also do we have any steps for implementation of PL/SQL?

Hi all,
could anyone help me on this do we have any steps for implementation of PL/SQL? or any documentation.

I have went through this and no process is documented here.https://docs.sonarqube.org/latest/analysis/languages/plsql/

hi @SrinivasP, you can import it in the Generic Coverage Format, see https://docs.sonarqube.org/latest/analysis/generic-test/ . You’d need to verify if your coverage tool exports the coverage format in this SonarQube/SonarCloud generic format for test coverage.