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
The report file created by passing --report indicates that changes should be grouped by file. This is supported by FileChanges being an array. This array consistently only contains 1 item, however, even if the DocumentId matches.
Reproduction
Create or open a C# project.
Add the below code:
varfoo=(int)0;varbar=(int)0;
Add the following rule to an .editorconfig file (Cast is redundant):
dotnet_diagnostic.IDE0004.severity = warning
Run dotnet format --report report.json on the project containing the code.
Expected Behavior
The report collects all warnings from the offending file in its FileChanges property:
Version
9.0.100-preview.7.24407.12+d672b8a0459b4888b3e9a6530646e61dd14941b2
Description
The report file created by passing
--report
indicates that changes should be grouped by file. This is supported byFileChanges
being an array. This array consistently only contains 1 item, however, even if theDocumentId
matches.Reproduction
.editorconfig
file (Cast is redundant
):dotnet format --report report.json
on the project containing the code.Expected Behavior
The report collects all warnings from the offending file in its
FileChanges
property:Actual Behavior
Each warning is in its own entry and
FileChanges
only has 1 element at all times:The text was updated successfully, but these errors were encountered: