How to use SonarQube with multiple languages

770 views
Skip to first unread message

László Tóth

unread,
Mar 1, 2016, 3:30:41 AM3/1/16
to SonarQube
Dear Sonar Experts! I have a project that is fairly comlex. The software is written in C# but it uses JavaScript and rdl files as well. The code analysis (C#) was successfull but my boss would like to identify database bottlenecks too. The questionable SQL queries and metrics are presented from MS SQL analyzis. I have figured out that SQL queries are located in those rdl files. We have JavaSripts that make references and these references are used in C# code. We would like to identify the caller and use a particular rule to add issues corresponding database bottlenecks.
My questions is how to use SonarQube in a multilingual environment? How to unify C#, JS, and RDL results? Could we analyze RDL files and/or SQL files?
Thanks for advance.
Regars, László Tóth

Francis Galiegue

unread,
Mar 1, 2016, 8:13:23 AM3/1/16
to SonarQube
Hello,
OK, the subject doesn't really match with your question.

SonarQube has (obviously so, I might say) the possibility to perform analyses on several languages: it all depends on what language plugins your installation has. And in fact, it is not SonarQube, the server, which performs analyses, but the sonar runner.

Your question is in fact whether there is a mechanism to perform "language within language" analysis, right?
 

G. Ann Campbell

unread,
Mar 1, 2016, 9:27:26 AM3/1/16
to SonarQube
Hi László,

We don't have rules that analyze SQL queries as such in plugins for "modern" languages like C# (altho we do have such rules for legacy languages, and we're making exciting strides in that area for COBOL!). I'm not familiar with the "rdl" extension so I"m going to make an intuitive leap and say we don't have a plugin to analyze whatever language that is. 

We also don't currently have anything that looks at interactions between languages like what you describe.

So if you really want to move in this direction, you'll probably have to explore writing a custom plugin. You'll find some help in the docs, and more on this list if you come back with specific questions.


Ann
Reply all
Reply to author
Forward
0 new messages