Skip to content

Commit 87c79b6

Browse files
committed
Fix bugs in StaticAnalysis and change log check script
1 parent 796f808 commit 87c79b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/CheckChangeLog.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ foreach ($File in $FilesChangedList)
5252
}
5353

5454
# If a file in src/Common is updated, check for change log entry in Profile
55-
if ($File.StartsWith("src/Common") -and ($UpdatedServicePaths | where { $_ -like "*Profile*" } | Measure-Object).Count -gt 0)
55+
if (($File.StartsWith("src/Common") -or $File.StartsWith("src/ResourceManager/Common")) -and ($UpdatedServicePaths | where { $_ -like "*Profile*" } | Measure-Object).Count -gt 0)
5656
{
5757
continue
5858
}

tools/StaticAnalysis/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private static void ConsolidateExceptionFiles(string exceptionsDirectory)
147147
var exceptionFilePath = Path.Combine(exceptionsDirectory, exceptionFileName);
148148
if (File.Exists(exceptionFilePath))
149149
{
150-
throw new IOException(string.Format("The file '{0}' already exists.", exceptionFilePath));
150+
File.Delete(exceptionFilePath);
151151
}
152152

153153
File.Create(exceptionFilePath).Close();

0 commit comments

Comments
 (0)