[Plugin.Program] Enable analyzer and fix warnings (#17000)

This commit is contained in:
CleanCodeDeveloper
2022-03-14 16:46:34 +01:00
committed by GitHub
parent 79b2cdca7b
commit 66619ca059
4 changed files with 7 additions and 3 deletions

View File

@@ -182,6 +182,7 @@ namespace Microsoft.Plugin.Program.Storage
}
// When a URL application is deleted, we can no longer get the HashCode directly from the path because the FullPath a Url app is the URL obtained from reading the file
[System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1309:Use ordinal string comparison", Justification = "Using CurrentCultureIgnoreCase since application names could be dependent on currentculture See: https://github.com/microsoft/PowerToys/pull/5847/files#r468245190")]
private Win32Program GetAppWithSameNameAndExecutable(string name, string executableName)
{
foreach (Win32Program app in Items)