root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{cs,csproj,props,targets,slnx,json,yml,yaml,md}]
indent_style = space
indent_size = 2

[*.cs]
csharp_style_allow_embedded_statements_on_same_line_experimental = false
dotnet_diagnostic.IDE2001.severity = warning
csharp_preserve_single_line_statements = false
indent_size = 4
csharp_style_namespace_declarations = file_scoped:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

[*.md]
trim_trailing_whitespace = false


[src/LithoSharp/HtmlParsing/HtmlCharacterReferences.g.cs]
dotnet_diagnostic.IDE2001.severity = none

[tests/fixtures/**/*.cs]
dotnet_diagnostic.IDE2001.severity = none

[tests/LithoSharp.Tests/Fixtures/**/*.cs]
dotnet_diagnostic.IDE2001.severity = none

[templates/**/*.cs]
dotnet_diagnostic.IDE2001.severity = none

[*.{g,generated}.cs]
dotnet_diagnostic.IDE2001.severity = none
