Is it necessary to perform a full (clean) build every time?

I have a build with C++ Code and .NET Core code in it.
This is all working, and connecting to SonarQube as expected.

My question is, is it necessary that I perform a full clean build every time i run the analysis? I know that Sonar connects to the MSBuild process and analyses code while it is being compiled. If a given source file or project does not need to be rebuild, does SonarQube still remember that there’s an issue in that code?

Thanks in advance.

Hello @bernst and welcome to our community!

Thing is that the build-wrapper you are using to wrap your build in order to analyze your C++ code does not support incremental build.
So, in short, yes, it is necessary to perform a full clean build every time.

1 Like

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