Skip to content

Demote warning with false-positives to info#9797

Open
BenjaminBrienen-CanonPP wants to merge 1 commit intoSonarSource:masterfrom
BenjaminBrienen-CanonPP:patch-1
Open

Demote warning with false-positives to info#9797
BenjaminBrienen-CanonPP wants to merge 1 commit intoSonarSource:masterfrom
BenjaminBrienen-CanonPP:patch-1

Conversation

@BenjaminBrienen-CanonPP
Copy link
Copy Markdown

@BenjaminBrienen-CanonPP BenjaminBrienen-CanonPP commented Mar 17, 2026

Our build gets flooded with these warnings:

'sources\Project\obj\<platform>\<configuration>\<framework>\MyGeneratedFile.cs' referenced by the protobuf 'MetricsInfo' does not exist in the analysis context

This is a VERY long-standing issue

https://community.sonarsource.com/t/ignore-specific-warnings-in-sonarqube-analysis/133070/6

https://community.sonarsource.com/t/improvement-dont-log-does-not-exist-in-the-analysis-context-warnings-for-excluded-files/73799

There is no way to supress this from the user-side, so this must not be a warning.

Our build gets fleeded with these warnings:

```
'sources\Project\obj\<platform>\<configuration>\<framework>\MyGeneratedFile.cs' referenced by the protobuf 'MetricsInfo' does not exist in the analysis context
```

This is a VERY long-standing issue

https://community.sonarsource.com/t/ignore-specific-warnings-in-sonarqube-analysis/133070/6

https://community.sonarsource.com/t/improvement-dont-log-does-not-exist-in-the-analysis-context-warnings-for-excluded-files/73799

There is no way to supress this from the user-side, so this must not be a warning.
@sonar-review-alpha
Copy link
Copy Markdown

sonar-review-alpha Bot commented Mar 17, 2026

Summary generation failed.

@martin-strecker-sonarsource
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mary-georgiou-sonarsource
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 1, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 1, 2026

@BenjaminBrienen-CanonPP
Copy link
Copy Markdown
Author

Cloning into '/tmp/rk-clone-K6Pq6c'...
fatal: Remote branch patch-1 not found in upstream origin

looks like your bot isn't set up to handle PRs from forks?

@BenjaminBrienen-CanonPP
Copy link
Copy Markdown
Author

#3231 (comment)

/AzurePipelines run Sonar.Net

@mary-georgiou-sonarsource
Copy link
Copy Markdown
Contributor

Hello just FYI there's an internal discussion on this.
We'll come back to you soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants