You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report uses S3267, which is from Sonar, but I don't believe this is related to the Sonar analyzer and instead is a bug somehow related to #67365.
Expected Behavior:
Because this .editorconfig rule override applies to the whole repo (set in commit 0c74755), I would expect only a single entry with the level of note.
Actual Behavior:
Two ruleConfigurationOverride entries, 1 with warning and 1 with note. That suggests that the compiler believes that somewhere in the compilation this rule is set to warning, which I don't think should be the case.
The text was updated successfully, but these errors were encountered:
Version Used: .NET SDK 9.0.100
Steps to Reproduce:
I don't yet have a minimal repro, but this appears to be 100% reproducible.
git clone https://github.com/MattKotsenas/moq.analyzers.git
git checkout repro/sarif-duplicate-entry
dotnet clean && dotnet build
notepad .\artifacts\obj\Moq.Analyzers\debug\Moq.Analyzers.sarif
(this is a SARIF v2 file)runs
>invocations
>ruleConfigurationOverrides
you'll see two descriptors for S3267:Diagnostic Id:
This bug report uses S3267, which is from Sonar, but I don't believe this is related to the Sonar analyzer and instead is a bug somehow related to #67365.
Expected Behavior:
Because this .editorconfig rule override applies to the whole repo (set in commit
0c74755
), I would expect only a single entry with the level ofnote
.Actual Behavior:
Two ruleConfigurationOverride entries, 1 with
warning
and 1 withnote
. That suggests that the compiler believes that somewhere in the compilation this rule is set to warning, which I don't think should be the case.The text was updated successfully, but these errors were encountered: