Can I uisng sonar scanner for msbuild to scan javascrpt

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube scanner for msbuild
  • what are you trying to achieve
    scan javacript/typescript/c#/python
  • what have you tried so far to achieve this
    sonar scan clt can scan python/javascript/typescript
    sonar scan for msbuild scan c#

Hello @JiangYuchun,

Welcome to the community.
Your post does not provide a clear enough information about what is your problem to provide any meaningful reply. Could you please elaborate.

Thanks, Olivier

@OlivierK I have a project both using c# and javascript on OS windows , c# is build by msbuild, and javascript is using Angular . what I want is only using sonar scanner for msbuild to scan both language, is it possible?

Yes it is possible.
If you use the latest version of the Scanner for MSBuild and scan the code following the 3 steps analysis process, you should get the other languages (JS, Python etc…) picked up with the C#.

I’m having the same problem but it seems this is not working.
I’m using the build from an Ubuntu server.
I used Manually install .NET on Linux - .NET | Microsoft Docs to install dotnet 3.1 and 5.0
I’m using dotnet-sonarscanner [tried with dotnet sonarscanner as well] and dotnet build but this seems to scan ONLY C# [installed using NuGet Gallery | dotnet-sonarscanner 5.4.0]

Am I doing something wrong?