Missing many Lines of Code from Analysis

Using Azure DevOps for source and CI with SonarCloudPrepare@1, SonarCloudAnalyze@1 & SonarCloudPublish@1

Repo is a mix of C# and F# with a Blazor UI & backend API, approx 20 projects in total, half test projects targeting .NET 6.0

Analysis reports for only one small C# project, approx 50 LoC and then reports just the CSS from the Blazor project around 700 LoC ignoring many hundreds of line of C# in that project and in 4 or 5 others.

Viewing the logs for the SonarCloudAnalyze@1 the individual C# files appear to be analysed, but do not appear in the SonarCloud UI for the project. The code coverage reported is only for the single C# project despite the fact that the report generated from Azure DevOps contains the full results.

We have 2 other repositories (one a mono-repo) which have worked more or less out of the box, so this behaviour is very confusing.

Hey there.

How is your azure-pipelines.yml file configured? Can you share the logs from your build/analysis?

Hi Colin

Thanks for getting back to me - is there a way to share them privately?

I’ve sent you a private message.