You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written vb analyzer and was trying to package into jar file using this sdk but getting following warning and also jar file is not created.Please refer the screenshot:
The first problem is this line of code in the SonarQube Roslyn SDK i.e. it is currently hard-coded only to search the NuGet package for C# analyzers.
In theory if you changed that line of code to specify VB.Net then the SDK would produce a .jar file for you (although I noticed a second problem, which is that the language id here for Visual Basic should be vbnet rather than vb).
I say in theory because the SonarQube Roslyn SDK depends on code in the SonarScanner for MSBuild to correctly provision the analyzers during the build and upload the issues afterwards. This definitely works for C# analyzers, but it's pretty clear it won't have been tested for VB analyzers.
At runtime, you would still need to have the SonarVB plugin installed (currently part of the commercial Developer Edition).
The other alternative is to rely on the forthcoming feature in SQ7.4 that will allow all Roslyn issues to be uploaded automatically to SonarQube/SonarCloud that NicoB referred to in response your post to the community forum.
This would be an important feature for us. We have projects in C# and VB.NET and custom Roslyn analyzers for them (some analyzers in the assembly are for C# only, some for VB.NET only, others for both languages). We would like to use the SDK to create a plugin for our analyzer, so that we can use SonarQube as central place for issue management, documentation and also manage quality gates with SonarQube. This won't be possible as long as the SDK doesn't support VB.NET.
While the external issues feature helps in reporting issues from the custom analyzers in VB.NET projects it won't allow to use Quality Profiles in SonarQube for ruleset management.
Hi,
I have written vb analyzer and was trying to package into jar file using this sdk but getting following warning and also jar file is not created.Please refer the screenshot:
[EDIT] also asked at https://community.sonarsource.com/t/writing-vb-net-custom-rule/2492
The text was updated successfully, but these errors were encountered: