diff --git a/.editorconfig b/.editorconfig index b3559d4..30d8a7c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,11 +5,13 @@ # All files [*] indent_style = space +indent_size = 2 + # Code files [*.{cs,csx,vb,vbx}] indent_size = 4 insert_final_newline = true -charset = utf-8-bom +charset = utf-8 [*.csproj] indent_size = 2 @@ -53,7 +55,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent ############################### # Style Definitions dotnet_naming_style.pascal_case_style.capitalization = pascal_case -# Use PascalCase for constant fields +# Use PascalCase for constant fields dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style diff --git a/test/Honeycomb.Serilog.Sink.Tests/Helpers/Some.cs b/test/Honeycomb.Serilog.Sink.Tests/Helpers/Some.cs index eee34c3..83e840f 100644 --- a/test/Honeycomb.Serilog.Sink.Tests/Helpers/Some.cs +++ b/test/Honeycomb.Serilog.Sink.Tests/Helpers/Some.cs @@ -37,7 +37,7 @@ public static LogEvent LogEvent(LogEventLevel level, Exception exception, string public static LogEvent LogEvent(LogEventLevel level, string messageTemplate, params object[] propertyValues) { var log = new LoggerConfiguration().CreateLogger(); - + #pragma warning disable Serilog004 // Constant MessageTemplate verifier if (!log.BindMessageTemplate(messageTemplate, propertyValues, out var template, out var properties)) #pragma warning restore Serilog004 // Constant MessageTemplate verifier