Skip to content

Commit

Permalink
Fix number of formatted documents, file banners added (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Apr 15, 2023
1 parent c94cd87 commit 19fa5fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix ([RCS1032](https://github.com/JosefPihrt/Roslynator/blob/main/docs/analyzers/RCS1032.md)) ([#1064](https://github.com/JosefPihrt/Roslynator/pull/1064)).
- Update processing of .globalconfig file to prioritize file-specific diagnostic severities over global diagnostic severities. [#1066](https://github.com/JosefPihrt/Roslynator/pull/1066/files)
- Fix RCS1009 to handles discard designations ([#1063](https://github.com/JosefPihrt/Roslynator/pull/1063/files)).
- [CLI] Fix number of formatted documents, file banners added ([#1072](https://github.com/JosefPihrt/Roslynator/pull/1072)).

## [4.2.0] - 2022-11-27

Expand Down
4 changes: 2 additions & 2 deletions src/Workspaces.Core/CodeFixes/CodeFixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public async Task<ProjectFixResult> FixProjectAsync(Project project, Cancellatio
fixedDiagnostics: fixResult.FixedDiagnostics.Select(f => DiagnosticInfo.Create(f)),
unfixedDiagnostics: unfixedDiagnostics.Select(f => DiagnosticInfo.Create(f)),
unfixableDiagnostics: unfixableDiagnostics.Select(f => DiagnosticInfo.Create(f)),
numberOfFormattedDocuments: (Options.FileBannerLines.Any()) ? formattedDocuments.Length : -1,
numberOfAddedFileBanners: (Options.Format) ? numberOfAddedFileBanners : -1);
numberOfFormattedDocuments: (Options.Format) ? formattedDocuments.Length : -1,
numberOfAddedFileBanners: (Options.FileBannerLines.Any()) ? numberOfAddedFileBanners : -1);

LogHelpers.WriteFixSummary(
fixResult.FixedDiagnostics,
Expand Down

0 comments on commit 19fa5fa

Please sign in to comment.