[PTRun][TimeZone]Removed fxcop (#18146)

This commit is contained in:
Davide Giacometti 2022-05-10 18:15:41 +02:00 committed by GitHub
parent c485da2816
commit 336de6a7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -38,7 +38,8 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Helper
using var stream = assembly.GetManifestResourceStream(resourceName);
if (stream is null)
{
throw new Exception("stream is null");
Log.Error("Stream is null", typeof(JsonHelper));
return new TimeZoneList();
}
using var reader = new StreamReader(stream);

View File

@ -53,11 +53,11 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>