Refactoring project dependencies

Must-share information (formatted with Markdown):

  • version: * Enterprise Edition v9.9.8 (build 100196)

We are currently having a huge repo, more than 300k lines and we do two types of scans:

  1. During PR build, we build a subset of projects and run a subset of tests
  2. Once a day we build almost all projects and run all tests.

The PR build is slow and I am thinking of extracting some projects as nuget packages which will decrease the build time. My question is, if less code is built under the scanner will that impact coverage? We only care about new code coverage, so I am thinking we should be good.

Hey there.

What language (s) are you analyzing in this project?

We have .Net projects. We do sonar start, solution build, dotnet coverage then sonar end.

Thanks!

My question is, if less code is built under the scanner will that impact coverage?

Surely there will be less code considered for coverage (since your extracted code will no longer be a part of the project)

Are you thinking about making this change for all builds, or just for your PR build?

If it’s just your PR build, I think you might end up with a wonky Estimated after merge % figure compared to reality.

But otherwise I don’t expect any issues!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.