I’m using SonarQube 8.7, sonar-scanner-msbuild 5.1.0 and JetBrains dotCover 2020.2.4.
I’m running SonarQube on C# projects, some of these project don’t have any unit tests. I changed some source code formatting, e.g. source code comments, line spacings, tabs and white spaces.
SonarQube detects new code on these changes, this is as expected because I changed the code recently.
The SonarQube quality gate fails too because new code coverage is below 80%.
Is there any way to exclude changes with white spaces and white lines from new code detection?