Hi Team,
I’m using Redgate SQL source control 7 for versioning our SQL code in SSMS(SQL server 2016) and Redgate SQL change automation:build/release tasks for build/release pipelines in Azure Devops. I added Sonarqube tasks for static code analysis. Run code analysis took time to analyze full code(1200+ files) and given Parse errors in almost all the files.
Our Dev team able to parse those objects in SSMS.
Request you help me resolving this issues and let me know if you need more details.
Your .sql files are analyzed with PL/SQL analyzer. That’s the default for .sql files.
You should set up your project to analyze .sql files with the TSQL analyzer by adjusting sonar.tsql.file.suffixes and sonar.plsql.file.suffixes.
You can do that through the UI in Administration -> General Settings -> Languages:
You need to add sonar.tsql.file.suffixes in sonar.properties and do language suffix chnages in Sonarqube administration.
Administration -> General Settings -> Languages: