SonarQube not recognize sql language scripts

Hello,

Im using SonarQube:

Developer edition version 9.1.0.47736

On Windows 10 with Visual Studio 2019 e net core 3.1 , net framework 4.5

I have sql project to analize;
SonarQube analize the sql scripts but seems the not recognize and parse the sql language, it give me a lot of error like these:

INFO: Sensor C# Project Type Information [csharp]
ERROR: String is not parsed (file project/Tables/Logs.sql, line 1)"

INFO: Sensor C# Project Type Information [csharp] (done) | time=121ms
^
INFO: Sensor C# Analysis Log [csharp]
2: [Id] INT IDENTITY (1, 1) NOT NULL,
ERROR: String is not parsed (file SqlScript/DBUpdate.sql, line 1)

Thanks.

Hi,

What flavor of SQL is this? T-SQL? Can you give some examples, please?

 
Ann

Hi Ann,

I have fixed the issue, removing *.tsql extension and leaving *.sql extension in SonarQube configuration

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.