Must-share information (formatted with Markdown):
- SonarQube Server Enterprise Edition v2025.6.1 (117629)
- SonarQube deployed: Helm
- SonarScanner: SonarScanner for .NET 11.0
- what are you trying to achieve: Expect same issues raised for new code in Merge request and main branch
- what have you tried so far to achieve this: Analyze context for both analyses
Dear Sonarsource,
We have observed the following issue where a maintainability issue coming from roslyn analyser was raised into the main branch of the project (master) but not in the MR where the new file with it was added.
A source file is missing a required header.
The file header does not match the required text(external_roslyn:IDE0073)roslyn
We can see the issue being raised in the client logs for both MR and master branch analysis and the project being processed successfully, furthermore in the scanner context for the project analysis also for both we can see the property sonar.cs.roslyn.reportFilePaths with the Issues.json path.
So we see no difference from client side nor from scanner context that explains this behaviour, unfortunately the compute engine logs are in info level and are not providing any further information on this.
Could you please let us know if you have any explanation for what we have observed?