Skip to content

Commit

Permalink
Update editorconfig and run dotnet-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio Dominguez committed Feb 20, 2020
1 parent 67ab3be commit e1f7c4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/Honeycomb.Serilog.Sink.Tests/Helpers/Some.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1f7c4b

Please sign in to comment.