mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
smaller stylecop fixes in Wox.Core and Wox.Infra (#5671)
* Headers unneeded usings files need blank line at bottom Fixed double returns Returns after braces * commenting out stylecop
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Wox.Infrastructure.Exception
|
||||
@@ -37,6 +40,7 @@ namespace Wox.Infrastructure.Exception
|
||||
exsb.Append(" Source: ");
|
||||
exsb.AppendLine(ex.Source);
|
||||
}
|
||||
|
||||
if (ex.TargetSite != null)
|
||||
{
|
||||
exsb.Append(" TargetAssembly: ");
|
||||
@@ -46,6 +50,7 @@ namespace Wox.Infrastructure.Exception
|
||||
exsb.Append(" TargetSite: ");
|
||||
exsb.AppendLine(ex.TargetSite.ToString());
|
||||
}
|
||||
|
||||
exsb.AppendLine(ex.StackTrace);
|
||||
exlist.Add(exsb);
|
||||
|
||||
@@ -56,6 +61,7 @@ namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
sb.AppendLine(result);
|
||||
}
|
||||
|
||||
sb.AppendLine("```");
|
||||
sb.AppendLine();
|
||||
|
||||
@@ -97,6 +103,7 @@ namespace Wox.Infrastructure.Exception
|
||||
sb.Append(ass.Location);
|
||||
|
||||
}
|
||||
|
||||
sb.AppendLine(")");
|
||||
}
|
||||
|
||||
@@ -129,6 +136,7 @@ namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (string subKeyName in versionKey.GetSubKeyNames())
|
||||
{
|
||||
RegistryKey subKey = versionKey.OpenSubKey(subKeyName);
|
||||
@@ -149,6 +157,7 @@ namespace Wox.Infrastructure.Exception
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
using (RegistryKey ndpKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\"))
|
||||
{
|
||||
int releaseKey = (int)ndpKey.GetValue("Release");
|
||||
@@ -163,6 +172,7 @@ namespace Wox.Infrastructure.Exception
|
||||
result.Add("4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2");
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
catch (System.Exception e)
|
||||
|
||||
Reference in New Issue
Block a user