Skip to content

Commit

Permalink
update BuildLogAnalyzer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
erichiller committed Jan 30, 2024
1 parent e34f2d0 commit 192e99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PlotGitHubAction/BuildLogAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ _projWarningsHs[ proj ].Add(
}
}
// per-project table
Dictionary<string, int> buildLogStats = _projWarningsHs.ToDictionary( p => p.Key.ProjectName, p => ( id: p.Key.MarkdownId, count: p.Value.Count ) );
Dictionary<string, (string projectId, int warningCount)> buildLogStats = _projWarningsHs.ToDictionary( p => p.Key.ProjectName, p => ( projectId: p.Key.MarkdownId, warningCount: p.Value.Count ) );
summary.AppendLine();
summary.AppendLine( "Project".PadRight( 50 ) + colDiv + "Warnings" );
summary.AppendLine( String.Empty.PadRight( 50, '-' ) + colDiv + String.Empty.PadRight( 20, '-' ) );
Expand Down Expand Up @@ -198,7 +198,7 @@ _projWarningsHs[ proj ].Add(
warnings.AppendLine();
helpUrls.AddReferencedUrls( warnings );

_historyPlotter.AddToHistory( buildLogStats.ToDictionary( kv => kv.Key, kv => kv.Value.count ) );
_historyPlotter.AddToHistory( buildLogStats.ToDictionary( kv => kv.Key, kv => kv.Value.warningCount ) );

System.IO.File.WriteAllText( MarkdownPath, $"{summary}\n{warnings}" );
}
Expand Down

0 comments on commit 192e99d

Please sign in to comment.