[PowerLauncher] Enable analyzer and fix warnings (#16900)

This commit is contained in:
CleanCodeDeveloper
2022-03-09 13:08:12 +01:00
committed by GitHub
parent eb961ee052
commit 46684966a1
4 changed files with 12 additions and 7 deletions

View File

@@ -80,6 +80,7 @@ namespace PowerLauncher
}
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1309:Use ordinal string comparison", Justification = "Using StringComparison.InvariantCulture since this is user facing")]
private void ToolTip_Opened(object sender, RoutedEventArgs e)
{
if (string.Equals(sender.GetType().FullName, "System.Windows.Controls.ToolTip", System.StringComparison.InvariantCulture))
@@ -89,6 +90,7 @@ namespace PowerLauncher
}
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1309:Use ordinal string comparison", Justification = "Using StringComparison.InvariantCulture since this is user facing")]
private void SuggestionsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (string.Equals(((ListView)e.OriginalSource).Name, "SuggestionsList", System.StringComparison.InvariantCulture))