We have a function which uses STRING_AGG WITHIN GROUP with a multiple columns to order by. SonarQube can’t analyse this file.
Example
SELECT @weekStringResult = STRING_AGG(FORMAT(OWW.DienstregelWeek,'00'),', ') WITHIN GROUP (ORDER BY OW.Dienstregelingjaar, D.Jaar, D.Week)
It does work with one column in the order by, probably because of Parse Error during Sonar TSQL Analysis and [SONARTSQL-248] Parse error on STRING_AGG...WITHIN GROUP - SonarSource.
SonarQube version 8.9.2.46101
SonarScanner version 4.6.2.2472
T-SQL plugin version 1.5.1.4340