fix(services): 🐛 resolve warnings

This commit is contained in:
Collin M. Barrett 2020-09-13 14:33:29 -05:00
parent 914408b140
commit 824e450ccb
6 changed files with 28 additions and 1 deletions

View file

@ -7,3 +7,8 @@ indent_style = space
# Xml files
[*.xml]
indent_size = 2
# Code quality analysis
[*.cs]
dotnet_diagnostic.CA1812.severity = suggestion
dotnet_diagnostic.CA2007.severity = none

View file

@ -0,0 +1,6 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# Code quality analysis
[*.cs]
dotnet_diagnostic.CA1034.severity = suggestion
dotnet_diagnostic.CA1724.severity = suggestion

View file

@ -0,0 +1,6 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# Code quality analysis
[*.cs]
dotnet_diagnostic.CA1034.severity = suggestion
dotnet_diagnostic.CA1724.severity = suggestion

View file

@ -0,0 +1,5 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# Code quality analysis
[*.cs]
dotnet_diagnostic.CA1707.severity = suggestion

View file

@ -0,0 +1,5 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
# Code quality analysis
[*.cs]
dotnet_diagnostic.CS8625.severity = suggestion

View file

@ -32,7 +32,7 @@ public static async Task<int> TryRunWithLoggingAsync(this IHost host, Func<Task>
catch (Exception ex)
{
Log.Fatal(ex, "Host terminated unexpectedly");
return 1;
throw;
}
finally
{