Show Visual Studio C# errors/warnings in the code quality tab

Hello everyone,

I discovered the code quality feature recently and I would like something like that to easily see the warnings/errors of the C# code compilation using Visual Studio.

Is it possible to get a report as a JSON file like Code Climate produces from a Visual Studio compilation? How do you do to easily see the warnings/errors from compilation for your own project?

Thank you in advance for your help!

Anyone to help me? :pleading_face:

Thanks for the post @Noxalus!

It sounds like you might be looking for output from the build step which should be available in the logging from the build job. This is not reformatted for the Code Quality features. You might want to review the example .net core project for additional details.

The codeclimate engine that the Code Quality template uses does have a maintainability scanner for C# but is otherwise limited when it comes to C#. There is an open issue in the backlog for additional C# and .net core support for the Code Quality feature. The output from Code Quality is from static analysis of the code, not the build step.

I hope this helps and good luck!

-James H, GitLab Product Manager, Verify:Testing

Thank you a lot for your answer @jheimbuck_gl ! :+1:

I will look all the links you gave me!

1 Like

In the opened issue you linked, I found a project to do CI with .NET project (here) that uses the ReSharper free command line tool, and it seems to handle .editorconfig files properly in addition with duplicates finder + static code analysis.

The only problem of that is ReSharper reports doesn’t use the format to be shown as a new tab from a pipeline (like the code quality one).

@Noxalus - it looks like the ReSharper job outputs an html file which wouldn’t be read by the Code Quality feature. Using expose_as keyword you can make that file accessible in the Merge Request for easier viewing.

Good Luck!

-James H, GitLab Product Manager, Verify:Testing

1 Like