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:
Clint Rutkas
2020-08-05 14:06:42 -07:00
committed by GitHub
parent 30b65028fe
commit 92a2b83bc8
50 changed files with 308 additions and 116 deletions

View File

@@ -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)