Skip to content

Commit

Permalink
simplify naming
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-didyk committed May 23, 2023
1 parent 38e7c39 commit 320db65
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public class ValidateUsageAgainstBaseline : Microsoft.Build.Utilities.Task
private readonly string _preBuiltDocMessage = "See aka.ms/dotnet/prebuilts " +
"for guidance on what pre-builts are and how to eliminate them.";

private readonly string _changesReviewRequestMessage = "Whenever altering this " +
private readonly string _reviewRequestMessage = "Whenever altering this " +
"or other Source Build files, please make sure to include @dotnet/source-build-internal " +
"as a reviewer";

public override bool Execute()
{
string ChangesReviewRequestComment = $"<!-- {_changesReviewRequestMessage} -->\n";
string ReviewRequestComment = $"<!-- {_reviewRequestMessage} -->\n";
string PreBuiltDocXmlComment = $"<!-- {_preBuiltDocMessage} -->\n";

var used = UsageData.Parse(XElement.Parse(File.ReadAllText(DataFile)));
Expand All @@ -60,7 +60,7 @@ public override bool Execute()
UsageValidationData data = GetUsageValidationData(baseline, used);

Directory.CreateDirectory(Path.GetDirectoryName(OutputBaselineFile));
File.WriteAllText(OutputBaselineFile, ChangesReviewRequestComment + PreBuiltDocXmlComment + data.ActualUsageData.ToXml().ToString());
File.WriteAllText(OutputBaselineFile, ReviewRequestComment + PreBuiltDocXmlComment + data.ActualUsageData.ToXml().ToString());

Directory.CreateDirectory(Path.GetDirectoryName(OutputReportFile));
File.WriteAllText(OutputReportFile, PreBuiltDocXmlComment + data.Report.ToString());
Expand Down

0 comments on commit 320db65

Please sign in to comment.